Re: implementation of the lowest price in the last 30 days

implementation of the lowest price in the last 30 days

annebebe
Visitor
1 0 0

We need to display on the product page the lowest selling price of the last 30 days.
See example below.
the lowest price in the last 30 days X.00 RON

This text & price (the lowest price in the last 30 days X.00 RON
) must be displayed when 'Price' is lower than 'Compare-at price'.

Example:
Price 80
Historical Price Evaluation 100
Compare-at price 100
Display "the lowest price in the last 30 days 80 RON"


Price 70
Historical Price Evaluation 80
Compare-at price 100
Display "the lowest price in the last 30 days 80 RON"

 

If Price < 'Compare-at price' -> displays "the lowest price in the last 30 days X.00 RON". But it must be displayed on the product page as long as Price < compared price.
If 'Price' = 'Compare-at price' -> "the lowest price in the last 30 days X.00 RON" is not displayed
If 'Price' > 'Compare-at price' -> "the lowest price in the last 30 days X.00 RON" is not displayed

Can you help us?

Capture.PNG

Capture2.PNG

Replies 8 (8)

pawankumar
Shopify Partner
627 93 115

You can do it like this

{% if product.compare_at_price  > product.price %}
the lowest price in the last 30 days X.00 RON
{% endif %}
- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
GJack2
Visitor
1 0 0

Hi. Where exactly do you need to paste this code?

pawankumar
Shopify Partner
627 93 115

Hi @GJack2 
You can add the code on product page, You can add this in main-product.liquid to a place where you want this.

{% if product.compare_at_price  > product.price %}
You can update your messaging here
{% endif %}


Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

Ablestar_Daniel
Shopify Partner
135 23 45

If you're open to using an app our Ablestar Bulk Product Editor stores a history of all prices it sees for products and lets you set a field or metafield to the lowest price from the last 30 days.

 

Here's a two-minute video showing you how it works:

 

The app has a free plan with five free edits a month (no limit on products) so if you just update your prices occasionally you can get by with that.

 

Best,

Daniel

Founder @ Ablestar ✦
Manage product data, spreadsheets, Google Shopping data, and metafields with Ablestar Bulk Product Editor. Use previews, undos, and automations to be confident your product data is correct.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
JohnBoye
Tourist
10 0 5

Hi - does the app track all price edits or just price edits done through the app? 

Ablestar_Sophie
Shopify Partner
38 2 5

Hi @JohnBoye,
Yes, we keep track of all price updates since the app was installed, not just the ones that were done through the app.

Sophie Mincke | Community Manager @ Ablestar
Bulk edit your products in-app or with a spreadsheet https://apps.shopify.com/bulk-product-editor

fhollste
Shopify Partner
2 0 0

If the lowest price is shown in order to comply with the EU pricing directive (omnibus) you actually need to calculate the lowest price from the 30-day period prior to a discount. In other words the lowest prior price does not change during the discount but it is in practice used to display the correct discount. It is not allowed, according to the directive, to say that a product is discounted X% compared to the compare at price if the lowest prior price is lower than the compare at price.
Luckily there are apps that take care of the calculations and theme integrations. Here's one example: https://apps.shopify.com/omnibus-price

Katee1
Shopify Partner
8 0 0

Hi!

You can achieve it by setting your app display lowest price block only for discounted products. I use Omnibus Insight and it worked for me. The good thing is that it does all the calculations for you.