In my Drupal Shop I have some products with different attributes and options. For example the Colour 300ml with option yellow, green and brown. And the Colour 500ml with the option yellow, green and brown.

I also have different pricing volumes. At a quantity of min. 14 the product is 1$ cheeper etc.

My problem is that the cart doesn't count the items together which are from the same product:

So I buy for example Colour 300ml - yellow - 10 pieces. In the cart it tells me: buy 4 more of Colour 300ml for a discount. So I buy additionally 4 of Colour 300ml brown.

But in the cart they are seperate. So now it tells me buy 4 more of Colour 300ml for a discount and buy 10 more of Colour 300ml for a discount. One for each colour.

Does anyone know what to do?

Note: I use Drupal 7.50, and I use the ubercart model and the uc_volume_pricing

CommentFileSizeAuthor
#2 attribute-combine.patch1.08 KBb_sharpe

Comments

G43beli created an issue. See original summary.

b_sharpe’s picture

StatusFileSize
new1.08 KB

It's been a long time since I've looked at this module, but I think this is how it was intended to work since cart items are split by option as option can have different prices. Try the following and let me know, as I think since they share the same common base price, you could have this work and I could maybe implement an option to 'combine options' or something.

G43beli’s picture

Wow that works perfectly. thanks for sharing this solution. There is another module "uc_volume_pricing_incattr" but it doesn't seem to work at the moment, so maybe the additional option in the original volume pricing module would be great for shops like mine.

Thanks so much. :)

jberg1’s picture

Very Nice!

Would it be possible to combine the message in the cart also?
So it doesn't repeat "If you buy X more you will get X discount" for each item grouped by attribute.
Ex. If have 6 at one size, and 6 at another. The discount accounts for the full 12 in the cart, but shows a message twice. Once for each size, if there is another level of discount.