Optional checked as default

Comersus Version: 603
Database type: Access
Frequency: Permanent issue

I have created an option group (the selection method is a check box). Via the settings, I set pForceSelectOptionals on YES.It works fine as long as pItemShown = 0. If pItemShown >1, then on Comersus_index.asp, we have the items on screen, but the one that has options has its check box missing. And then if I click Add to cart, I get an error.
I bypassed the problem by creating an intermediary file with this condition:

if pHowManyOptionals = 0 then
Response.redirect "Comersus_addItem.asp?idProduct="&pIdProduct&"&quantity=1"
Response.redirect "Comersus_ViewItem.asp?idProduct="&pIdProduct&"&quantity=1"
end if
It works fine.

Now, in includesitemFunction I modified the following line:
if pType="c" then
htmlToPrint=htmlToPrint &"

3 comentarios

Añadir un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *