Skip to main content

Confirmation email

More
14 years 4 months ago #51274 by zvone
Confirmation email was created by zvone
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.

More
14 years 4 months ago #51296 by zvone
Replied by zvone on topic Re: Confirmation email
Also I need the same info in admin confirmation email.

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

More
14 years 4 months ago #51310 by nicolas
Replied by nicolas on topic Re: Confirmation email
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.

More
14 years 4 months ago #51313 by zvone
Replied by zvone on topic Re: Confirmation email
You are awsome!!

Thank you.

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

More
14 years 4 months ago #51314 by zvone
Replied by zvone on topic Re: Confirmation email
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.

More
14 years 4 months ago #51407 by nicolas
Replied by nicolas on topic Re: Confirmation email
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.

More
13 years 2 weeks ago #122909 by mediaset
Replied by mediaset on topic Re: Confirmation email
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.

More
13 years 2 weeks ago #122935 by Jerome
Replied by Jerome on topic Re: Confirmation email
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.

More
13 years 2 weeks ago #122937 by mediaset
Replied by mediaset on topic Re: Confirmation email
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.

More
13 years 2 weeks ago #123013 by Mohamed Thelji
Replied by Mohamed Thelji on topic Confirmation email
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.

More
13 years 2 weeks ago #123153 by mediaset
Replied by mediaset on topic Confirmation email
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.

More
13 years 2 weeks ago #123192 by Eliot
Replied by Eliot on topic Confirmation email
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.

More
13 years 2 weeks ago #123213 by mediaset
Replied by mediaset on topic Confirmation email
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.

More
13 years 2 weeks ago #123227 by Jerome
Replied by Jerome on topic Confirmation email
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
Code:
<?php if ($config->get('show_code')) { $colspan++; ?> <td style="font-weight:bold;"><?php echo JText::_('CART_PRODUCT_CODE'); ?></td> <?php } ?>
By
Code:
<?php $colspan++; ?> <td style="font-weight:bold;"><?php echo JText::_('CART_PRODUCT_CODE'); ?></td>
And
Code:
<?php if ($config->get('show_code')) { ?> <td><p class="hikashop_product_code_mail"><?php echo $item->order_product_code; ?></p></td> <?php } ?>
By
Code:
<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.

More
13 years 1 week ago #123261 by mediaset
Replied by mediaset on topic Confirmation email
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.257 seconds
Powered by Kunena Forum