|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I am having a problem trying to get an operatioinal shopping cart for our business. We Have the consumer shoppingcartup using the paypal form that i adapted for use with coldfusion but we also have dealers that login and brings up their perfered pricing. I am having problems letting them add the item to an internal cf shopping cart (this is my weakest point) and then i want the results e-mailed to me. Everything i have in the Database is great and functioning properly
Any suggestions |
|
#2
|
|||
|
|||
|
Not sure what exactly you're looking for. There are several CF based shopping carts (a Google search should reveal them, or a check at the Macromedia Exchange), but writing a shopping cart is relatively straightforward, especially if you don't need tons of functionality.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
I have a product table being returned and the customer clicks on the Model_Num field and it takes them to the itemspecific.cfm page where all info of that item is returned on the screen. For some reason i can't figure out how to get that item added to a cart and then add subsequent items to that cart....I then need the list and some aditional formfields email to me. There is something I am missing. That is why I need your guys help. Thanks in advance!
Unfortunately this is time critical. Update!!! Shopping cart is operational i need a submit button that emails me the contents of the session.cart and include some formfields as well. I will have it if i can get this to happen!! ![]() Last edited by jmakris : May 25th, 2004 at 03:03 PM. |
|
#4
|
|||
|
|||
|
Use <cfmail> to send an email, and the email can contain anything you need, including <cfdump> output of any ColdFusion variable or scope.
|
|
#5
|
|||
|
|||
|
Example Code?
Does anyone know an example code of how to get the results of session.cart returned using cfmail and cfdump
below is my code that returns the cart contents <cfset i = 1> <cfloop from="1" to="#arraylen(session.cart)#" index="count"> <cfoutput> <p> </p> <form name="add_item" method="post" action="remove_update_item.cfm"> <table cellpadding="5" cellspacing="1" border="1" width="600"> <tr> <td bgcolor="gray" width="25" align="center"><font size="3" face="Arial, Helvetica">#session.cart[i][2]#</font></td> <td bgcolor="##dae1e9" width="300"><font size="3" face="Arial, Helvetica">#session.cart[i][4]#</font></td> <td bgcolor="##dae1e9" width="50"><font size="3" face="Arial, Helvetica">#dollarformat(session.cart[i][3])#</font> </td> <td bgcolor="gray" width="125" align="center"><input type="submit" value="Remove"></td> <td bgcolor="gray" width="25"><input type="text" size="2" name="item_quantity_2" value="0"></td> <td bgcolor="gray" width="75"><input type="submit" value="Update"></td> </tr> </table> <input type="hidden" name="item_quantity" value="#session.cart[i][2]#"> <input type="hidden" name="item_id" value="#session.cart[i][1]#"> <input type="hidden" name="item_cost" value="#session.cart[i][3]#"> <input type="hidden" name="array_position" value="#i#"> </form> </cfoutput> <cfset i = i + 1> </cfloop> After this i just need for the dealer to hit checkout and have the contents of this page sent to me via email (I tried Cfmail but couldnot get the apropriate response. Any help would be apreciated Thanks |
|
#6
|
|||
|
|||
|
Something like this is all you need to do. But you have to have valid email addresses and a mail server to route through.
<cfmail to="#recipientEmail#" from="#senderEmail#" subject="Subject Line" server="#mailServer#" type="HTML"> Dump of the FORM scope:<br> <cfdump var="#form#"> </cfmail> |
|
#7
|
|||
|
|||
|
Thanks
Thank you....That worked great!!
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CfShopping Cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|