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

#   Order of Shipping and Coupon in Cart

##

- **[fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")**
- [![fudge4u's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1509.jpg)](/forum/user/1509-fudge4u "View fudge4u's Profile") Topic Author
- [ Offline](/forum/user/1509-fudge4u)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://www.fudgebydesign.com)
-

12 years 11 months ago [\#133289](#133289) by [fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")  *[Order of Shipping and Coupon in Cart](/forum/27-checkout/863774-order-of-shipping-and-coupon-in-cart#133289 "-- url of the page with the problem -- :   www.fudgebydesign.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.16  Is there a way to change the order of the summary in the cart view? Right now, it lists the total, coupon, shipping, final total  Since I often use coupons for shipping, I would like to have the coupon amount appear AFTER the shipping amount. I tried editing the display views, but that did not work for me.  Thanks")* was created by *[fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")*

-- url of the page with the problem -- : [ www.fudgebydesign.com](http://www.fudgebydesign.com)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.16

Is there a way to change the order of the summary in the cart view? Right now, it lists the total, coupon, shipping, final total

Since I often use coupons for shipping, I would like to have the coupon amount appear AFTER the shipping amount. I tried editing the display views, but that did not work for me.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc3NC1vcmRlci1vZi1zaGlwcGluZy1hbmQtY291cG9uLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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
-
-
-

12 years 11 months ago [\#133320](#133320) 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 *[Order of Shipping and Coupon in Cart](/forum/27-checkout/863774-order-of-shipping-and-coupon-in-cart#133320 "-- url of the page with the problem -- :   www.fudgebydesign.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.16  Is there a way to change the order of the summary in the cart view? Right now, it lists the total, coupon, shipping, final total  Since I often use coupons for shipping, I would like to have the coupon amount appear AFTER the shipping amount. I tried editing the display views, but that did not work for me.  Thanks")*

Hi,
You'll have to do it by editing the code of the "Cart" file of your "checkout" view of your front-end template through "*Hikashop-&gt;Display-&gt;Views*".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc3NC1vcmRlci1vZi1zaGlwcGluZy1hbmQtY291cG9uLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")**
- [![fudge4u's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1509.jpg)](/forum/user/1509-fudge4u "View fudge4u's Profile") Topic Author
- [ Offline](/forum/user/1509-fudge4u)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://www.fudgebydesign.com)
-

12 years 11 months ago -  12 years 11 months ago [\#133367](#133367) by [fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")  Replied by *[fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile")* on topic *[Order of Shipping and Coupon in Cart](/forum/27-checkout/863774-order-of-shipping-and-coupon-in-cart#133367 "-- url of the page with the problem -- :   www.fudgebydesign.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.16  Is there a way to change the order of the summary in the cart view? Right now, it lists the total, coupon, shipping, final total  Since I often use coupons for shipping, I would like to have the coupon amount appear AFTER the shipping amount. I tried editing the display views, but that did not work for me.  Thanks")*

I found the solution. I had to change 2 things in that file.
First:
if(!empty($this-&gt;coupon) &#124;&#124; !empty($this-&gt;shipping) &#124;&#124; !empty($this-&gt;additional) &#124;&#124; bccomp($taxes,0,5)) {
to:
if(!empty($this-&gt;shipping) &#124;&#124; !empty($this-&gt;coupon) &#124;&#124; !empty($this-&gt;additional) &#124;&#124; bccomp($taxes,0,5)) {

Then I moved the coupon php section below the shipping php section.

Now it displays correctly.

Thank You

Last edit: 12 years 11 months ago by [fudge4u](/forum/user/1509-fudge4u "View fudge4u's Profile"). Reason: Issue discovered

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc3NC1vcmRlci1vZi1zaGlwcGluZy1hbmQtY291cG9uLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.072 seconds

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

[](#top)
