Over the last couple of days have been fiddling with a website that I worked on 
a few years ago.  Have converted the site from essentially a static site to a 
dynamic site - running under Mura CMS - using Mura gives the site owners the 
ability to make most changes themselves.
 
I'm trying to include a simple shopping cart system, but have 1 small problem - 
wondering if you could have a quick look at the code and maybe suggest what I 
could do to get around the error.
 
Here is the code
 
<form action="http://www.swanseaflowers.com.au/store/view-cart/"; method="post" 
name="ProductDetails">
<p><img alt="" src="/swanseaflowers/assets/Image/SA61-1.jpg" style="width: 
120px; height: 120px; " /></p>
<p><strong>Zoe</strong></p>
<p>Modern Arrangement of Lilies</p>
<p>Select the arangement type: <select name="arrangtype"><option 
value="">Please Select</option><option value="Standard">Standard 
$75.00</option><option value="Deluxe">Deluxe $100.00</option></select></p>
<p>Quantity: <input name="quantity" 
onblur="if(this.value==''){this.value='1';}" onclick="this.value='';" 
type="text" value="1" /></p>
<!-- start PayPal Form Elements -->
 
<input name="item_name" type="hidden" value="Zoe - Modern Arrangement of 
Lilies" />
<input name="amount" type="hidden" value="100.00" />
 
<!--- <cfif arrangtype="Standard"> <input name="amount" type="hidden" 
value="75.00" /></cfif>
<cfif arrangtype="Deluxe"> <input name="amount" type="hidden" value="100.00" /> 
</cfif> --->
 
<input name="item_number" type="hidden" value="1" /> <!-- end PayPal Form 
Elements --><input name="doaction" type="hidden" value="addToCart" /> <input 
name="Add to Cart" type="submit" value="Add to Cart" /> </form>
 
Basically the code as it is with the commented code taken out works - but the 
limitation is that it then only works with the value $100.
 
I basically want the user to select whether they select the standard or deluxe 
product.
 
If I replace the line in green
<input name="amount" type="hidden" value="100.00" />
and use the lines that are commented out I get the following error message:
 
The amount argument passed to the Add function is not of type numeric.
 
This is despite the fact that the code is the same as that shown in green - 
only that it is included in a <cfif> statement
 
I have dumped the form when it is working but when the error occurs I do not 
get anything but the error message
 
Thanks in advance 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342711
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to