My web site is built with Macromedia's Dreamweaver. In Dreamweaver all name= options on the PAGE must be unique. Thus the name= item in the product code becomes item, item2, etc.? Will this have an adverse effect upon the cgi requests?
YES!
The first item will add fine, but the rest will
not. The way to remedy this is to add an underscore
then the part number after item. If your part
number is 123, then here is what the string
should look like:
<input
type=hidden name=item_123 value=b-2400^123^description^price^qty>
Now
all the item names will be unique and your products
will add to the cart correctly.
If
you are using op variables you will encounter the
same problems. Use the same syntax that is
used for item and you will have no errors.
If the product number is 123 then its op variables
would appear:
op1_123
op2_123
Dreamweaver will also change the names of multiple
add, view, and checkout buttons to add2, view2,
checkout2 and so on. These names will normally
work fine. To ensure best results use an underscore
so they will read:
add_2,
add_3
view_2, view_3
checkout_2, checkout_2
If
you follow these steps, Dreamweaver will not alter
your code and you can confidently publish your
e-commerce pages.
For
more information on this naming convention, see
the FAQ chapter on"Multi-item submission to
the cart".
Got any other Dreamweaver problems
or hints? Please send them to support@vcart.com
To top