Add vendor name in order status notification email

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

HI Nicolas,

1. The pdf is an example of the email i get in my inbox not generated by the invoice plugin. Sorry for my bad explaination.
The issue is that in the e-mail in the subject line no order number is displayed aswell as in the e-mail itself.
2. attached the history sorry did not understand that right.


3. i will make the change and see how it goes keep you posted.. :)
Thanks

Attachments:

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

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

Hi,
Changed the line in what you said and now i get this error:
Too few arguments to function hikamarketOrderClass::getVendorIdFromOrderProducts(), 1 passed in /home/bluepointconcept/06.bluepoint-concept.nl/media/com_hikashop/mail/order_status_notification.confirmed.html.php on line 13 and exactly 2 expected
I can not figure out which agrument is missing.. 1 is passed but now the second.. :)
THanks

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 1 week ago #331643

Hi,

Ah yes, my bad. You need to change the line:
$vendorId = $orderClass->getVendorIdFromOrderProducts($data->cart);
to:
$first = reset($data->cart->products);
$vendorId = $orderClass->getVendorIdFromOrderProducts($first->order_product_id, $data->cart);

Regarding the order number, thanks for the screenshot. All I can think of is that it comes from the customization of the email which might be based on an old version of HikaShop leading to the problem. In the System>Emails menu, copy/paste the customizations you have made to the order status notification HTML and preload section in a text file on your local computer and then delete the customizations on the email. Then, please try again an order and see if it's still missing the order number. If not, it would confirm that it comes from the customizations. So then, you can reapply them but little by little and test each time, to see which change is creating the issue.
If it doesn't come from the customization of the emails, you can copy/paste back your customizations. Now, you said that this started after updating. Could you tell us more about it ? Which extension did you update ? HikaShop only ? HikaMarket only ? Both ? And which version did you have before ? Also, could you provide a backend access so that we could check your HikaShop and HikaMarket settings as well as check the situation for an order with the issue ? If so, please provide that via our contact form along with a link to this thread for reference :
www.hikashop.com/support/contact-us.html

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

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 11 months ago #331861

this works fine.. thanks..

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

  • Posts: 152
  • Thank you received: 11
1 year 7 months ago #344154

This modification is very useful.

Nicolas why do you not enter DISPLAY: MAIL in the fields present in Display> Custom fields> Vendor as for the fields included in Display> Custom fields> Order ??

This would make HikaMarket even more complete ;-)

Attachments:
Last edit: 1 year 7 months ago by gerryna09.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
1 year 7 months ago #344166

Hello,

Can you please provide more details regarding your feature request ?

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: 152
  • Thank you received: 11
1 year 7 months ago #344189

This option displays the seller's name in the email that arrives to the customer

It would be very useful to be able to display in the email also the fields present in Display> Custom fields> Vendor being able to choose directly in the field (as already happens in the fields present Display> Custom fields> Order where there is the DISPLAY: MAIL item)

Attachments:

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

  • Posts: 152
  • Thank you received: 11
11 months 4 days ago #351725

private function getVendorIdFromOrderProducts($order_product_id, &$order) {
public function getVendorIdFromOrderProducts($order_product_id, &$order) {

Is there another solution using an override?

To avoid having to edit administrator/components/com_hikamarket/classes/order.php at each HikaMarket update

Thanks

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 months 3 days ago #351727

Hello,

No, because you have the HikaMarket mail class and the function "processOrdernotificationTemplate" which modify the email content and add the vendor ID for each product in the cart.
So, the stuff is already done.

Regards,

PS : Please don't open/update multiple thread for the same question.


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.101 seconds
Powered by Kunena Forum