All my product pages are displaying this code above the products

Solved

All my product pages are displaying this code above the products

Mp2023
Tourist
3 1 0

Hi,

All my product pages are displaying a code above each product. Here is a screen shot.

 

How do i fix this?Screenshot 2023-02-11 171425.jpg

 
Thanks
Marty
Accepted Solutions (2)
StoreSurgeon
Shopify Partner
67 8 8

This is an accepted solution.

paste this code on the very first line 

{% capture redirectScript %}{% render 'bsscommerce-redirect-product-page-logic', product: product %}{% endcapture %}{% assign redirectScript = redirectScript | strip %}{% unless redirectScript contains "Liquid error" %}{% if redirectScript != "" %}<script id="bss-redirect" type="text/javascript">window.location.replace("{{ redirectScript }}")</script>{% endif %}{% endunless %}<section

View solution in original post

Mp2023
Tourist
3 1 0

This is an accepted solution.

That took care of the problem. Thank You

View solution in original post

Replies 4 (4)

StoreSurgeon
Shopify Partner
67 8 8

Hi @Mp2023  

glad to support you today.

Please go to sections of your live theme and find main-product.liquid and take screen shot of first  2 lines and send it to me 

I will find the issue and give you the solution to fix .

Thanks

Mp2023
Tourist
3 1 0

Hi StoreSurgeon,

Here is the screenshot you asked forScreenshot 2023-02-12 130840.jpg

StoreSurgeon
Shopify Partner
67 8 8

This is an accepted solution.

paste this code on the very first line 

{% capture redirectScript %}{% render 'bsscommerce-redirect-product-page-logic', product: product %}{% endcapture %}{% assign redirectScript = redirectScript | strip %}{% unless redirectScript contains "Liquid error" %}{% if redirectScript != "" %}<script id="bss-redirect" type="text/javascript">window.location.replace("{{ redirectScript }}")</script>{% endif %}{% endunless %}<section
Mp2023
Tourist
3 1 0

This is an accepted solution.

That took care of the problem. Thank You