how to trigger e-mail to notify customer when vendor changes status in shipped..

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
3 years 1 week ago #331774

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.4
-- PHP version -- : 7.4

Hi,

We would like that the customer gets an email when a vendor changes the status in shipped,
how can we trigger the shipped e-mail to notify customer when vendor changes status in shipped..??

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
3 years 1 week ago #331784

Hello,

The trigger is the HikaShop one regarding the order object :
www.hikashop.com/support/documentation/6...l#onAfterOrderUpdate

But when a vendor subsale is modified, you have the "order_type" which is equal to "subsale" instead of "sale" for customer order.
Thus, you can check for the "subsale" ; get the "order_parent_id" and load the customer order if you need ; and notify the customer regarding the modification of a part of its order.

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: 386
  • Thank you received: 7
  • Hikashop Business
3 years 1 week ago #331791

Hi,

Understand what you are saying with the subsale of a vendor, but vendor aranges the shipping itself, so when he changes status in front-end we need to sent out the shipping email automaticly. How can we do that??

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
3 years 1 week ago #331803

Hello,

Yes ; that's what I explained in my previous message regarding the trigger for a custom plugin (to send an email to the customer).

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.

Time to create page: 0.059 seconds
Powered by Kunena Forum