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

#   Shows Cost with shipping even though shipping is hidden

##

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

Less More

- Posts: 63
- Thank you received: 1
-
-

8 years 2 months ago [\#296728](#296728) by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")  *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296728 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")* was created by *[mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")*

-- Joomla version -- : 3.8.11
-- PHP version -- : 7.0

Hello,

In the Hikashop Cart Module, we have it configured as:

[ www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0](https://www.dropbox.com/s/dsmic758u2da8da/Screenshot%202018-08-14%2015.43.51.png?dl=0)

As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:
[ www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0](https://www.dropbox.com/s/yleidua0lnwb1ys/Screenshot%202018-08-14%2015.46.06.png?dl=0), if I disable coupon the calculation is correct.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 2 months ago -  8 years 2 months ago [\#296733](#296733) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296733 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Hello,

A solution can eventually be to directly edit the code of the "Cart" file of the "Product" view of your front-end template via "Hikashop-&gt;Display-&gt;Views" and change these lines : Code:

&lt;td class="hikashop_cart_module_product_total_value"&gt;&lt;?php $this-&gt;row = $this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt;&lt;/td&gt;

by : Code:

&lt;td class="hikashop_cart_module_product_total_value"&gt;&lt;?php // // $price_name = ''; if(!$this-&gt;params-&gt;get('show_shipping', 0) &amp;&amp; isset($this-&gt;total-&gt;prices[0]-&gt;price_value_without_shipping)){ $price_name = '_without_shipping'; } if(!$this-&gt;params-&gt;get('show_coupon', 0) &amp;&amp; isset($this-&gt;total-&gt;prices[0]-&gt;price_value_without_discount)){ $price_name = '_without_discount'; } $price = ''; if($this-&gt;params-&gt;get('price_with_tax')){ $var_name = 'price_value'.$price_name.'_with_tax'; $price .= $this-&gt;currencyClass-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;$var_name, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ $price .= JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ $var_name = 'price_value'.$price_name; $price .= $this-&gt;currencyClass-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ $price .= JText::_('PRICE_AFTER_TAX'); } echo $price; ?&gt;&lt;/td&gt;

Last edit: 8 years 2 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 63
- Thank you received: 1
-
-

8 years 2 months ago [\#296805](#296805) by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")  Replied by *[mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296805 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Thank you, I take it this will be in the next release?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTQ5Ny1zaG93cy1jb3N0LXdpdGgtc2hpcHBpbmctZXZlbi10aG91Z2gtc2hpcHBpbmctaXMtaGlkZGVuP3RtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#296809](#296809) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296809 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Hello,

The patch that Mohamed gave you is adapted to your configuration.
For the moment we don't think that we will integrate it in the next release because it won't suit for all users.
We need to find for other solutions and see if there is one which can be useful for everybody.

But if you apply the modification via a view override, you will be sure to not loose it with updates.

Regards,

---

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

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

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

Less More

- Posts: 63
- Thank you received: 1
-
-

8 years 2 months ago [\#296906](#296906) by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")  Replied by *[mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296906 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Hello,

But it is a bug is it not? You tell it not to show shipping within the cart yet it still calculates the price of shipping....

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

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

Less More

- Posts: 63
- Thank you received: 1
-
-

8 years 2 months ago [\#296916](#296916) by [mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")  Replied by *[mikekiy](/forum/user/33571-mikekiy "View mikekiy's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296916 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Hello,

It is rather a nightmare. Now we have the coupon not being added to the total configuration.

Many thanks
Tony

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 2 months ago [\#296920](#296920) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shows Cost with shipping even though shipping is hidden](/forum/27-checkout/895497-shows-cost-with-shipping-even-though-shipping-is-hidden#296920 "-- Joomla version -- : 3.8.11 -- PHP version -- : 7.0  Hello,  In the Hikashop Cart Module, we have it configured as:    www.dropbox.com/s/dsmic758u2da8da/Screen...%2015.43.51.png?dl=0  As you can see coupon = yes, but shipping = no, price is calculated with shipping always event though shipping isn't shown and it looks like:   www.dropbox.com/s/yleidua0lnwb1ys/Screen...%2015.46.06.png?dl=0 , if I disable coupon the calculation is correct.")*

Hello,

> But it is a bug is it not? You tell it not to show shipping within the cart yet it still calculates the price of shipping....

Thank you for your feedback we just added it on our TODO list for futur HikaShop versions, we'll keep you updated about it.

> It is rather a nightmare. Now we have the coupon not being added to the total configuration.

Depending on your configuration some adaptation should be applied through the code we gave you.

Best regards,
Mohamed Thelji.

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

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