We are using lightspeed and shopify & use product variants on lightspeed for our reporting. However they obviously pull through to Shopify, while we want the sizes on the product pages, we would like to hide the “type”/“colour” variants, is there a way to do this without removing the variants from lightspeed?
Hey @Jodiwalker ,
Yes, you can hide the “type” or “color” variants on your Shopify store without affecting the Lightspeed setup. Here’s a strategy to achieve this while keeping the size variants visible on Shopify’s product pages.
Using Liquid Code Customization:
Follow these steps:
-
Online Store > Themes > Edit Code
-
Open the Product Template:
-In the Sections folder, look for product-form.liquiud or main-product-product.liquid.
-Alternatively, you may find it in Snippets as product-variants.liquid.
- Modify the Liquid Code:
Inside the product form, locate the loop where variants/options are rendered. It usually looks like this:
{% for option in product.options %}
{% endfor %}
Add a conditional check to exclude specific options (like “type” or “color” ![]()
{% for option in product.options %}
{% unless option.name == 'Color' or option.name == 'Type' %}
{% endunless %}
{% endfor %}
Save the changes and preview your product pages to ensure only the size variants are displayed.
If I was able to help you, please don’t forget to Like and mark it as the Solution!
Best Regard,
Rajat Sharma