VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: a2manne on October 13, 2015, 09:53:52 AM

Title: Product amount in specified amounts
Post by: a2manne on October 13, 2015, 09:53:52 AM
Hi VM-Users,

now for several versions I've been waiting for a solution to my problem. I have defined buying steps for certain products purchase. For example, 10, 20, 30, etc.

Now if I'm going to add on products and click plus to increase the amount is not in steps incremented (10 to 20) but in step by step (10 to 11, 11 to 12 and so on)

How and when can solve this problem?


Kind Regards

Manfred Arnold
Title: Re: Product amount in specified amounts
Post by: Milbo on October 13, 2015, 22:30:15 PM
I think you should try the last version without layout overrides, because I think I solved it, but within a layout.
Title: Re: Product amount in specified amounts
Post by: a2manne on October 14, 2015, 07:33:50 AM
Hi Milbo,

thanks for your answer. I always use yootheme templates with VMUikit for better design. The latest version is 3.010. Right? This version was installed. But there is the same mistake.
Title: Re: Product amount in specified amounts
Post by: Milbo on October 14, 2015, 11:03:39 AM
as  I said, disable the overrides. But I just notice, the js there is also not correct.

When you try to change the number it says, it must be a step of x and sets x. The other part of the js changes then the x to 1+x or 1+(n*x).

So the question is now, what is meant with "Purchase Quantity Steps"

n*x or min+(n*x) ?

Example: Minimum Purchase Quantity     = 1 and Purchase Quantity Steps = 3

Could produce show as start 1 and be changed in steps with 3, for example 1,4,7,10,...

or should it be 0,3,6,9,12 ? and the minimum is just used as limit, so a minimum of 1 and step 3 should show 3, or?

so I think this makes most sense: min < n*x< max
Title: Re: Product amount in specified amounts
Post by: a2manne on October 14, 2015, 15:39:46 PM
Sorry, i am not shure what you mean with "js"
Title: Re: Product amount in specified amounts
Post by: lindapowers on October 14, 2015, 18:58:22 PM
Quote from: a2manne on October 14, 2015, 15:39:46 PM
Sorry, i am not shure what you mean with "js"
javascript I think
Title: Re: Product amount in specified amounts
Post by: Milbo on October 14, 2015, 19:26:02 PM
not perfect, but better
http://dev.virtuemart.net/attachments/download/974/com_virtuemart.3.0.11_extract_first.zip

it works good, besides the use of enter. Also the max setting, somehow destroys the popup, did not find the reason yet.
Title: Re: Product amount in specified amounts
Post by: a2manne on October 16, 2015, 12:06:26 PM
Hi,

Unfortunately, it works only at the second click on plus and even in the cart itself. No change in the lists or detailed view. Still the same Problem.
Title: Re: Product amount in specified amounts
Post by: a2manne on October 21, 2015, 10:25:55 AM
Hi,

any solutions?