tebdilikiyafet Posted March 25, 2013 Share Posted March 25, 2013 Hi everybody; I use vs. 1.5.3.1 and I have a problem with gift wrapping price in cart summary. When I choose gift wrapping on checkout page, it's price is added to total price but not shown as a seperate price like in cart summary; Total gift-wrapping (tax incl.): 5$ I found the reason of this. In cart-summary.js there is piece of javascipt code on row 621: if (json.discounts.length === 0) { $('.cart_discount').each(function(){$(this).remove();}); $('.cart_total_voucher').remove(); } this code remove cart_total_voucher class from DOM and because of "Total gift-wrapping (tax incl.):" in this class it cannot shown. Actually prestashop try to display it with this code in cart-summary.js: if (json.total_wrapping > 0) { $('#total_wrapping').html(formatCurrency(json.total_wrapping, currencyFormat, currencySign, currencyBlank)); $('#total_wrapping').parent().show(); } but it can not. If we don't remove "cart_total_voucher" class we can display gift wrapping price. What do you think about this solution? Or any other solution for this? Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted April 29, 2013 Author Share Posted April 29, 2013 Is there any idea? Link to comment Share on other sites More sharing options...
AlexandraM Posted December 11, 2014 Share Posted December 11, 2014 Is there any idea? I commented this line: $('.cart_total_voucher').remove(); and it works fine. I am not sure it is the best solution but it worked for me. 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