Remove price from collection pages and hamburger menu not working (Craft)


Hello I recently updated my store to the new craft theme. Although I have tried to copy all custom code I added but appear to be missing some things.

  1. Can somebody help with the code to remove the price on the collection pages to my products with the template “default product” so this is all gates on my site. But I would like to keep the price to show on my products with the template called “with price” See image below

  2. For some reason after updating this my hamburger menu wont work, no idea why. Can anyone help please

Thanks in advance

Hey @CraigReep

Your website is password protected, can you share your website password as well?

Best Regards,

Moeed

chameleon

sorry I am currently changing some things in the code so it may change as your looking

Hey @CraigReep

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi that has worked, although after speaking to shopify support there are some more errors.

I was using an app, price calculator, on my product pages to let users input custom dimentions and work out a price. This has now disappeared from my profuct pages. Could you help with this as insure why?

Hey @CraigReep

Remove the previous code and add this new code, this code will only remove prices from the collection page.

{% if template.name == 'collection' %}

{% endif %}

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi also sorry this didnt work infact, It hid the price for all products. But I only want it too for products with the template “default”

This hasnt worked. The tamplate is called “default product”
Should it say “if default.product”