Jump to content

Swap discount and shipping in cart


Recommended Posts

Hi,

when using a cart coupon incl. free shipping the shipping costs are still shown in cart therfore I wonder if it is possible to swap the position of discount (Rabatt) and shipping (Versand) in Cart?

Meaning: I would like to put the discount below the shipping.

discount.jpg.6971598e83122e599b6b547c2ed8e9ec.jpg

I tried swapping discount and shipping in cart-detailed-totals.tpl - but this didn´t do the trick.

 

Thank you for your help.

 

Link to comment
Share on other sites

Hi @wcra,

Got to your_theme > templates > checkout > _partials > cart-detailed-totals.tpl

I reckon the piece of code you're looking for might be this one where you can swap the two elements.

<span class="value">
  {if 'discount' == $subtotal.type}-&nbsp;{/if}{$subtotal.value}
</span>
{if $subtotal.type === 'shipping'}
	<div><small class="value">{hook h='displayCheckoutSubtotalDetails' subtotal=$subtotal}</small></div>
{/if}

It's best if you do that in a child time. Hope it helps!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...