Shopify themes, liquid, logos, and UX
I have a product variant that I would like to set the size attribute to:
Size: "EFC-1 (Fits F-1, HTM-1, G-4 Fenders)"
but when I try to add this to the product options it breaks it up on the commas and tries to add several attributes. Is the comma character a special character not allowed in product options text? Is there a way or a trick to include commas?
Solved! Go to the solution
This is an accepted solution.
Hi @drock111,
Yes, since the code detects that this is another options. If you really need comma on this. You cant write the options as follow. Replace the comma with "/"
EFC-1 (Fits F-1/ HTM-1/ G-4 Fenders)
Depending on your theme, you have to change the value of the variant like below.
NOTE: You need to change the section product, the cart and the notification.
{{ value | replace: "/", "," }}
This is the Shopify 2.0 FREE themes main-product.liquid
This is an accepted solution.
Hi @drock111,
Yes, since the code detects that this is another options. If you really need comma on this. You cant write the options as follow. Replace the comma with "/"
EFC-1 (Fits F-1/ HTM-1/ G-4 Fenders)
Depending on your theme, you have to change the value of the variant like below.
NOTE: You need to change the section product, the cart and the notification.
{{ value | replace: "/", "," }}
This is the Shopify 2.0 FREE themes main-product.liquid
Hello, is there any update on this please? Shopify won't let me add this code anywhere (Theme - Impulse)
You need to open another question. The code does not apply to impact theme
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025