Motion Theme - Hide Sold Out Price / Gray out item

Acerino3
Tourist
12 0 1

Hello,

I am using the Motion Theme and would like to Hide the Sold Out price on the product and collection pages. Also, gray out the product picture when sold out. Please help!!!

Thank you

Replies 18 (18)

Qualitycheck
Shopify Expert
1449 114 233

hello,

Welcome to the Shopify community!
and Thanks for your Good question.

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the fil

.grid-product__tag.grid-product__tag--sold-out {
display: none;
}

Acerino3
Tourist
12 0 1

I will try. Also, how do you opacity a sold out product picture I’m collections and in the product page?

Acerino3
Tourist
12 0 1

@Qualitycheck wrote:

hello,

Welcome to the Shopify community!
and Thanks for your Good question.

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the fil

.grid-product__tag.grid-product__tag--sold-out {
display: none;
}


It doesn’t seem to be working. The price is still showing

snafu273
Visitor
2 0 0

I’m having the same issue. Trying to hide sold prices. Any update on this? Many thanks 

Zworthkey
Shopify Partner
5581 642 1569

@Acerino3 

hi, we are happy to help you.
please share me your Site url 
Thank you.

Acerino3
Tourist
12 0 1

Mima-shoppe.myshopify.com

Ajay-app-dev
Shopify Partner
178 16 14

Hi @Acerino3 

Share the url, so that i can look into this. 

Try Essentialwolf Upsell & Cross Sell (★★★★★ 5+ star) App

- Was your question answered? Mark it as an Accepted Solution
- Learn more about us at www.essentialwolf.com
Acerino3
Tourist
12 0 1

Mima-shoppe.myshopify.com

Ajay-app-dev
Shopify Partner
178 16 14

@Acerino3 , As i can see, i need to go through your code and conditionally hide the price and other stuff you wanted. You can PM me 

Try Essentialwolf Upsell & Cross Sell (★★★★★ 5+ star) App

- Was your question answered? Mark it as an Accepted Solution
- Learn more about us at www.essentialwolf.com

LitExtension
Shopify Partner
4860 1001 1135

Please follow the steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to Assets > theme.css and paste this at the bottom of the file:
.grid-product__tag--sold-out~.grid-product__link .grid-product__price {
display: none;
}
.grid-product__tag--sold-out~.grid-product__link .grid-product__image-mask{
opacity: 0.3;
}

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Acerino3
Tourist
12 0 1

I added your code to file theme.css.liquid

But no change, price still shows up and product picture hasnt been opacified. Please help

here is that last bit of code:

 

.template-giftcard .logo{
color:#58686f;
}

.grid-product__tag--sold-out~.grid-product__link .grid-product__price {
display: none;
}
.grid-product__tag--sold-out~.grid-product__link .grid-product__image-mask{
opacity: 0.3;
}

}

Ajay-app-dev
Shopify Partner
178 16 14

Hi @Acerino3 

Try this, not tested.

.template-giftcard .logo{
color:#58686f;
}

.grid-product__tag--sold-out~.grid-product__link .grid-product__price {
display: none !important;
}
.grid-product__tag--sold-out~.grid-product__link .grid-product__image-mask{
opacity: 0.3 !important;
}

}

 

Try Essentialwolf Upsell & Cross Sell (★★★★★ 5+ star) App

- Was your question answered? Mark it as an Accepted Solution
- Learn more about us at www.essentialwolf.com
Acerino3
Tourist
12 0 1

I tried yours also. Nothing happened. Thank you for trying

Ajay-app-dev
Shopify Partner
178 16 14

@Acerino3 

The above code working perfectly, have a look. If still, you have a problem, let me know. Have you tried hard refresh or tried in a private window? 

Ajay_kumar_dev_0-1627452597320.png

 

Try Essentialwolf Upsell & Cross Sell (★★★★★ 5+ star) App

- Was your question answered? Mark it as an Accepted Solution
- Learn more about us at www.essentialwolf.com
Acerino3
Tourist
12 0 1

I tried hard refresh and other computers and tablets. The price is still showing and the product image is not opacified. I'm not sure why its not working for me

snafu273
Visitor
2 0 0

Did this ever get resolved?

Zworthkey
Shopify Partner
5581 642 1569

@Acerino3 
Hi, kindly share me your store url.

Acerino3
Tourist
12 0 1

mima-shoppe.myshopify.com