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 page to 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 a form with an add command to transfer the product's information selected on my product page to shoppingcart page. Product info such as Title, Sku, Color, Size, Price, and Weight is then itemized using LineItems contexts tags in the shoppincart page. (The product's weight will be used to calculate the product's international unitShipCost.)Below the list of products on the shoppingcart page, I created a form with the Showcart command to transfer the info from the shoppingcart page to the invoice 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 the products on the shoppingcart will be sent to in order to calculate the unitShipCost for each product transfered to the invoice page.The unitShipCost is calculated using a formula called unitShipCost in Formula.db file. The following is the formula I'm using in the Formula.db file:[Math][LBS]*[Price-lbs][/Math][LBS] = the weight of each product. The value of this variable is produced when Webcatalog executes a search to list all of the products on the products page and it is transfered to the shoppingcart page when a product is 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 is added to the shoppingcart page everything works fine. Each product on the invoice page conatins the correct unitShipCost.However, when [Price-lbs] value is entered from the shoppingcart page and transfered to the invoice page, I get a $0.00 value for each product on the invoice page..I could have each shopper enter the shipping destination before they add a product to the shoppingcart page, but because this value is constant, I wanted the shoppers to add all of their products to the shoppingcart and then have them enter the shipping destination just once. Then have WebCatalog calculate the unitShipCost on the invoice pageWhy does WebCatalog refuse to accept the shipping destination value and apply it to my unitShipCost formula from the shoppingcart page?Aloha, Wayne Morishige H3O.COM - Real Surfing on the Web. Associated Messages, from the most recent to the oldest:

    
  1. Problem Transferring Variable Values (Wayne Morishige 1998)
Hi, I'm having a problem transferring product information from my product page to 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 a form with an add command to transfer the product's information selected on my product page to shoppingcart page. Product info such as Title, Sku, Color, Size, Price, and Weight is then itemized using LineItems contexts tags in the shoppincart page. (The product's weight will be used to calculate the product's international unitShipCost.)Below the list of products on the shoppingcart page, I created a form with the Showcart command to transfer the info from the shoppingcart page to the invoice 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 the products on the shoppingcart will be sent to in order to calculate the unitShipCost for each product transfered to the invoice page.The unitShipCost is calculated using a formula called unitShipCost in Formula.db file. The following is the formula I'm using in the Formula.db file:[math][LBS]*[Price-lbs][/Math][LBS] = the weight of each product. The value of this variable is produced when Webcatalog executes a search to list all of the products on the products page and it is transfered to the shoppingcart page when a product is 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 is added to the shoppingcart page everything works fine. Each product on the invoice page conatins the correct unitShipCost.However, when [Price-lbs] value is entered from the shoppingcart page and transfered to the invoice page, I get a $0.00 value for each product on the invoice page..I could have each shopper enter the shipping destination before they add a product to the shoppingcart page, but because this value is constant, I wanted the shoppers to add all of their products to the shoppingcart and then have them enter the shipping destination just once. Then have WebCatalog calculate the unitShipCost on the invoice pageWhy does WebCatalog refuse to accept the shipping destination value and apply it to my unitShipCost formula from the shoppingcart page?Aloha, Wayne Morishige H3O.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)