Skip to main content

Order of Shipping and Coupon in Cart

More
12 years 11 months ago #133289 by fudge4u
-- 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

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #133320 by Mohamed Thelji
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->Display->Views".

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago - 12 years 11 months ago #133367 by fudge4u
I found the solution. I had to change 2 things in that file.
First:
if(!empty($this->coupon) || !empty($this->shipping) || !empty($this->additional) || bccomp($taxes,0,5)) {
to:
if(!empty($this->shipping) || !empty($this->coupon) || !empty($this->additional) || 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. Reason: Issue discovered

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum