Re: How can I change the default variant size for just rings

How can I change the default variant size for just rings

JKIRK
Excursionist
55 0 7

Hi,

 

I want to change the default variant ring size from 48 to 52 on the PDP.

 

Thanks

Replies 10 (10)

ZestardTech
Shopify Partner
5751 1051 1390

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: [email protected]
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

laddisahsi
Shopify Partner
385 38 41

Hi @JKIRK 

Can you please share store URL?

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!

Moeed
Shopify Partner
5334 1443 1727

Hey @JKIRK 

 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


JKIRK
Excursionist
55 0 7
ZestardTech
Shopify Partner
5751 1051 1390

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:

 

li.HorizontalList__Item {
font-size: 17px!important;
}

 

ZestardTech_0-1696836653324.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: [email protected]
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
JKIRK
Excursionist
55 0 7

Hi @ZestardTech I want the default option highlighted to be 52 instead of 48 for the variant

laddisahsi
Shopify Partner
385 38 41

Hi @JKIRK 

You can follow the following steps:

1. Please go to the Online Store
2. Then Edit Code
3. Please find the theme.liquid file
4. And add the following code in theme.liquid file above the </body> tag

<script>
$('ul.SizeSwatchList li').each(function(){
    var val = $(this).children('input').val();
       if(val == '52'){
			$(this).children('input').prop("checked", true);	
	   }else{
		$(this).children('input').prop("checked", false);
	   }

});
</script>

 

 

laddisahsi_0-1696838582549.png

 

 

 

 

If this solution is worked, then please Like this and Mark this as accepted solution!


Laddi

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
JKIRK
Excursionist
55 0 7

Thanks @laddisahsi  it worked but when I add to bag it's still 48 size

laddisahsi
Shopify Partner
385 38 41

@JKIRK 

To select the variant have to add jS accordingly for this have to check the File code according to theme.

It would be great if you can  provide collab access.

Thanks

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
JKIRK
Excursionist
55 0 7

Hi @laddisahsi ,

 

Thanks, can you request access?