How can I hide a variant on a custom product page?

Hello.

I created a product theme template for my greeting cards. For each card, the customer can choose a variant for quantity (single card of pack of 6 cards).

But to facilitate the filtering, I also added a variant for the occasion. Since this is only for filtering purposes and the customer can’t select anything for this variant, i’d like it to be hidden on the product pages :

Can you help please?

Hi @petitlaurierco ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:

Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :


Hope my answer will help you.

Best regards,

Victor | PageFly

Hello @petitlaurierco ,

You can follow these steps:

  1. Go to Online Store->Theme->Edit code

  1. Open your theme.liquid file, paste the below code before


I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

@GemPages it did work !!! Thank you so much ! :slightly_smiling_face: I really appreciate!