Shopify themes, liquid, logos, and UX
I wish to add the text 'RRP' to the product page and product grid when you have a regular price and sale price, to appear before the striken- out regular price.
Solved! Go to the solution
This is an accepted solution.
Great.
Try to add "RRP" on line 45 of price.liquid snippet.
You can easily do it by heading to Online Store > [...] > Edit code and then searching for "price".
Let me know if that works!
Ciao 👋
Simone
This is an accepted solution.
Hi
I inserted a line with 'RRP' after line 59 in the price.liquid snippet. This has introduced the RRP text after the compare at price, they both are struck out but it suits us and it only appears when there is a regular price and sale price.
Many thanks for your help in pointing us in the right direction
This is an accepted solution.
Well done @Goodyears 🙌
Feel free to like the reply and/or mark the solution as Accepted.
Have a good one!
Simone
Hi,
could you please provide your Shopify Store URL?
Which theme are you using?
Thanks,
Simone
I am using Dawn 7.0.1, it has not been published yet.
This is an accepted solution.
Great.
Try to add "RRP" on line 45 of price.liquid snippet.
You can easily do it by heading to Online Store > [...] > Edit code and then searching for "price".
Let me know if that works!
Ciao 👋
Simone
Hi
Thank you for the suggestion, the only problem is that the 'RRP' needs to only be displayed when there is a compare at price. Any items with no compare at price do not need the RRP. The 'RRP' text needs to be inserted when the price is crossed out, I assume there is a test to determine this within this code?
This is an accepted solution.
Hi
I inserted a line with 'RRP' after line 59 in the price.liquid snippet. This has introduced the RRP text after the compare at price, they both are struck out but it suits us and it only appears when there is a regular price and sale price.
Many thanks for your help in pointing us in the right direction
This is an accepted solution.
Well done @Goodyears 🙌
Feel free to like the reply and/or mark the solution as Accepted.
Have a good one!
Simone
Hi, I am using theme Kalles. I have tried the way you shown but I think because it is year old and different theme it is not the same. I have attached a screenshot of my theme codes, any idea where should I add RRP?
thanks a lot
Can anybody help me with this, I'm using Canopy which is a Purchased theme, and my price snippet is a lot different so i can't follow the instructions. I want to install RRP when a struck out price is present. Help.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024