Disabling/Hiding variant picker hides compare price and disables add to cart functionality Debutify

Solved

Disabling/Hiding variant picker hides compare price and disables add to cart functionality Debutify

samuelsvensrud
Shopify Partner
13 0 3

Since I only have one variant i want to disable thevariant picker for less friction and higher conversions, but disabling the "variant picker" block removes compare price and disables add to cart functionality I am using Debutify.

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10092 2398 3030

This is an accepted solution.

You have error in your theme.css file

Made4uoRibe_0-1728677455110.png


Please correct your code

.dbtfy-image-with-text .ambient-movement-left {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translate(0) !important;
}
.header__icon--menu .icon{
display: none !important;
}
div[data-product-option] {
    position: absolute;
    visibility: hidden;
}

 

It should look like this

Made4uoRibe_1-1728677529648.png

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 10 (10)

Made4uo-Ribe
Shopify Partner
10092 2398 3030

Hi @samuelsvensrud 

 

The theme might be using the variant picker as part of the functionality. I would suggest just hide the variant picker and not disable it. Is all your products have one variant? If you share your website, I can provide the code to hide it. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
samuelsvensrud
Shopify Partner
13 0 3

Would really appreciate it! https://lumavibe.shop/

Made4uo-Ribe
Shopify Partner
10092 2398 3030

Thank you @samuelsvensrud 


1. From Admin page, go to Online Sore > Themes.
2. Choose the theme you want to edit and click the three dots "then Edit code." This should open the code editor.
3. Under the Assets folder on your left, open the theme.css
4. At the very bottom of the file, add the code below, then SAVE

div[data-product-option] {
    position: absolute;
    visibility: hidden;
}

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
samuelsvensrud
Shopify Partner
13 0 3

Didn't work unfortunately

Made4uo-Ribe
Shopify Partner
10092 2398 3030

This is an accepted solution.

You have error in your theme.css file

Made4uoRibe_0-1728677455110.png


Please correct your code

.dbtfy-image-with-text .ambient-movement-left {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translate(0) !important;
}
.header__icon--menu .icon{
display: none !important;
}
div[data-product-option] {
    position: absolute;
    visibility: hidden;
}

 

It should look like this

Made4uoRibe_1-1728677529648.png

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
samuelsvensrud
Shopify Partner
13 0 3

You're the man!

Made4uo-Ribe
Shopify Partner
10092 2398 3030

Woman! 😊 We are female Shopify developers 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
samuelsvensrud
Shopify Partner
13 0 3

How can I hide this code on my product page?  

samuelsvensrud_0-1728678869344.png

 

Made4uo-Ribe
Shopify Partner
10092 2398 3030

Hi @samuelsvensrud 

 

Did you try to place the code somewhere? Open your theme.liquid under layout folder and look for the code

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
samuelsvensrud
Shopify Partner
13 0 3

Screenshot 2024-10-17 192742.png

Placed it at the bottom of theme.liquid