Tiered Pricing for Bulk Purchases - Ruby script - Applied for all product types

Highlighted
New Member
1 0 1

I tired to implement Tiered Pricing for Bulk Purchases by following the steps given in this url (https://www.shopify.com/enterprise/ecommerce-checkout-shopify-scripts#ecommerce-checkout-optimizatio...).
  I am having about three product types for now in my shopify plus store, in code i passed only one product type in the array for the "Tiered Pricing" Script, but the output isn't i excepted. The Discount is applying for all the product types.

If anyone has ideas on whats wrong with this script, it would be great.

Thanks,

Gnanasekar S

1 Like
Highlighted
Shopify Partner
3 0 0

Hey Gnanasekar,

Did you ever find a solution?

Thanks,

Jordan

0 Likes
Highlighted
Shopify Partner
1890 118 294

Hello,

Greetings !

As an Official Shopify Expert and Partner We would be happy to help you. 

Please reach us at:

Website: https://www.mswebdesigner.com/pages/get-started
Skype: shopify.mswebdesigner@gmail.com
E-mail: admin@mswebdesigner.in
Phone: +919748230320

Thanks & Regards

MS Web Designer Team
Official Shopify Expert and Partner
https://experts.shopify.com/ms-webservices

Best Regards
MS Web Designer | MS Web International | Task4Store
Contact Us: Click Here | task4store@mswebdesigner.com
9.9/10 Customer Rating | 1000+ Happy Clients | 100% Satisfaction Or Money Back Guarantee
0 Likes
Highlighted
New Member
2 0 0

I am having 6-7  product types for now in my shopify plus store, in code i passed only three product type in the array for the "Tiered Pricing" Script, but the output is came discount apply all the product.
is there is any solution for only product type to define products to apply the discount?????????

0 Likes
Highlighted
Shopify Expert
156 0 6
Hi Harry - we can assist with this, if you still need a hand.

Hit us up at projects@whitewatersolutions.com.

Cheers!

WhiteWater Web
A certified Shopify Partner and Expert, WhiteWater Web (WWW) is a premium digital solutions company specializing in web dev/design, digital marketing, and online strategy.
0 Likes
Highlighted
Shopify Expert
10007 116 1818

@WhiteWater_Web wrote:
Hi Harry - we can assist with this, if you still need a hand.

Hit us up at projects@whitewatersolutions.com.

Cheers!

WhiteWater Web

You seem to be mistaking this section of the forums for the job board. Partners shouldn't be soliciting work outside of that section. I think it's great that you're keen to help, but if you're serious about supporting the forum community lets see that here.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Highlighted
Shopify Partner
14 2 9

For anyone finding this thread through Google I found a solution to this.

 

Basically this line:

cart.line_items.group_by { |item| group_key(item) }

Wants changing to this:

items.group_by { |item| group_key(item) }

 

I submitted a pull request to Shopify for it here: https://github.com/Shopify/shopify-scripts/pull/12/commits/ab500da72766953369ce4a67f4ade61779c6b122

3 Likes