How to apply snippet to certain pages only

I am using the ‘Dawn’ theme and have a snippet of code that calculates delivery dates.

I want the full version of dates on the product page (which I currently have working correctly), but then I want a simplified version on collection pages which use the ‘card-product.liquid’ snippet. I tried adding logic to my delivery date snippet like shown below, but it still displays the full version on all pages. Any ideas?

{% if snippet contains 'card-product' %} I also tried: {% if page.url contains 'collection' %}

	     

SIMPLIFIED VERSION:

                 FREE shipping:  **-** 

	{% else %}

              

FULL VERSION:

                 FREE shipping:  **-** 

              

Express shipping:  **-** 

{% endif %}