Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
How to display "price on request" in collection when price is more than 1000.
I used following code to reflect image 1. It doesnt take the following condition and reflects for all products.
{% if money_price > "1000" %} Price on request {% endif %}
If I input 1000 as integer, I get this error "Comparison Of Integer With String Failed". Need help.
Image 1
Solved! Go to the solution
This is an accepted solution.
I tried {{product.price}} and saw the numbers 500000 instead of 5000.00, seems the decimal is removed and calculated along. Adding 00 fixed the issue and is working now.
{% if product.price > 600000 %} Price on request {% endif %}
Thank you so much for your time, really appreciate it.
Hi @Arkligte
Please try to update your code to this and check again.
{% if card_product.price > 1000 %} Price on request {% endif %}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi, than you for the reply.
I tried the given code. It removes the price completely as shown in below image.
Played with the conditions to check if it works but sadly it doesn't. I am unable to figure out why the operator isn't working. I am currently replacing {{money_price}} to the code and I am in price.liquid file.
So please try to use this code
{% if product.price > 1000 %} Price on request {% endif %}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Thank you, the condition doesn't seem to work strangely.
I am currently using {% if product.price > 6000 %} Price on request {% endif %} and got the below result.
End result I am looking for is "First image should only show the price (as its lesser than 6000) and second image should show "Price on request" (as its greater).
Am using sense theme at the moment.
Please try to add this code before the that code to check what value of your item's price
{{ product.price }}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
I tried {{product.price}} and saw the numbers 500000 instead of 5000.00, seems the decimal is removed and calculated along. Adding 00 fixed the issue and is working now.
{% if product.price > 600000 %} Price on request {% endif %}
Thank you so much for your time, really appreciate it.
You are very welcome
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
I guess you must add code like this.
{% if product.price > 600000 %} Price on request {% endif %}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi, Quick question.
Condition is, if a collection called "INTERIOR" (handle is 'interior') has products that cost more than 1000, it should show "price on request". I am using following codes, but it's not working. Rest of the collection should show regular prices without any condition.
Tried this one
{% assign collection_handle = 'interior' %}
{% if product.price > 100000 and collections[collection_handle].products %} Price on request
{% else %}
{{ money_price }}
{% endif %}
Tried this one too
{% assign collection_handle = 'interior' %}
{% for product in collections[collection_handle].products %}
{% if product.price > 100000 %} Price on request
{% else %}
{{ money_price }}
{% endif %}
{% endfor %}
Use this code
{% if product.price > 100000 and collection.handle == 'interior' %}
Price on request
{% else %}
{{ money_price }}
{% endif %}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi, thank you for the code. Collection.handle doesn't seem to work, only the TV is tagged under interior.
Hi @Arkligte
Please update the code
{% assign productCollections = card_product.collections | map: "handle" %}
{% if productCollections contains 'interior' %}
{% if product.price > 100000 %}
Price on request
{% else %}
{{ money_price }}
{% endif %}
{% endif %}
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025