ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old May 24th, 2004, 07:50 PM
jmakris jmakris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 jmakris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question CfShopping Cart

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

Reply With Quote
  #2  
Old May 25th, 2004, 07:56 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
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

Reply With Quote
  #3  
Old May 25th, 2004, 12:22 PM
jmakris jmakris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 jmakris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up limited functionality is what I Need

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.

Reply With Quote
  #4  
Old May 25th, 2004, 03:08 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
Use <cfmail> to send an email, and the email can contain anything you need, including <cfdump> output of any ColdFusion variable or scope.

Reply With Quote
  #5  
Old May 26th, 2004, 12:28 PM
jmakris jmakris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 jmakris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>&nbsp;</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

Reply With Quote
  #6  
Old May 26th, 2004, 12:38 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
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>

Reply With Quote
  #7  
Old May 27th, 2004, 06:26 AM
jmakris jmakris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 jmakris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

Thank you....That worked great!!


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CfShopping Cart


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway