PDA

View Full Version : Add quantity box and button on category screen


Scott Poliseno
04-04-06, 01:40 AM
I am using Viking Cat Templates. I created a new template based on the "List with Quantity" template. Instead of having just the qty boxes and the big add all to basket button under the list... I want to have a qty box and add to basket button with each product. When I use the:

%prodqtybox|000|% %prodadd%

together I get an error when I click on the add to basket button. I get this response:

Error Code: OUI-00001
Description: Unknown Screen [BASK,BASK,BASK]

There are 3 products and with the above tokens I am getting 3 different hidden fields "value=basket" which is causing this error I believe. I'm not quite sure how to organize this to get only one set off hidden fields around all of the products...

?????

Thanks,

Scott

Scott Poliseno
04-04-06, 02:00 AM
I think I got it... I added the %beginform% and %endform% and I didn't need those since I want to have each product work individually....

I removed those and it seems to work fine now...

Scott

Vic - WolfPaw Computers
04-04-06, 08:09 AM
Correct, since those are the tokens that generate the begining and end of the form in the templates.

Effectively nesting your forms, which is why you saw BASK,BASK,BASK, basically you were submitting 3 forms at the same time.

Removing the %beginform% and %endform% and creating your own form actions and hidden vars for each product is the solution.