Skip to main content

Admin receive e-mail notification on activities

13 years 11 months ago #81176 by deltafidesign
I would receive an e-mail that inform me that a vendor has registered (not as joomla user but as vendor) and also an e-mail that inform me every time a vendor add a new product, so I can check it before publishing.

Is that already possible or could be a feature?

Please Log in or Create an account to join the conversation.

13 years 11 months ago #81204 by Jerome
Hi,

Such feature should be integrated in HikaMarket but could be done thanks to plugins.
HikaMarket and HikaShop have a lot of triggers.

HikaMarket have the trigger "onAfterVendorCreate(&$vendor)" for the vendor creation event.
HikaShop have the trigger "onAfterProductCreate(&$product)" for the product creation event.

In order to know if the product is a vendor product or not, it is possible to check the field "$product->product_vendor_id" and check if the value is superior (and not equal) than 1 ("> 1").

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: gabriela, likandev

Please Log in or Create an account to join the conversation.

13 years 10 months ago - 13 years 10 months ago #85104 by likandev
Thanks Jerome!

I also needed the onAfterProductUpdate(&$product) trigger.

One can check most of the availabel triggers at:

plugins/hikashop/market/market.php


Here is what I used to receive a notification when the product is edited as well:
Code:
public function onAfterProductUpdate(&$product) { $app = &JFactory::getApplication(); if ($app->isAdmin()) return true; if (isset($product->product_name)) $this->notify($product, 'update'); else { return true; } }

Eduardo Chongkan - Likan Development
likandevelopment.com
Last edit: 13 years 10 months ago by likandev.

Please Log in or Create an account to join the conversation.

13 years 10 months ago #85123 by Jerome
Hi,

Yes, for most of triggers, we have a "onBefore", a "onAfter" and if we have "Create" we have "Update" too.
The HikaMarket bridge plugin use a lot of triggers, it's was good idea to look at him.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #120340 by deltafidesign
Is this feature already integrated or will be in future?

Please Log in or Create an account to join the conversation.

13 years 2 months ago #120350 by Jerome
Hi,

www.hikashop.com/support/documentation/1...arket-changelog.html
We added a new "product modification" email in HikaMarket 1.3.0

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: deltafidesign

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.151 seconds
Powered by Kunena Forum