Problem Transferring Variable Values
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18690
interpreted = N
texte = Hi,I'm having a problem transferring product information from my product pageto my shoppingcart page and then finally to my invoice page.When a shopper wants to add a product to the shoppingcart page, I'm using aform with an add command to transfer the product's information selected onmy product page to shoppingcart page. Product info such as Title, Sku,Color, Size, Price, and Weight is then itemized using LineItems contextstags in the shoppincart page. (The product's weight will be used tocalculate the product's international unitShipCost.)Below the list of products on the shoppingcart page, I created a form withthe Showcart command to transfer the info from the shoppingcart page to theinvoice page for payment. I also included a pull-down menu in this form.This pull-down menu will allow a shopper to enter the country to which theproducts on the shoppingcart will be sent to in order to calculate theunitShipCost for each product transfered to the invoice page.The unitShipCost is calculated using a formula called unitShipCost inFormula.db file. The following is the formula I'm using in the Formula.dbfile:[Math][LBS]*[Price-lbs][/Math][LBS] = the weight of each product. The value of this variable is producedwhen Webcatalog executes a search to list all of the products on theproducts page and it is transfered to the shoppingcart page when a productis added to the shoppingcart page from the product page.[Price-lbs] = the cost to ship a product to an international destination.This value is provided using the pull-down menu on the shoppingcart page.When the [LBS] and [Price-lbs] values is entered before a product isadded to the shoppingcart page everything works fine. Each product onthe invoice page conatins the correct unitShipCost.However, when [Price-lbs] value is entered from the shoppingcart page andtransfered to the invoice page, I get a $0.00 value for each product on theinvoice page..I could have each shopper enter the shipping destination before they add aproduct to the shoppingcart page, but because this value is constant, Iwanted the shoppers to add all of their products to the shoppingcart andthen have them enter the shipping destination just once. Then haveWebCatalog calculate the unitShipCost on the invoice pageWhy does WebCatalog refuse to accept the shipping destination value andapply it to my unitShipCost formula from the shoppingcart page?Aloha,Wayne MorishigeH3O.COM - Real Surfing on the Web.
Associated Messages, from the most recent to the oldest:
|
- Problem Transferring Variable Values (Wayne Morishige 1998)
|
Hi,I'm having a problem transferring product information from my product pageto my shoppingcart page and then finally to my invoice page.When a shopper wants to add a product to the shoppingcart page, I'm using aform with an add command to transfer the product's information selected onmy product page to shoppingcart page. Product info such as Title, Sku,Color, Size, Price, and Weight is then itemized using LineItems contextstags in the shoppincart page. (The product's weight will be used tocalculate the product's international unitShipCost.)Below the list of products on the shoppingcart page, I created a form withthe Showcart command to transfer the info from the shoppingcart page to theinvoice page for payment. I also included a pull-down menu in this form.This pull-down menu will allow a shopper to enter the country to which theproducts on the shoppingcart will be sent to in order to calculate theunitShipCost for each product transfered to the invoice page.The unitShipCost is calculated using a formula called unitShipCost inFormula.db file. The following is the formula I'm using in the Formula.dbfile:
[math][LBS]*[Price-lbs][/Math][LBS] = the weight of each product. The value of this variable is producedwhen Webcatalog executes a search to list all of the products on theproducts page and it is transfered to the shoppingcart page when a productis added to the shoppingcart page from the product page.[Price-lbs] = the cost to ship a product to an international destination.This value is provided using the pull-down menu on the shoppingcart page.When the [LBS] and [Price-lbs] values is entered before a product isadded to the shoppingcart page everything works fine. Each product onthe invoice page conatins the correct unitShipCost.However, when [Price-lbs] value is entered from the shoppingcart page andtransfered to the invoice page, I get a $0.00 value for each product on theinvoice page..I could have each shopper enter the shipping destination before they add aproduct to the shoppingcart page, but because this value is constant, Iwanted the shoppers to add all of their products to the shoppingcart andthen have them enter the shipping destination just once. Then haveWebCatalog calculate the unitShipCost on the invoice pageWhy does WebCatalog refuse to accept the shipping destination value andapply it to my unitShipCost formula from the shoppingcart page?Aloha,Wayne MorishigeH3O.COM - Real Surfing on the Web.
Wayne Morishige
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:
Thanks! (1999)
email error 159 (1998)
WCS Newbie question (1997)
[WebDNA] WebDNA & VPS (2009)
Waitforfile question (2004)
test (2000)
[item] appears after 'remove last item' ... (1997)
Shell script within a sandbox (2005)
[WebDNA] Shopping cart code debug (2009)
[TaxableTotal] - not working with AOL and IE (1997)
[WebDNA] Upgrade to Lion (2011)
WC Database Format (1997)
[group] ? (1997)
WC2f3 (1997)
Large founditems loops (2000)
[WebDNA] Apache .htpasswd (2014)
[TaxableTotal] - not working with AOL and IE (1997)
Some Advise needed (1997)
[WebDNA] TCPconnect and Bitcoin rate (2019)
notification solutions (1997)