PDA

View Full Version : Fix Quantity at One but allow selection multiple times


RichFoxall
24-Jul-2003, 12:29 PM
Be gentle with a newbie user!

I am looking to take bookings for a course and in the instance where one person is booking/paying for several members of their company I need to get the individual candidates details.

I am using Normans Multiple Info Prompt patch to get the pieces of info about each person, but need to limit the quantity of the selection at a time to one to force a set of details for each course booked.

So the customer would add the course, fill out the details, add the same course again fill out those details then checkout and pay for both together.

If I fix maximum quantity to one you can only select one instance of the item, what I need is a way to have the quantity fixed at one for individual products (but not site wide) and allow multiple instances of the product to be added to the basket

Any ideas would be most appreciated, please ask for clarification if my explanation is not clear.

Many thanks in advance.

NormanRouxel
24-Jul-2003, 01:02 PM
Make a copy of the Product Template and edit that copy so:-

replace NETQUOTEVAR:PRODUCTQUANTITY with

<!-- NETQUOTEVAR:PRODUCTQUANTITY -->
<input type=hidden name="Q_ NETQUOTEVAR:PRODUCTREFERNCE" value="1">


Use Quantity on Product Page and that will pre-set the quantity for that item to 1.


A slight problem is that Actinic will try to combine identical products to a single summed quantity. As long as something is different in the Product details or Other Info then this won't happen. This should be the case for your courses.

Norman

RichFoxall
24-Jul-2003, 01:04 PM
Thanks again Norman.

I'll try that later.

Our needs are quite specific and its a fairly sharp learning curve!