- Posts: 272
- Thank you received: 13
Admin receive e-mail notification on activities
- deltafidesign
-
Topic Author
- Offline
Less
More
13 years 11 months ago #81176
by deltafidesign
Admin receive e-mail notification on activities was created 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?
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
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Admin receive e-mail notification on activities
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,
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.
Please Log in or Create an account to join the conversation.
13 years 10 months ago - 13 years 10 months ago #85104
by likandev
Eduardo Chongkan - Likan Development
likandevelopment.com
Replied by likandev on topic Admin receive e-mail notification on activities
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:
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
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Admin receive e-mail notification on activities
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,
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.
- deltafidesign
-
Topic Author
- Offline
Less
More
- Posts: 272
- Thank you received: 13
13 years 2 months ago #120340
by deltafidesign
Replied by deltafidesign on topic Admin receive e-mail notification on activities
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
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Admin receive e-mail notification on activities
Hi,
www.hikashop.com/support/documentation/1...arket-changelog.html
We added a new "product modification" email in HikaMarket 1.3.0
Regards,
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.052 seconds