Thank you so much, Alex.
What I'm trying to do is set up a web store that can handle all kinds of pricing options (volume discounts and the like), item options (including options that adjust the price), shipping options, etc. - very flexible.
All these pricing and other options would be included in the database, and the output pages would be automatically built to work with my shopping cart.
This requires the ability to easily create and manage multiple select boxes, checkboxes, and radio buttons, as well as lots of hidden stuff.
To offer options that adjust the price, while still building the select boxes, some additional code has to be added to each option, and I'm concerned that the extra symbols might mess up the build process. For example, if I want to offer size options, and the 2XL and larger sizes involve an additional charge, the select options should look like this:
Small
Medium
Large
X-Large
XXL!+1.50
XXXL!+2.00
and the field value would look like this, given your code above using a space as a delimiter within the size field:
Will the extra ! and + symbols mess up the building process?
Also, another thing that I want to do is offer volume discount pricing. This involves a string of pipe-delimited options for the cart to recognize the volume discount pricing scheme and also the use, again, of the ! symbol.
For example, the format that my shopping cart uses for volume discount pricing looks like the following:
I would have to include the full string of:
in the "Price" field of X product, but my concern is that the pipes and the exclamation points will mess up the build process.
Should the cart's required pipes delimiters and exclamation points be escaped somehow so that the build process is unaffected, while safeguarding the integrity of the data that is to be transferred from the db to the output pages? Perhaps the quantity discount line and the size line should be enclosed in quotes.
Thank you so much, again. I really appreciate your help.
DT
What I'm trying to do is set up a web store that can handle all kinds of pricing options (volume discounts and the like), item options (including options that adjust the price), shipping options, etc. - very flexible.
All these pricing and other options would be included in the database, and the output pages would be automatically built to work with my shopping cart.
This requires the ability to easily create and manage multiple select boxes, checkboxes, and radio buttons, as well as lots of hidden stuff.
To offer options that adjust the price, while still building the select boxes, some additional code has to be added to each option, and I'm concerned that the extra symbols might mess up the build process. For example, if I want to offer size options, and the 2XL and larger sizes involve an additional charge, the select options should look like this:
Small
Medium
Large
X-Large
XXL!+1.50
XXXL!+2.00
and the field value would look like this, given your code above using a space as a delimiter within the size field:
Will the extra ! and + symbols mess up the building process?
Also, another thing that I want to do is offer volume discount pricing. This involves a string of pipe-delimited options for the cart to recognize the volume discount pricing scheme and also the use, again, of the ! symbol.
For example, the format that my shopping cart uses for volume discount pricing looks like the following:
I would have to include the full string of:
in the "Price" field of X product, but my concern is that the pipes and the exclamation points will mess up the build process.
Should the cart's required pipes delimiters and exclamation points be escaped somehow so that the build process is unaffected, while safeguarding the integrity of the data that is to be transferred from the db to the output pages? Perhaps the quantity discount line and the size line should be enclosed in quotes.
Thank you so much, again. I really appreciate your help.
DT