Guy Posted November 9, 2018 Share Posted November 9, 2018 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! Link to comment Share on other sites More sharing options...
Guy Posted November 11, 2018 Author Share Posted November 11, 2018 Works great! Thank you! But the checkout page still shows positive number of discount. Do you know how to modify in cart-summary-totals.tpl file? The format in this file looks different. Thank you! Link to comment Share on other sites More sharing options...
Guy Posted November 11, 2018 Author Share Posted November 11, 2018 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 More sharing options...
Guy Posted November 12, 2018 Author Share Posted November 12, 2018 Found in the file cart-summary.tpl. Replaced the code and it works great now. Thanks a lot! Link to comment Share on other sites More sharing options...
WorDym Posted September 17, 2019 Share Posted September 17, 2019 Hello, I've got the same problem, found this thread, but half of it is missing for me (i guess the account who erote the replies got deleted). Could you please post the edited code here? Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now