Forums / General Questions / Can I use notifiers to assist during product edits/updates?

Can I use notifiers to assist during product edits/updates?

Views: 1,401

Results 1 to 5 of 5
6 Aug 2012, 11:20 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Can I use notifiers to assist during product edits/updates?

vukan71:

I need Notifiers for product update, new product, product delete... I looked at http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#Observer_Class, and google it, but it seems that Zen Cart does not have something like this.
I'm not sure what you're asking; are you asking whether the Notifiers work in your admin area? If so, you are correct, the Notifiers work in your "catalog" section only. For changes to your admin area, you'll need to edit the "core" files.

6 Aug 2012, 11:22 AM
#3
vukan71 avatar

vukan71

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
1

Re: Can I use notifiers to assist during product edits/updates?

Thank you, that is what I asked.

6 Aug 2012, 11:34 AM
#4
vukan71 avatar

vukan71

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
1

Re: Can I use notifiers to assist during product edits/updates?

If I wanted to make XML with product and products properties, and save it as file - and change it (XML) only if some of products is updated or deleted, how can I do it in Zen Cart if I dont have observer/event for product update/delete ...
Do you have any ideas?
Thanx

6 Aug 2012, 3:59 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Can I use notifiers to assist during product edits/updates?

You would need to add your custom code to the end of the update_product.php script, located at:
/admin/includes/modules/PRODUCT_TYPE/update_product.php (may or may not exist for a given product-type)
and/or
/admin/includes/modules/update_product.php (fallback master if no product-type-specific file found as described above)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.