Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Button converts from inch to cm

How can I add a size conversion button in my store?

Mural
New Member
4 0 0

I would like to know how can i have a button in my store that when a client look at the variants sizes that he have in my store, he can press on the button and it will switch from inch to cm and the opposite

 

Mural_1-1708368728075.png

Mural_0-1708368792343.png

 

 

Replies 5 (5)
Mural
New Member
4 0 0

That's really good pseudo code but it is not simple for me to change the code in the theme

DevDynamo
Shopify Partner
42 11 5

Hey @Mural ,

 

You can achieve this using JavaScript. Please share the website URL so I can look into it and provide you with the best solution/code.

 

Thank You.

- Helpful response? Please give it a Thumbs Up!
- Solved your query? Mark it as an Accepted Solution!
- Level up your Shopify game - Subscribe to 'Shopify Insight' for exclusive insights today!
Mural
New Member
4 0 0

Thank you.

This is my website:

https://www.muralmajesty.com/

Mural
New Member
4 0 0
DevDynamo
Shopify Partner
42 11 5

Hey @Mural ,

 

Upon reviewing the requirement, it appears that additional development is needed. If the unit switch feature is intended solely for front-end display purposes, JavaScript can be utilized to implement it. However, if the conversion of entire units also requires processing in the backend, modifications should be made to the Shopify template file following a feasibility test.

 

Thank You.

- Helpful response? Please give it a Thumbs Up!
- Solved your query? Mark it as an Accepted Solution!
- Level up your Shopify game - Subscribe to 'Shopify Insight' for exclusive insights today!