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

#   Show Zero When Shipping is Free in Emails

##

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 5 months ago [\#203507](#203507) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  *[Show Zero When Shipping is Free in Emails](/forum/28-shipping-methods/877290-show-zero-when-shipping-is-free-in-emails#203507 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  1) In the order emails, when shipping is free the total looks like the first item on the attached. How can I make it look like the item below it and show the shipping as $0;  So it should say:  Sub Total: $189 Shipping: $0 Total: $189  2) Also, in the order emails, it shows the cost as follows:  Total: $189 Shipping: $0 Total: $189  How/where do I change the FIRST total to say &quot;Sub Total&quot; instead of &quot;Total&quot;.  Thank you.")* was created by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0

1) In the order emails, when shipping is free the total looks like the first item on the attached. How can I make it look like the item below it and show the shipping as $0;

So it should say:

Sub Total: $189
Shipping: $0
Total: $189

2) Also, in the order emails, it shows the cost as follows:

Total: $189
Shipping: $0
Total: $189

How/where do I change the FIRST total to say "Sub Total" instead of "Total".

Thank you.

- [ ![free-shipping.jpg](/forum/attachment/24734) ](/forum/attachment/24734 "free-shipping.jpg") [ ](/forum/attachment/24734?download=1 "free-shipping.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#203516](#203516) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show Zero When Shipping is Free in Emails](/forum/28-shipping-methods/877290-show-zero-when-shipping-is-free-in-emails#203516 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  1) In the order emails, when shipping is free the total looks like the first item on the attached. How can I make it look like the item below it and show the shipping as $0;  So it should say:  Sub Total: $189 Shipping: $0 Total: $189  2) Also, in the order emails, it shows the cost as follows:  Total: $189 Shipping: $0 Total: $189  How/where do I change the FIRST total to say &quot;Sub Total&quot; instead of &quot;Total&quot;.  Thank you.")*

Hi,

You will have to edit the email "preload" part, so in the order_status_notification email, preload part you have to remove the PHP if condition: Code:

if(bccomp($data-&gt;cart-&gt;order_discount_price,0,5)) {

don't forget to remove the ending bracket to avoid PHP error.

So that will display the shipping even if it is free.

Then for the subtotal issue, it should already display "sub total", please check the translation for the text key "SUBTOTAL",
I think that this is just a translation issue.
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

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

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 5 months ago [\#203582](#203582) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Show Zero When Shipping is Free in Emails](/forum/28-shipping-methods/877290-show-zero-when-shipping-is-free-in-emails#203582 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  1) In the order emails, when shipping is free the total looks like the first item on the attached. How can I make it look like the item below it and show the shipping as $0;  So it should say:  Sub Total: $189 Shipping: $0 Total: $189  2) Also, in the order emails, it shows the cost as follows:  Total: $189 Shipping: $0 Total: $189  How/where do I change the FIRST total to say &quot;Sub Total&quot; instead of &quot;Total&quot;.  Thank you.")*

With the change that I made it is now showing the shipping as a coupon but it's not a coupon - the shipping is set-up to be FREE if the order is over a certain amount so it's not a coupon, it's shipping.

Also, it is still not looking as I had suggested in my post. Please see the attached as to how I would like the amounts to show on the notification emails. I will try to get the "Order Status Notification" email working first then will work on the others.

Your help is appreciated. Thanks!

- [ ![totals.jpg](/forum/attachment/24746) ](/forum/attachment/24746 "totals.jpg") [ ](/forum/attachment/24746?download=1 "totals.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#203639](#203639) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show Zero When Shipping is Free in Emails](/forum/28-shipping-methods/877290-show-zero-when-shipping-is-free-in-emails#203639 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  1) In the order emails, when shipping is free the total looks like the first item on the attached. How can I make it look like the item below it and show the shipping as $0;  So it should say:  Sub Total: $189 Shipping: $0 Total: $189  2) Also, in the order emails, it shows the cost as follows:  Total: $189 Shipping: $0 Total: $189  How/where do I change the FIRST total to say &quot;Sub Total&quot; instead of &quot;Total&quot;.  Thank you.")*

Hi,

My bad, I gave you the wrong line, the correct line to remove is: Code:

if(bccomp($data-&gt;cart-&gt;order_shipping_price,0,5)){

And to add the subtotal part, you have to remove the line: Code:

if(bccomp($data-&gt;cart-&gt;order_discount_price,0,5) &#124;&#124; bccomp($data-&gt;cart-&gt;order_shipping_price,0,5) &#124;&#124; bccomp($data-&gt;cart-&gt;order_payment_price,0,5) &#124;&#124; ($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) &#124;&#124; !empty($data-&gt;cart-&gt;additional)){

and its ending bracket.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc3MjkwLXNob3ctemVyby13aGVuLXNoaXBwaW5nLWlzLWZyZWUtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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.060 seconds

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