Support applying discount to compare-at price
complete
Tobe Osakwe
complete
Tobe Osakwe
The "Apply discount to compare at price" option is now re-enabled in the advanced settings builder.
Please let us know if you have any questions about it!
PS. We want to hear about your experience with our app! Please leave a review on the Shopify App Store: https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal
Thank you so much, we appreciate it!
Tobe Osakwe
Quick update:
In order to prevent breaking existing discounts, I've temporarily disabled the "Apply discount to compare at price" option.
Soon, I'll roll out some new changes that will enable it again.
From this point on, the "basic" logic builder will only have 2 options for handling sale price/compare at price:
- Don't apply discount to items already on sale (default)
- Stack discounts on top of sale price
Whereas the advanced logic builder will have both of these options, as well as the option to "Calculate discount based on compare at price."
This is because the while the advanced logic builder applies discounts to line items individually, the "basic" logic builder (the one without a flowchart) calculates 1 big discount that applies to all eligible items in the cart.
Shopify Functions discounts don't support applying discounts to compare at prices natively, so to support this, we have to do that calculation per line item, which is why only the advanced logic builder will be able to support it.
Your satisfaction is our #1 priority - please let us know if you have any questions or concerns.
Stay tuned for further updates.
Best,
Tobe
Tobe Osakwe
Product discounts now have a new set of options: "How to handle items already on sale."
- Calculate discount based on compare at price (default)
- Don't apply discount to items already on sale
- Stack discounts on top of sale price
Please let us know if you have any questions or concerns about this feature.
Tobe Osakwe
in progress
Tobe Osakwe
It's difficult to make a guarantee, but these are the reasons I believe it will be possible for me to code these options into the app:
- The Shopify Discount Function APIs (which our app is built on) supports getting the compare at price for each line in the cart
- It also supports fixed amount discounts, so if there's a compare at price, we can turn a percentage discount into a fixed amount calculation
---
However, there are constraints that could pose a problem.
Specifically, in Shopify Functions, there is a
strict
limit on how much data our discount can request from the API, and we can only request data once per run of the discount code.That is to say, our app can only ever support a limited number of features, due to restrictions in Shopify itself. If it weren't for these restrictions, we would be able to implement almost all the features users have requested so far.
So first, I have to see if it's even possible for me to add support for compare at prices, before writing the new code.
Nicolás Blanco
I have a system of referrals, who have 50% discount on a category, I mark them with a tag (on the actual price of the product).
I have the problem that when applying a discount to a customer by tag it is done immediately to the "Price" and not to the "Comparison price". Therefore, if I make a discount for all customers on my page and the customer has the tag, he gets both discounts, thus making a discount on discount, and I get out of hand the real discount I want to make to customers.
Therefore, I need the option to be able to make the discount directly to the comparison price or unfortunately the application would not work for me, as it could make me big losses.
Tobe Osakwe
I'm going to be working on changes to the code for our discounts, but it will likely take a few days.
As part of these changes, I plan to include options in the app that will let you decide what the app should do when a product has a compare at price.
Nicolás Blanco
Tobe Osakwe Fantastic! Thank you very much
Tobe Osakwe
The other aspect to this, what everyone wants is different.
- Some people want the app to never apply any discount to an item with a sale price & compare at price
- Some people want the app to calculate discounts based on the compare at price if it's present
Is there anything I'm missing here?
Tobe Osakwe
There is no solution for this at this time. However, it is something we plan to improve.
The obstacle here is that when we apply a percentage discount to a product in the cart/checkout, it always applies to whatever the current price is. There is no way for us to tell Shopify, "apply a 20% discount off the compare at price instead of the sale price."
The only thing we can tell Shopify is either, "apply a 20% discount," or "subtract $x from the price."
---
Also, if the sale price is less than the discounted price the customer would receive without the sale price, there is no way in Shopify for us to say, "add $x to the price of this item."
For example, if your product is $10, and the sale price is $5, but you only want our app to apply a 20% discount, we can't tell Shopify "increase the price from $5 to $8."
---
My question to you all is, in your use case, are you expecting our app to make the item's price in the cart less than or greater to the sale price you have set?
Load More
→