A site devoted to making life easier for Mals users
Click on the banner above and when you are checking out use this coupon code:
50offlife
You will get 50% off any hosting plan for as long as you are a customer!
-->
multiprod
-->
Single/multiple Product with Attributes
product[ ]
The example below illustrates drop down boxes for selection and a text input box to gather information. Every thing will show up as one line in the cart separated by commas. i.e. The square brackets “[]” append all customer selections to the product “Custom personalization” as shown below. “add.cfm” is used as only one product is sent to the cart with all of the attributes appended to the product as shown below.
Required Tags/Fields: userid, product[ ], price, return Optional: quantity, units
Product
Quantity
Price
Amount
Custom personalization, Angel Figurine, Moms, Personalization, Your message here, up to 34 characters
is not required in this example as the default value for the cart is 1, however I feel
it is best to include it in order to keep the code consistent throughout your site. If you can see it, you won’t forget it.
Multiple Products with Attributes
product1, product2, etc.
The example below illustrates drop down boxes for selection and a text input box to gather information. Each attribute is treated as a separate product. Each attribute will show up on it’s own line in the cart as below. In this case “addmulti.cfm” must be used as there is more than one product to be sent to the cart with a single “Buy Now” button.
Product
Quantity
Price
Amount
Custom personalization
12.95
12.95
Figurine, Angel Figurine
0.00
0.00
Personalization, Moms
0.00
0.00
Personalization Message, Your message here, up to 34 characters.
Product1 does not need any brackets as there is nothing to append to that line in the cart
Product2, 3 and 4 uses brackets to append the option value to the product value on the same line. Brackets are not required on the “qty” but are included for consistency.