Metafield Discounts
in progress
Tobe Osakwe
Summary:
Imagine a new discount type that dynamically adjusts product prices based on metafields, enabling more tailored and responsive pricing strategies.
Details:
- Specific Metafield Values:Consider a scenario where a product with avip_status.tier_namemetafield of 'Gold' receives a special price.
- Dynamic Discount Values:If each product variant has amy_store.wholesale_pricemetafield, the discount could apply this price automatically, allowing for real-time pricing adjustments. You would be able to tell our app to read a discount value from a customer/product/variant metafield on-the-fly.
Design Considerations:
- Metafield Schema:A standardized schema for metafields would ensure consistent parsing and application of these dynamic discounts.
- Initial Focus on Product Discounts:Initially focusing on product discounts allows us to evaluate the feature's impact and user adoption before considering expansion to other types of discounts.
Why It Would Be Useful:
This feature would allow merchants to quickly adapt their pricing strategies without manual adjustments, making promotions more efficient and directly linked to their inventory and cost changes. It could significantly enhance sales tactics by offering flexibility in how discounts are applied, tailored specifically to current business needs.
Feedback Needed:
Would a "Metafield Discount" that applies wholesale prices directly align with your pricing strategy? What insights or needs do you have regarding extending this feature to include discounts on orders or shipping in the future? Please comment on this thread with your thoughts. Thank you!
Tobe Osakwe
If you're looking to use a metafield-based discount feature, please reply with an example of a use case you would like to implement.
For example, "20% off items where metafield namespace.key = 'abc'"
This way, we can be sure that our input query includes the necessary fields.
Thanks,
Tobe
L
Lara Marsh
Tobe Osakwe Yes!
Our scenario is "X% off order (or each item) where metafield namespace.key = 'NNN' and value='YYY'"
Ex. Give customers 8% off their order if they are VIP Level 8. (customer.vip_level = 'VIP8') Give customers 15% off their order if they are VIP Level 15.
Tobe Osakwe
Lara Marsh Thank you! Just a heads up: That discount is already possible in our existing discount types (which support querying up to 1 customer metafield).
L
Lara Marsh
Tobe Osakwe - oh my apologies. Actually, we want to build this based on COMPANY metafield, not CUSTOMER metafield.
Tobe Osakwe
in progress
Tobe Osakwe
Merged in a post:
Ability to apply discount based on company metafield
L
Lara Marsh
Allow criteria to check company metafields when determining if a discount can be applied.
Tobe Osakwe
under review
Tobe Osakwe
Hello,
Friendly reminder that, if you want us to implement this feature, we need your help upvoting this GitHub discussion thread I opened with Shopify:
If Shopify does not either increase the input query limit, or make it dynamic per-user, it will be impossible for us to support querying product/variant metafields
. This is because our input query has already hit the limit due to implementing other conditions in the logic builder.Thanks for your help,
Tobe
S
Seun Oyebode
Hello Everyone,
We've received requests on Cart Metafield discounts. However, the Shopify Functions API does not support reading cart metafields:
Tobe Osakwe
If we were to try to implementing this feature, we'd essentially have to create 3 new discount types: product, order, and shipping discounts, but they would only support metafields and maybe a subset of the conditions other discounts can support.
This would just cause too much confusion, so we're not taking this approach.
The challenge here is the Shopify Functions Input Query Complexity Limitation. The input query for a Shopify Functions discount can have a complexity of 30 max.
This limit of 30 applies to every discount created, even if you're not using all the fields. For example, because our app can check the presence of specific collections on products, that's 3 added to the query cost, even if your individual discount logic doesn't check for any collections.
## Want this limit to change?
Your best course of action is to upvote and comment on this GitHub discussion thread to let Shopify know how important this to you. Otherwise, we won't be able to implement this feature.
Here is a different thread I opened in the past that was closed:
Tobe Osakwe
closed
After extensive consideration, we’ve found that adding more features hasn’t led to better outcomes; instead, it’s increased churn and support needs, which has impacted our ability to focus on what we do best: making complex discounts simple. Going forward, we’ll prioritize stability and core functionality by not adding new API integrations, major design changes, or advanced options that could overcomplicate the app. We appreciate your understanding as we double down on delivering a streamlined, reliable experience!
Tobe Osakwe
Hey everyone,
I’ve merged several open and closed feature requests into a new proposed "Metafield Discount" type focused on products. This aims to address the recurring demand for metafield-based pricing adjustments. Initially, it would only apply to products, not orders or shipping.
Could you review the proposed feature and let me know if this would meet your needs? Your input is crucial as we consider adding this functionality.
Thanks,
Tobe
Tobe Osakwe
Merged in a post:
Add product variant metafield conditions
Tobe Osakwe
For example, this would allow users to create a discount for only product variants with a specific metafield value.
Load More
→