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

#   Subtotal and Shipping charges not showing when shipping method is zero cost

##

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

Less More

- Posts: 75
- Thank you received: 7
-
-

5 years 7 months ago [\#331090](#331090) by [wildweststudios](/forum/user/31720-wildweststudios "View wildweststudios's Profile")  *[Subtotal and Shipping charges not showing when shipping method is zero cost](/forum/35-orders-management/902242-subtotal-and-shipping-charges-not-showing-when-shipping-method-is-zero-cost#331090 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : Joomla! 3.9.25 Stable -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : Firefox 86.0.1  I would like my subtotal and shipping charges to always show in both my Admin notification email and my customer's order creation email.  Right now those lines only show if a shipping charge greater than zero is chosen at checkout.  Using overrides, I have changed &quot;HIKASHOP&#95;SHIPPING&quot; to 'Rush Charge', and &quot;SUBTOTAL&quot; to 'Product Total'.  For example, when the user orders different products, then chooses our default $0 cost production method (which is really a shipping method), the subtotal and rush charge (shipping charge) lines are not shown at all.  If they choose a shipping method with a cost to it then both subtotal and shipping charge (rush charge) show in the email.  You can see both ways in my attached files.")* was created by *[wildweststudios](/forum/user/31720-wildweststudios "View wildweststudios's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : Joomla! 3.9.25 Stable
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : Firefox 86.0.1

I would like my subtotal and shipping charges to always show in both my Admin notification email and my customer's order creation email.

Right now those lines only show if a shipping charge greater than zero is chosen at checkout.

Using overrides, I have changed "HIKASHOP_SHIPPING" to 'Rush Charge', and "SUBTOTAL" to 'Product Total'.

For example, when the user orders different products, then chooses our default $0 cost production method (which is really a shipping method), the subtotal and rush charge (shipping charge) lines are not shown at all.

If they choose a shipping method with a cost to it then both subtotal and shipping charge (rush charge) show in the email.

You can see both ways in my attached files.

- [ ![withoutrushcharge.jpg](/forum/attachment/52359) ](/forum/attachment/52359 "...rushcharge.jpg") [ ](/forum/attachment/52359?download=1 "...rushcharge.jpg")
- [ ![withrushcharge.jpg](/forum/attachment/52360) ](/forum/attachment/52360 "...rushcharge.jpg") [ ](/forum/attachment/52360?download=1 "...rushcharge.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMjI0Mi1zdWJ0b3RhbC1hbmQtc2hpcHBpbmctY2hhcmdlcy1ub3Qtc2hvd2luZy13aGVuLXNoaXBwaW5nLW1ldGhvZC1pcy16ZXJvLWNvc3Q/dG1wbD1tYXJrZG93bg==) 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: 86357
- Thank you received: 14289
-
-

5 years 7 months ago [\#331119](#331119) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal and Shipping charges not showing when shipping method is zero cost](/forum/35-orders-management/902242-subtotal-and-shipping-charges-not-showing-when-shipping-method-is-zero-cost#331119 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : Joomla! 3.9.25 Stable -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : Firefox 86.0.1  I would like my subtotal and shipping charges to always show in both my Admin notification email and my customer's order creation email.  Right now those lines only show if a shipping charge greater than zero is chosen at checkout.  Using overrides, I have changed &quot;HIKASHOP&#95;SHIPPING&quot; to 'Rush Charge', and &quot;SUBTOTAL&quot; to 'Product Total'.  For example, when the user orders different products, then chooses our default $0 cost production method (which is really a shipping method), the subtotal and rush charge (shipping charge) lines are not shown at all.  If they choose a shipping method with a cost to it then both subtotal and shipping charge (rush charge) show in the email.  You can see both ways in my attached files.")*

Hi,

You need to edit the emails via the menu System&gt;Emails.
There, you need to look at the bottom "preload" section of the email where the data is formatted.
You'll see this line: Code:

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

that you can change to: Code:

if(true){

so that the shipping fee row is always displayed.
Similarily, you can change the line: Code:

if(bccomp($data-&gt;cart-&gt;order_discount_price,0,5) != 0 &#124;&#124; bccomp($data-&gt;cart-&gt;order_shipping_price,0,5) != 0 &#124;&#124; bccomp($data-&gt;cart-&gt;order_payment_price,0,5) != 0 &#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)){

to: Code:

if(true){

so that the subtotal amount is always displayed.

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

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

Less More

- Posts: 75
- Thank you received: 7
-
-

5 years 7 months ago [\#331138](#331138) by [wildweststudios](/forum/user/31720-wildweststudios "View wildweststudios's Profile")  Replied by *[wildweststudios](/forum/user/31720-wildweststudios "View wildweststudios's Profile")* on topic *[Subtotal and Shipping charges not showing when shipping method is zero cost](/forum/35-orders-management/902242-subtotal-and-shipping-charges-not-showing-when-shipping-method-is-zero-cost#331138 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : Joomla! 3.9.25 Stable -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : Firefox 86.0.1  I would like my subtotal and shipping charges to always show in both my Admin notification email and my customer's order creation email.  Right now those lines only show if a shipping charge greater than zero is chosen at checkout.  Using overrides, I have changed &quot;HIKASHOP&#95;SHIPPING&quot; to 'Rush Charge', and &quot;SUBTOTAL&quot; to 'Product Total'.  For example, when the user orders different products, then chooses our default $0 cost production method (which is really a shipping method), the subtotal and rush charge (shipping charge) lines are not shown at all.  If they choose a shipping method with a cost to it then both subtotal and shipping charge (rush charge) show in the email.  You can see both ways in my attached files.")*

Ok great, I got it working. Thanks.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

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

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