[Skip to main content](#vessel-content)

#   Several issues with Confirmation email &amp; Invoice

##

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 11 months ago [\#224232](#224232) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  *[Several issues with Confirmation email &amp; Invoice](/forum/27-checkout/881102-several-issues-with-confirmation-email-invoice#224232 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- PHP version -- : 5.4.38  Hi, I ran into a couple of issues with the confirmation email and the invoice pdf.  1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.  2. Trackingnumber. I created a custom field called &quot;trackingnummer&quot; in the order table. I want to list that in the confirmation email. I found the following code.  This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.  3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?  Thanks")* was created by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6
-- PHP version -- : 5.4.38

Hi,
I ran into a couple of issues with the confirmation email and the invoice pdf.

1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.

2. Trackingnumber. I created a custom field called "trackingnummer" in the order table. I want to list that in the confirmation email. I found the following code. Code:

$fieldsClass = hikashop::get('class.field'); $fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { echo "\r\n".$fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName); }

This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.

3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTEwMi1zZXZlcmFsLWlzc3Vlcy13aXRoLWNvbmZpcm1hdGlvbi1lbWFpbC1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 11 months ago [\#224292](#224292) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Several issues with Confirmation email &amp; Invoice](/forum/27-checkout/881102-several-issues-with-confirmation-email-invoice#224292 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- PHP version -- : 5.4.38  Hi, I ran into a couple of issues with the confirmation email and the invoice pdf.  1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.  2. Trackingnumber. I created a custom field called &quot;trackingnummer&quot; in the order table. I want to list that in the confirmation email. I found the following code.  This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.  3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?  Thanks")*

Hi,

1. You can find the subtotal into Code:

$data-&gt;cart-&gt;order_subtotal

2. Because your custom field is a text custom field, you just need to display the content of the field ; you do not need to convert the value into a "title". Code:

echo $data-&gt;cart-&gt;trackingnummer

Otherwise, I suppose that your order custom field is not available in the frontend but only in the backend ; which would explain why the field is not loaded (the first parameter "frontcomp" indicate the front end component).

3. There is a setting in HikaShop to show or not the product code.
The email read that setting to display (or not) the product code. Code:

'ORDER_PRODUCT_CODE' =&gt; (bool)$config-&gt;get('show_code', false),

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTEwMi1zZXZlcmFsLWlzc3Vlcy13aXRoLWNvbmZpcm1hdGlvbi1lbWFpbC1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 11 months ago [\#224299](#224299) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Several issues with Confirmation email &amp; Invoice](/forum/27-checkout/881102-several-issues-with-confirmation-email-invoice#224299 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- PHP version -- : 5.4.38  Hi, I ran into a couple of issues with the confirmation email and the invoice pdf.  1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.  2. Trackingnumber. I created a custom field called &quot;trackingnummer&quot; in the order table. I want to list that in the confirmation email. I found the following code.  This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.  3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?  Thanks")*

Thanks Jerome,
1 and 2 are working correctly now.
3. I have the product code turned on in the settings.
This all works fine, but the only problem i still have is the product code is not showing up in the pdf invoice thats attached to the email.
How can i get it to show the product code in the attached pdf invoice?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTEwMi1zZXZlcmFsLWlzc3Vlcy13aXRoLWNvbmZpcm1hdGlvbi1lbWFpbC1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 11 months ago [\#224311](#224311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Several issues with Confirmation email &amp; Invoice](/forum/27-checkout/881102-several-issues-with-confirmation-email-invoice#224311 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- PHP version -- : 5.4.38  Hi, I ran into a couple of issues with the confirmation email and the invoice pdf.  1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.  2. Trackingnumber. I created a custom field called &quot;trackingnummer&quot; in the order table. I want to list that in the confirmation email. I found the following code.  This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.  3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?  Thanks")*

Hi,

Regarding the PDF invoice and the product_code, I invite you to read this thread:
[ www.hikashop.com/support/forum/integrati...-in-pdf-invoice.html](http://www.hikashop.com/support/forum/integrations/870089-product-code-in-pdf-invoice.html)

The following user(s) said Thank You: [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTEwMi1zZXZlcmFsLWlzc3Vlcy13aXRoLWNvbmZpcm1hdGlvbi1lbWFpbC1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 11 months ago [\#224358](#224358) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Several issues with Confirmation email &amp; Invoice](/forum/27-checkout/881102-several-issues-with-confirmation-email-invoice#224358 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- PHP version -- : 5.4.38  Hi, I ran into a couple of issues with the confirmation email and the invoice pdf.  1. I am trying to show the Subtotal without taxes in the confirmation email. I got it to work with the coupon and shipping code, but am lost on how to do it with the subtotal.  2. Trackingnumber. I created a custom field called &quot;trackingnummer&quot; in the order table. I want to list that in the confirmation email. I found the following code.  This code doesnt work for me. But also i would like to be able to seperately select where each field will be displayed in the email. I think this code would list ever custom field i would make after eachother.  3. For both the confirmation email and the invoice i would like to show the product code (SKU). How can i do this?  Thanks")*

Thank works great. Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTEwMi1zZXZlcmFsLWlzc3Vlcy13aXRoLWNvbmZpcm1hdGlvbi1lbWFpbC1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
