Trying to do a tiered discount, but running into trouble

EHarm
Visitor
1 0 0

Hello, 

I'm trying to set up a Script tiered discount, but I'm having some difficulty on getting it to work the way I want. Here's the breakdown for the discount/script: 

  • Only want it to affect two specific product types (our main two)
  • The discount is based on cart total
  • It needs to exclude two specific product types (accessories and warranties)
  • Discounts are as follows: 1) $299 and under, $30 off 2) $300-499, $40 off 3) $500+, $50 off
  • The discount should only be applied once. It shouldn't be applied to each line item, just for each checkout. 

At this point, we keep getting it to apply to line items instead of cart total. Still kind of new to Scripts and Ruby, so this one is proving to be troublesome. Is this even possible to accomplish with Scripts? Or do we just need a new approach?

Reply 1 (1)

playwright-mike
Shopify Partner
72 18 33

Hi @EHarm,

Can you post your script here or email to matthew@playwrightapp.com? 

Also, I have a clarifying question about the criteria:
If the cart contains any product that is of type "accessories" or "warranties", should no tiered pricing be given to that checkout?

Thanks,
Matthew

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.