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

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
Shopify Partner
3 0 0

Hey Gnanasekar,

Did you ever find a solution?

Thanks,

Jordan

0 Likes

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

Official Shopify Experts & Partner

20000+ Task Completed
1000+ Satisfied Client
9.9*/10 Customer Rating
10*/10 Shopify Services Marketplace
E-mail: hello@mswebdesigner.com
Skype: shopify.mswebdesigner@gmail.com
Website: www.mswebdesigner.com
0 Likes
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
Shopify Expert
151 0 4
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
Shopify Expert
9780 86 1530

@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
Shopify Partner
11 1 2

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

2 Likes