Display full price that has been discounted on checkout

Can someone please help me in why we do not see the full price of the product on the checkout page, we only see the discounted price - this also happens on our upsell for the product Komfies - please see images below to understand :slightly_smiling_face: thankyou

https://clair-de-lune.co.uk/

Hi @joshualev ,

Are you using Shopify plus or app to display checkout page?

If you are using Shopify plus, you can go to checkout.liquid file and add the following code:


Hope it helps!

@LitCommerce this works perfectly thankyou, would you know how to do this for our upsell below the products too?

Hi @joshualev ,

Please go to checkout.liquid file, find ‘append(productda)’ and change code here:

Code:

jQuery.getJSON('https://clair-de-lune.co.uk/products/white-marshmallow-dressing-gown.js', function(product) {
  console.log(product);
  var pro_price = product.price/100;
  var compare_price = '';
  product.compare_at_price > product.price ? compare_price = '£'+product.compare_at_price+'' : compare_price = '';
  var productda = '

'+product.title+'';
  productda += '
£'+pro_price+''+compare_price+'

';
  productda += '

';
  jQuery(".upsells").append(productda);
});

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

@LitCommerce i will do this now thankyou, one quick question do you know why the currency is in dollar signs? can we change this to GPB?

@LitCommerce ?

Hi @joshualev ,

Please change code here:

Hope it helps!