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

Gnanasekar_S
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

Jordan14
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

Best Regards
MS Web Designer| MS Web International | Task4Store
Contact Us: https://www.task4store.com/pages/contact-us OR task4store@mswebdesigner.com
Was our reply helpful? Please Like or Accept solution
0 Likes
Harry_137
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
WhiteWater_Web
Shopify Expert
174 0 7
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
Jason
Shopify Expert
10292 145 1946

@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.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Andrew-W
Shopify Partner
15 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