All things Shopify and commerce
Hi,
All my product pages are displaying a code above each product. Here is a screen shot.
How do i fix this?
Solved! Go to the solution
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
This is an accepted solution.
That took care of the problem. Thank You
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
Hi StoreSurgeon,
Here is the screenshot you asked for
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
This is an accepted solution.
That took care of the problem. Thank You
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025