All things Shopify and commerce
I am trying to show the dollar amount saved on the Product info, when using Shopify's Compare at Price Feature.
I have used the code from https://community.shopify.com/c/shopify-discussions/show-amount-save-on-product-page-debut-theme/m-p... to implement this, and it has worked for all of my products with just one variant.
However when I add in 2 or more variants, then the calculation breaks and the wrong figure is shown. This resolves itself when I delete the second variant. You can see that the Superbly Stainless option (which has two variants) has the incorrect saving calculation, while the other two products which only have 1 product variant have the right saving calculation:
This issue occurs on all pages where the product card shows, including on the product page iteself.
Can anyone suggest how to adapt this code so that it works to correctly display the saving on products with multiple variants?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024