Jump to content

Discount amount doesn't show negative in cart


Guy

Recommended Posts

Hello,

Need some help on the display of discount in shopping cart.

The discount shows a positive number instead of negative when a cart rule applies. See screenshot below.

I tried it on PS 1.7.2.5 and upgrade to 1.7.4.2, but received the same issue with classic and another theme.

Anybody can help how to change the discount to a negative number? 

Thanks in advance!

discount.JPG

Link to comment
Share on other sites

I found there were two files under folder ...themes/classic/templates/checkout/_partials. One was  cart-detailed-totals.tpl for shopping cart page that your fix worked fine.

The other one was cart-summary-totals.tpl for checkout page.  I tried to paste your fix in this file, but it didn't work. Here's the code of this file.

<div class="card-block cart-summary-totals">

  {block name='cart_summary_total'}
    <div class="cart-summary-line cart-total">
      <span class="label">{$cart.totals.total.label} {$cart.labels.tax_short}</span>
      <span class="value">{$cart.totals.total.value}</span>
    </div>
  {/block}

  {block name='cart_summary_tax'}
    <div class="cart-summary-line">
      <span class="label sub">{$cart.subtotals.tax.label}</span>
      <span class="value sub">{$cart.subtotals.tax.value}</span>
    </div>
  {/block}

</div>

Can you help check how to change the discount number to negative in this file?

Thank you!

 

Link to comment
Share on other sites

  • 10 months later...

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...