Order email

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #24738

I would like to add to the email sent to the customer in the Summary of Your Order section the product_code along with the exiting product_name. How can I do this?

Thank you for your help.

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 2 months ago #24750

You need to edit the email via the menu System->Emails (Business edition only), and change the code:
echo $item->order_product_name;

to:
echo $item->order_product_code.' '.$item->order_product_name;

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

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #24767

Thanks for the quick reply. I have essentials edition. Is there a file I can change to modify the email contents?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 2 months ago #24768

you can do it in the files of the folder media/com_hikashop/mail. However, unlike when you do it from the interface, you will loose your modifications when you update so be careful.

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

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #24791

Great. Thanks. If I wanted to add product info from the product table including custom fields, how can I access them such as product_description?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 2 months ago #24792

Like that:
$productClass = hikashop_get('class.product');
$product = $productClass->get($item->product_id);
echo $product->product_description;

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

  • Posts: 38
  • Thank you received: 0
13 years 1 month ago #24853

Works great. Thanks.

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

  • Posts: 2
  • Thank you received: 0
13 years 1 month ago #24858

I am trying to add a link in my order confirmation email that is sent to customer. More importantly, I want to make sure that the hyperlink is only sent to the customer AFTER their paypal confirmation of payment happens...

Can anyone show me how to accomplish this?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 1 month ago #24860

The order status notification email is only sent when the order is confirmed. There is nothing to do for that.

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

  • Posts: 2
  • Thank you received: 0
13 years 1 month ago #24861

OK - thanks - so which email do I modify to add my hyperlink?

2 Order administrator notification
3 Order creation notification
4 Order status notification
5 Order notification

?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 1 month ago #24868

The order status notification email

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

  • Posts: 267
  • Thank you received: 5
11 years 1 month ago #122015

Hi nicholas,

Following this thread, how could include the username field?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
11 years 1 month ago #122078

Hi,

You could add such code in your email:
<?php echo $data->customer->username; ?>

The following user(s) said Thank You: dvddvd

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

  • Posts: 267
  • Thank you received: 5
11 years 1 month ago #122222

Thank you works perfectly

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

  • Posts: 5
  • Thank you received: 0
8 years 3 months ago #246270

Hello

How do i get an order confirmation when somebody take a order from the webshop. I mean i will get an email notification when somebody order something. Is there an solution in Hikashop because now when somebody orders by me i dont get an email notification.

Best regards
Arthur

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

Time to create page: 0.110 seconds
Powered by Kunena Forum