Confirmation email

  • Posts: 31
  • Thank you received: 0
12 years 6 months ago #51274

Hi,

I would like to include payment and delivery data in confirmation email that is sent to the customer after purchase.

For the example customer ordered with Payment: Collect on delivery and Delivery: Standard Post (which I defined in admin), I want that info to be visible in confirmation email.

Is this possible?

Thanks in advance.

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

  • Posts: 31
  • Thank you received: 0
12 years 5 months ago #51296

Also I need the same info in admin confirmation email.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 5 months ago #51310

Here is an example for the payment information:
www.hikashop.com/en/forum/4-how-to/39438...-in-order-email.html
For shipping, just do the same and replace "payment" by "shipping" everywhere in the code.

The following user(s) said Thank You: zvone

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

  • Posts: 31
  • Thank you received: 0
12 years 5 months ago #51313

You are awsome!!

Thank you.

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

  • Posts: 31
  • Thank you received: 0
12 years 5 months ago #51314

Ok, this is the last thing I need :)

I also need to product code (SKU), also to be visible in confirmation email.

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 5 months ago #51407

You can easily add the SKU next to the product name in the email like that:

<?php echo $product->order_product_code; ?>

Or:
<?php echo $item->order_product_code; ?>

(it depends on which email you're editing so just try and see if one is working, otherwise, use the other)

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

  • Posts: 10
  • Thank you received: 0
11 years 2 months ago #122909

Hi could you please give an example of where / how this code fits - I have tried and not had any luck so far

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #122935

Hi,

It is in the emails (System > Emails).
Email edition require HikaShop Business. Otherwise you have to edit the email manually in the media/com_hikashop/mail/ folder and creating an override.
You can find more information about it in the forum.

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: 10
  • Thank you received: 0
11 years 2 months ago #122937

I have the business edition and I can see I can edit the code but I am unsure where in the code the 2 examples below should go - please advise.

You can easily add the SKU next to the product name in the email like that:
<?php echo $product->order_product_code; ?>
Or:
<?php echo $item->order_product_code; ?>
(it depends on which email you're editing so just try and see if one is working, otherwise, use the other)

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #123013

Hi,
Can you tell me in which email from the "Hikashop->System->Email" page, do you exactly want to add your "SKU" ?

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

  • Posts: 10
  • Thank you received: 0
11 years 2 months ago #123153

It needs to be on the order creation mail for the user and also for the shop owner. I think that is order creation notification and order administrator notification?

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

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #123192

Hi there,

In this case I think you can simply try both and send yourself an e-mail to test it.
Anyway you should have the right information ;)

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

  • Posts: 10
  • Thank you received: 0
11 years 2 months ago #123213

Hi Eliot my question was where to add the code in the e-mails.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #123227

Hi,

It depends where you want to display it :)

But what I can propose it is to use a simpler solution. Edit the email and replace

              <?php if ($config->get('show_code')) { $colspan++; ?>
                <td style="font-weight:bold;"><?php echo JText::_('CART_PRODUCT_CODE'); ?></td>
              <?php } ?>
By
              <?php $colspan++; ?>
                <td style="font-weight:bold;"><?php echo JText::_('CART_PRODUCT_CODE'); ?></td>
And
                  <?php if ($config->get('show_code')) { ?>
                    <td><p class="hikashop_product_code_mail"><?php echo $item->order_product_code; ?></p></td>
                  <?php } ?>
By
                    <td><p class="hikashop_product_code_mail"><?php echo $item->order_product_code; ?></p></td>
And it will display the product code.
My example is for the mail "order_status_notification".

You can also change the HikaShop configuration "show product code" in order to display the code (in the website and in the emails).

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: 10
  • Thank you received: 0
11 years 2 months ago #123261

Thank you Jerome that has cleared this up for me - very clear now.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum