Removing price for featured product (Brooklyn theme)

oxfhealthspan
New Member
9 0 0

I want to remove the price of my featured product on the landing page. I've seen posts for the removal of prices on the featured collection, but not a singular featured product. How can I remove the landing page featured product price (see image)?

 

Screen Shot 2021-02-10 at 6.08.28 PM.png

0 Likes

Hello,
Please share your site url.
So that I can check and let you know the exact solution here.

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes

Hi,

want you intend does not seem to be possible with customization, but you could change the liquid file in question. In Brooklyn this is the file featured-product.liquid. Within the file search for "{% include 'product-price' " and comment out this and maybe the following lines.

 

 

{% comment %}
          {% include 'product-price', variant: current_variant %}

          {%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
            <div class="product-single__policies rte">
              {%- if shop.taxes_included -%}
                {{ 'products.general.include_taxes' | t }}
              {%- endif -%}
              {%- if shop.shipping_policy.body != blank -%}
                {{ 'products.general.shipping_policy_html' | t: link: shop.shipping_policy.url }}
              {%- endif -%}
            </div>
          {%- endif -%}
{% endcomment %}

 

 Alternatively you can  add a new snippet to the snippet folder, e.g. 'product-no-price.liquid' copy the content of the snippet 'product-price.liquid' into it. Search for <span id="ProductPrice"  and comment it out either with {% comment %} {% endcomment %} or <!-- -->

 

  <!--span id="ProductPrice"
    class="product-single__price{% if variant.compare_at_price > variant.price %} on-sale{% endif %}"
    itemprop="price"
    content="{{ variant.price | divided_by: 100.00 }}">
    {{ variant.price | money }}
  </span-->

 

 Then replace
{% include 'product-price', variant: current_variant %}
with
{% include 'product-no-price', variant: current_variant %}
in the file featured-product.liquid.
The second approach would be my preferred one because probably in the long run it gives you more flexibility.
Please let me know if this solved your request.
Regards
Thomas
 
• War meine Antwort hilfreich? Hinterlasse bitte ein Like.
• Hat meine Antwort Dein Problem gelöst? Bitte akzeptiere sie als Lösung.
0 Likes