REDDIT 原始帖子

Tiered discount but different: 10% off 2nd item. 15% off third item, etc.

Hi all, I am looking for an app that gives tiered pricing but different than the standard: Normally it is like this: 2 products = 10% off your order 3 products = 15% off your order Etc. But I am looking for this: 2 products = 10% off your 2nd product (1st is…

原帖正文r/shopify

Hi all, I am looking for an app that gives tiered pricing but different than the standard: Normally it is like this: 2 products = 10% off your order 3 products = 15% off your order Etc. But I am looking for this: 2 products = 10% off your 2nd product (1st is full price) 3 products = 15% off your 3rd product (1st = full, 2nd = 10%) Etc. Preferably free (trial) as it is for a startup. Any advice is appreciated.

已收录讨论

6 条评论

u/datatenzing

You just need to know the technical of what controls them. Here’s the response from Gemini Yes, you can absolutely do this using Shopify Functions (specifically the Product Discount API), but you will need to write custom code or use a third-party app that leverages Functions to handle it. Shopify’s built-in "Automatic Discounts" can handle a basic "Buy X, Get Y" (e.g., Buy 1, Get 1 at 10% off), but they cannot handle the compounding, progressive logic you are looking for (where the discount increases and applies specifically to the 2nd, 3rd, and subsequent items individually). Here is exactly how this works and how you can implement it. How the Logic Works via Shopify Functions To achieve this, a custom Shopify Function needs to look at the cart, sort the eligible products by price (usually from highest to lowest so the customer pays full price for the most expensive item), and apply a target discount to each specific index in the cart. Here is a breakdown of how the Function evaluates the cart: Item Quantity Item Position (Sorted High to Low Price) Discount Applied to That Item 1st Product Item #1 0% Off (Full Price) 2nd Product Item #2 10% Off 3rd Product Item #3 15% Off 4th Product + Item #4 and beyond 20% Off (or wherever you choose to cap it) Your Implementation Options Because standard Shopify admin settings don't support this "progressive tiering per item" out of the box, you have two main routes to launch this: Option 1: Use a Third-Party App (Fastest & Easiest) There are several apps in the Shopify App Store built entirely on Shopify Functions that allow you to build custom, complex discount logic without writing code. Look for apps like Regios Automatic Discounts, Sloy, or Advanced Built-in Discounts. You will be able to set up a "Tiered/Volume" or "Line Item" discount where you explicitly define: "If cart quantity is 2, apply 10% to item 2. If cart quantity is 3, apply 15% to item 3." Option 2: Build a Custom Shopify Function (For Developers) If you have a development team or are comfortable with the Shopify CLI, you can write a custom Product Discount Function using Rust or TypeScript. Your Function's run.rs or run.ts logic would look something like this conceptually: // Conceptual logic for your Function's target application let discountFactor = 0.0; targets.forEach((lineItem, index) => { if (index === 0) { discountFactor = 0.0; // 1st item full price } else if (index === 1) { discountFactor = 0.10; // 2nd item 10% off } else if (index === 2) { discountFactor = 0.15; // 3rd item 15% off } else { discountFactor = 0.20; // 4th+ item capped at 20% off } // Apply the specific discount factor to this line item only }); One Important Caveat to Keep in Mind You will need to decide how the Function handles quantities of the exact same product. If a customer adds 3 of the exact same t-shirt, Shopify treats that as a single line item with a quantity of 3. Your Function logic will need to expand or split these quantities mentally so that it properly applies 0% to the first shirt, 10% to the second shirt, and 15% to the third shirt. Custom Shopify Functions can do this via Target allocation, but it's a detail you'll want to ensure is configured correctly! Are you planning to write the code for this function yourself using the Shopify CLI, or are you looking for an off-the-shelf app recommendation to set it up? Internally we use Regios discounts probably your best bet and reasonably priced.

u/AutoModerator

Your comment in r/shopify was automatically removed as your 'post' karma is below 10 (we do not consider your total karma; your post and comment karma are separate numbers and must both meet their minimum requirement). You can increase your post karma by posting in other areas of Reddit to earn upvotes. The higher quality the content, the higher your karma will become. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

u/mlphoto

Also important to note: You must be on Shopify Plus to use the Product Discount API in Shopify Functions. Recently ran into that one, had to make it a full-fledged app.

u/junkdumper

Check MCE bundles. They might be able to do it. They've got a stack of options and support is pretty good. Happy to help customize the visuals as well.

u/kjsd77

Shopify Sidekick can build this for you. Just be very clear on the logic rules.

u/[deleted]

这条评论已被删除。