Jump to content

Gift Wrapping Price in Cart Summary


tebdilikiyafet

Recommended Posts

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

  • 1 month later...
  • 1 year 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...