How to change product variant option name

How to change product variant option name

X-DREAM
Excursionist
29 0 3

I would like to keep everything only change the blue highlight part name. please see screenshot below. want change COLOR to OPTION.

Thanks

 

www.x-dream.com.au

password: 666

 

 

Capture.PNG

Replies 2 (2)

BSS-Commerce
Shopify Partner
3477 463 535

Hi @X-DREAM ,

Please follow these steps:
1. Access your Shopify admin page, select Online Store => Themes
2. Search for the Theme you are using, select Edit code

view - 2024-01-24T173926.207.png

3. In the code folder, find the theme.liquid file and add the following code here and click Save

view - 2024-01-24T174026.959.png

Code to add: 

document.querySelector('h5[class*="product-variant-selector-item-heading"]').innerText = document.querySelector('h5[class*="product-variant-selector-item-heading"]').innerText.replace("COLOR", "OPTION")

 This is the result:

view - 2024-01-24T174114.023.png

Hope it helps @X-DREAM 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

magenest
Shopify Partner
162 12 23

Hey there @X-DREAM,

 

According to your question, you just need to change the name of the Variants, please refer to the image below.

magenest_0-1706168974035.png

Let us know if it works.

Magenest - One-stop Digital Solution Provider
- Don’t forget to drop a thumbs-up and Mark it as a Solution if you find our response useful
- Elevate your online business with our Shopify experts and professional designers