Personalized checkout and custom promotions with Shopify Scripts
I am trying to emulate the following appearance from another Shopify store (the global brand Hismile).
A support advisor pointed me in the direction of this code segment from the Shopify .dev docs, but I have no idea how exactly to implement this.
I would also like to add the string 'was' before compare-at-prices storewide, so 'was $75', or 'was $75.50'.
You can see all of this in the image example from hismileteeth.com below.
As you can see, for the compare-at-price it also removes the 'AU', unlike in my current set up which you can view below.
Thank you in advance for any help.
I don't have access to your theme code but this is usually implemented in sections --> main-product.liquid
I tried to do this but it didn't work. Do I need to modify this code in some way, it doesn't look to be in a format I've ever seen.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025