Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi.
So I can't get this a widget to work. It is an image that's supposed to show when my product is the cheapest on the pricerunner search engine.
This is their statement:
Increase conversions for your products that have the lowest price at PriceRunner by showing a badge.
Badge HTML script
<a area-hidden="true" target="_blank" href="https://www.pricerunner.dk/widget/cheapest/backlink/294887?sku=PRODUCT_SKU">
<img
src="https://www.pricerunner.dk/widget/cheapest/image/294887?sku=PRODUCT_SKU&market=DK"
alt="Lowest price at PriceRunner"
/>
</a>
Replace "PRODUCT_SKU" with your product SKU and "MARKET" with the market the product is available in.
I've posted the code in the main-product.liquid section as:
{%- assign current_variant = product.selected_or_first_available_variant -%}
<a
aria-hidden="true"
target="_blank"
href="https://www.pricerunner.dk/widget/cheapest/backlink/39916?sku={{ current_variant.sku }}"
rel="nofollow"
>
<img
src="https://cdn.shopify.com/s/files/1/0841/8616/9689/files/lowest_price_badge_DA_PR_Klarna.png?v=1726514...{{ current_variant.sku }}&market=DK&width=200"
alt="Billigst på PriceRunner"
/>
</a>
Right now i have linked to the picture in my shopify account and not from the pricerunner link as it didn't work. But now the picture doesn't go away even when the product is not the cheapest.
Any advice?
Thanks
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