Sub Order Status Update and Parent Order Email URL

  • Posts: 19
  • Thank you received: 0
7 years 2 months ago #262083

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.4

Hello

1- How to make editing status of a sub-order in front-end also update the status of the parent order?

2- In Vendor order status notification email how to include the URL of the parent order, not sub-order?

Thanks and regards.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 2 months ago #262084

Hi,

1 - If the vendor can edit his sub order, the parent order will be automatically update when all sub order will have the same status.
So depending how your store is configured, as long as the customer order just have products from one single vendor, there will be just one sub order which mean that when the vendor will edit his sub order, the main order will follow.

2 - You can customize the HikaMarket vendor order status notification.
But if you put a link to the parent order, I'm afraid that link won't work for the vendors. They can just access to their content so they can't access to the store main order (via HikaMarket) or to the customer order (via HikaShop).

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: 19
  • Thank you received: 0
7 years 2 months ago #262102

Thanks Jerome

About 2nd point, can you please tell me how to include the URL of the parent order in the Vendor order status notification email?

Do not worry about permissions I'll keep that in mind.

Thanks and regards.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 2 months ago #262143

Hi,

In the email, you'll have access to the order object.
In that object you will find the value under the key : "order_parent_id".
Thanks to that "order_parent_id", you can create a link to the parent order, using his ID.
Afterwards, the link will depend on what you want to link exactly ; like I wrote previously.

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.

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