Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: RE: Shopping Cart query
Bud (237p/+2r)     Posted: Tuesday 05 Dec 2000
This post: 258 views, +1 rating

On 12/5/00, Nick Betts penned: >If an item is already in cart I want to check its size, if sizes are same >(eg both medium and both same product) then just update quantity (ie do not >add new product to cart). If products are same but sizes different (eg >small and a medium) then I want to add new entry in cart for this >product/size. >Hope this is clear!

Not to get into it too far. When I add a product with a different color, size, or style, I add all that to an additional row I use just for that purpose. Sort of like:

<cfset variables.searchrow = product_id & form.style & form.size & form.color>

Then I test against that. --

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development buddy@twcreations.com http://www.twcreations.com/ 954.721.3452

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Similar Subject Line Posts (+/- two weeks of this post)
RE: Shopping Cart query  05 Dec 2000 (this post)   (258 v/ +1 r)
RE: Shopping Cart query  05 Dec 2000   (79 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000