Admin receive e-mail notification on activities

  • Posts: 272
  • Thank you received: 13
11 years 11 months ago #81176

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.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #81204

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: gabriela, likandev

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

  • Posts: 69
  • Thank you received: 11
11 years 10 months ago #85104

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:

	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
http://likandevelopment.com
Last edit: 11 years 10 months ago by likandev.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #85123

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 272
  • Thank you received: 13
11 years 2 months ago #120340

Is this feature already integrated or will be in future?

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #120350

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
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.074 seconds
Powered by Kunena Forum