Order of Shipping and Coupon in Cart

  • Posts: 20
  • Thank you received: 0
11 years 6 months ago #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

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #133320

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.

  • Posts: 20
  • Thank you received: 0
11 years 6 months ago #133367

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: 11 years 6 months ago by fudge4u. Reason: Issue discovered

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

Time to create page: 0.065 seconds
Powered by Kunena Forum