Cheapest on pricerunner widget

Cheapest on pricerunner widget

Frederikrp
Visitor
1 0 0

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

Replies 0 (0)