MAP Pricing + Add to Cart to see price

Deb_Beresford
Tourist
14 0 2

Hello MonsterMed

Thanks for the help on this...but I'm stuck right at the beginning...I do not have this snippet "Go to "Snippets" and select "product-loop.liquid"."  any thoughts?

Thanks so much

Deb

0 Likes
MonsterMed
Tourist
10 0 1

Hi Deb.

What theme are you using?

Also, if your store does not utilize a collections page, you could probably skip step one.

0 Likes
Deb_Beresford
Tourist
14 0 2

We actually are using Fresh...and do use collections.  We have a collections.liquid template...would I find it there instead of the product loop one?

Thanks again

0 Likes
MonsterMed
Tourist
10 0 1

can you copy the text of your collections.liquid into a reply here so I can see what function is being called?

0 Likes
Deb_Beresford
Tourist
14 0 2

Will this work?  You're awesome...thanks so much!

{% paginate collection.products by settings.paginate_products_by %}

{% if current_tags %}
    <h1>{{collection.title|escape}} - Items tagged as "{{current_tags.first | capitalize}}"</h1>
{% else %}
    <h1>{{collection.title|escape}}</h1>
{% endif %}


{% if collection.description.size > 0 %}
    <div id="collection-desc" class="{% if settings.mobile_hide_coll_desc %} hide-for-mobile{% endif %}">
        {{collection.description}}
    </div>
{% endif %}

<div class="filter-menu clearfix">
  
  <div class="main-col">
  
    <ul class="block-grid columns{{settings.products_per_row}} collection-th">
      {% for product in collection.products %}
    {% include 'collection-loop' %}
      {% endfor %}
    </ul>
    
    {% if paginate.pages > 1 %}
    <div id="paginate">
        {{ paginate | default_pagination }}
    </div>
    {% endif %}
  </div>
  <div class="left-col">
    {% include 'filter-menu' %}
  </div>
</div>  

 

{% if settings.show_tags %}
    {% if collection.tags.size > 0 %}
        <div id="collection-tags" class="{% if settings.mobile_hide_coll_tags %} hide-for-mobile{% endif %}">
            <p><strong>{{settings.tag_text}} </strong>
            {% for tag in collection.tags %}
                {{ tag | link_to_tag: tag }}
            {% endfor %}
            </p>
        </div>
    {% endif %}
{% endif %}

{% endpaginate %}

0 Likes
MonsterMed
Tourist
10 0 1

It looks like it's the "collection-loop" on your theme!

0 Likes
Deb_Beresford
Tourist
14 0 2

Hi There...so sorry to be such a pain but I've checked the Collection-Loop and I don't have anything that says Span class = "Price"  This is what I have

<li>
            <a href="{{ product.url }}" title="{{ product.title | escape }}">
                <span class="thumb">
                    <img src="{{ product.images.first | product_img_url: 'large' }}" alt="{{ product.title | escape }}" />
                </span>
                <span class="product-title">{{ product.title | escape }} <em>{% if product.price_varies %}from {% endif%}{{product.price | money}}</em></span>
                {% if product.compare_at_price %}
                    <span class="sale-item sticker-{{settings.sale_color}}">Sale</span> 
                {% endif %}
            </a>
            </li>

Do I need to use this step?  I have changed a button that said "Add to Cart" with that function to say "Email Us" and brought up a contact form instead...is it kind of the same process?

Thanks again

Deb 

0 Likes
MonsterMed
Tourist
10 0 1

Hi Deb,

This step is to hide your pricing on the collections page. In your case, you need to modify this line.
 

<span class="product-title">{{ product.title | escape }} <em>{% if product.price_varies %}from {% endif%}{{product.price | money}}</em></span>

 

I think it would look something like this: 

<span class="product-title">{{ product.title | escape }} <em>{% comment %}{% if product.price_varies %}from {% endif%}{{product.price | money}}{% endcomment %} More Information</em></span>

 

0 Likes
Deb_Beresford
Tourist
14 0 2

Thanks again for your input.  Here's the thing...I only want to do this for SOME products...not all.  I thought I would just build a new template called Price-In-Cart.  If I change this...won't I be changing it for ALL products on my site?

I really need to send you something for all your trouble!  Thanks SO VERY MUCH!

0 Likes
MonsterMed
Tourist
10 0 1

This is where the 

{% if product.tags contains 'map' %}

statement comes into play. 

So the full statement would look a bit like this. 
 

{% if product.tags contains 'map' %}
<span class="product-title">{{ product.title | escape }} <em>{% comment %}{% if product.price_varies %}from {% endif%}{{product.price | money}}{% endcomment %} More Information</em></span>

{% else %}
<span class="product-title">{{ product.title | escape }} <em>{% if product.price_varies %}from {% endif%}{{product.price | money}}</em></span>

{% endif %}

And then you add the 'map' tag to all the products with map pricing. 

It's no trouble. It was a pain trying to figure it out for myself, so I can sympathize.

0 Likes