Collection page - show specific variants under the product

Collection page - show specific variants under the product

Vlk1
Excursionist
23 1 0

Hello,

I have a problem here that might have a solution. On my store I have this specific collection called "sales". I have there some sneakers on sale BUT there are only specific sizes on sale, not every size. Is it somehow possible to show that specific sizes under the product? For example if you can see the first black sneaker called Adidas Campus Core Black, from all sizes only size 40 2/3 is in sale so there would be "40 2/3" highlighted under the price of the shoe, so that code would somehow react on sizes, that would have filled "compare at price" column. 

Thank you for answers and tips. 

Snímek obrazovky 2024-02-14 v 12.47.03.png

Replies 7 (7)

Zeel-prajapatii
Shopify Partner
138 32 27

Hey @Vlk1  add below code.

 

@media screen and (max-width:480px){
.collection-list .card__inner {
    height: 140px;
}
}
➔ Was I helpful , please don't forget to like and mark solution as an accepted solution , you can PM me.
➔ Software engineer : Having more than 3 years of experience in the related industry with the specialization of Shopify theme development , worked on hundreds of stores.
➔ Want to hire me? Email me
Vlk1
Excursionist
23 1 0

Hello, I have tried to put it to certain section in custom css and then I have also tried to put it to base.css but it is not working for me.

Sweet_Savior_3
Shopify Partner
1336 102 138

Hello @Vlk1 

 

Okay, I have understood your query. But what if you have multiple sizes available? Then it will show all the available sizes ?

 

Please confirm.

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
Vlk1
Excursionist
23 1 0

Yes that is the problem. I would like it to be able only filter and show sizes where is filled “compare at price” column, that would ensure that only discounted sizes would appear 

Sweet_Savior_3
Shopify Partner
1336 102 138

Yes @Vlk1 

 

But if you 5 sizes in a product and two of them contains a compare at price then what should be the output ?

Product Title Size 1 & Size 2 ? Or the highest of one of them ?

 

Also this is a custom requirement so it can be achieved by altering a code. I would recommend you a hire a developer at a reasonable rate. Let me know if you are looking for ?

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
Vlk1
Excursionist
23 1 0

The output would be all sizes that matches the condition (filled compare at price) si the first solution you have mentioned. 

I already have one I just tried it here first. 

Sweet_Savior_3
Shopify Partner
1336 102 138

Okay. You can ask your developer to setup for you.

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!