Price lookup problem - was Re: Cart questions

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13910
interpreted = N
texte = I still don't get it.I finally got price to appear in my cart file and add only unique items with the code below. But now the problem is that all the individual line items get assigned the same price of the first line item. I am using the default formula. Anybody have a clue why this would happen?Try it http://www.ssgrp.com/ssg/Store/PhotoResults.tmpl$search?db=Photos.db&woPhotoKeydata=CDP001085,CDP001094I changed the hidden checkbox field name being passed to sku and set the value to the product [SKU]. The reason I do it this way is so the customer can add several items at once by clicking the checkboxes on the referring page. The price formula will not return any price to the cart from a addlineitem context within a formvariable loop if your formvariable name for the sku=skutoadd is not named SKU.[formvariables name=SKU] [orderfile cart=[cart]][lineitems] [showif [value]=[SKU]] [/showif] [/lineitems][/orderfile] [showif [math]unique[/math]=1] [addlineitem cart=[cart]&db=[db]&sku=[value]]&quantity=1[/addlineitem] [/showif] [/formvariables]Thanks any help with this. Paul Winchester Seattle Support Group Associated Messages, from the most recent to the oldest:

    
I still don't get it.I finally got price to appear in my cart file and add only unique items with the code below. But now the problem is that all the individual line items get assigned the same price of the first line item. I am using the default formula. Anybody have a clue why this would happen?Try it http://www.ssgrp.com/ssg/Store/PhotoResults.tmpl$search?db=Photos.db&woPhotoKeydata=CDP001085,CDP001094I changed the hidden checkbox field name being passed to sku and set the value to the product [SKU]. The reason I do it this way is so the customer can add several items at once by clicking the checkboxes on the referring page. The price formula will not return any price to the cart from a addlineitem context within a formvariable loop if your formvariable name for the sku=skutoadd is not named SKU.[formvariables name=SKU] [math]unique=1[/math]> [orderfile cart=[cart]][lineitems] [showif [value]=[SKU]] [math]unique=0[/math]> [/showif] [/lineitems][/orderfile] [showif [math]unique[/math]=1] [addlineitem cart=[cart]&db=[db]&sku=[value]]&quantity=1[/addlineitem] [/showif] [/formvariables]Thanks any help with this. Paul Winchester Seattle Support Group Paul Winchester

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Max Record length restated as maybe bug (1997) Payment Processors (2005) Sendmail Woes (2002) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) SSL (1998) WebMerchant / Authorize.net and Secure order processing (2000) Multi-processor Mac info ... (1997) PROBLEMS WITH PROTECT TAG (2004) Exporting from Excel (1998) Purchased cart being overwritten - still !?? (1997) [username][password] not showing up! HELP! (1999) Summary Searches (2000) $Quit, $CloseDatabase corrections (1997) problems with 2 tags shakur (1997) 3.0 [TEXT] variables (1998) Multiple Newcarts (1996) Trouble with formula.db (1997) Stopping bad HTML propagation ? (1997) how to determine the actual file format of an image file? (2002) Include vs. lookup? (1998)