VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: rogy on April 22, 2020, 17:15:45 PM

Title: Discount on weight
Post by: rogy on April 22, 2020, 17:15:45 PM
Hello VM Forum

Have products (parent / child) which can be ordered by kg in 4 weights (100kg, 300 kg, 500 kg, 1000 kg) . Graduated into 4 child products. Is also stored in "Products mass and weights".

100 kg no discount
300 kg = 8%
500 kg = 13%
1000 kg = 18%


There should be the possibility to order various products from different categories and depending on the kg there is a discount (e.g. 2 childproducts (different categories) with 500kg each also gives 18% (together 1000kg).

Is there a solution?
Title: Re: Discount on weight
Post by: Jörgen on April 23, 2020, 07:28:51 AM
If You you look at AwoCoupon I think You will find what You need.

ISTRAXX has a plugin that handles quantity prices.

Jörgen @ Kreativ Fotografi
Title: Re: Discount on weight
Post by: rogy on April 23, 2020, 12:02:14 PM
Thank's Jörgen

AwoCoupon:
Cannot discount based on weight.  You can discount based on
- vendor
- manufacturer
- category
- product
- product attribute (this is the lowest it goes).

Maybe there is an other solution:
See the product page:
https://kuenzle-farma.ch/konventionell/rinder-1/alca-sabomin-06-plus-pellets-1000-kg-391-detail

Parten with child product.

For each Child Product i get different discounts
100 kg no discount
300 kg = 8%
500 kg = 13%
1000 kg = 18%

But if i compare two weight from different products:

https://kuenzle-farma.ch/konventionell/rinder-1/alca-sabomin-06-plus-pulver-detail

1 Product: 500 kg = 13%
2 Product: 500 kg = 13%

Total in the Shopping Cart: 1000 kg = 18%.


Title: Re: Discount on weight
Post by: Jörgen on April 23, 2020, 12:19:53 PM
You sell in quantities of KG, right. Use quantity discount per KG, you do not have to look at the actual weight variable right ? If the quantity is 2 then discount for 2 kg am i right?

Jörgen @ Kreativ Fotografi

Title: Re: Discount on weight
Post by: rogy on April 23, 2020, 14:34:12 PM
Not realy, my client have product build in parent and childproducts. There are 4 kinds of product (100, 300, 500, 1000kg). The Tab ""Products mass and weights" is just for the shipping cost. See the link of the product.
Title: Re: Discount on weight
Post by: Jörgen on April 23, 2020, 15:02:54 PM
There must be a way of selling like, 100 kg (100 qty), 300 kg (300 qty), 500 kg (500 qty), 1000 kg (1000 qty).

Sell in steps, 100 step, 300 step, 500 step and 1000 step, qty is 1kg.

Should this not work ?

Jörgen

Title: Re: Discount on weight
Post by: rogy on April 23, 2020, 16:27:33 PM
Purchase quantity steps. (way not ::)..i have to test how it works with discount and compare with products.
Title: Re: Discount on weight
Post by: Studio 42 on April 23, 2020, 16:34:12 PM
The solution can be to sold per KG. and only use 1 product.
You use a option list to set your real quantities.
For eg a custommissed list
100
300
500
1000
You set quantity steps to 100, so customer can only buy 100 x X Kg
This solve another problem,  the stock can be handel correctly.
TO do this :
- you need to use a new layout. You can copy and rename the original Vm files or your current template layout in productdetails
- use a new sublayout addtocart button to replace quantity input with your list of quantity.

Note that the price is updated in live, if you do all correctly.
Title: Re: Discount on weight
Post by: Jörgen on April 23, 2020, 17:35:14 PM
Using child products should also work, stock would be ok, but your suggestion sounds more flexible. Just needs some custom programming in the template.
Jörgen @ Kreativ Fotografi