[cart] clarification...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13112
interpreted = N
texte = Thanks again to everyone for their help. I'm almost done with our site, and I think it's going to be great.I feel like I've missed one basic concept of WebCatalog. What is required to make sure that [cart] gets passed from page to page. If you are not using a command with your url, will the [cart] id get lost? Does this mean you should always include at least a $showpage in the url with cart=[cart] to prevent the loss of [cart]?The reason for the first question is the second question: I am writing a routine to make sure that files I am creating with a CGI I wrote have indeed been deposited in the StockRoom before I send the customer to the Purchase page. I am using [showif] and [hideif] to have a page meta to itself until the files exist, at which point it metas to the purchase page. Here's my idea for the code (which requires that [cart] be passed from the page before): [math]testindex=0[/math] [math]count=0[/math]I count the items in the order:[math][orderfile cart=[cart]][lineitems]count=count+1[lineitems][/orderfile][/math]count the # of files in the StockRoom whose filenames match the items in the order:[listfiles /StockRoom][lineitems][showif filename=[SKU].[lineindex]][math]testindex=testindex+1[/showif][/lineitems] [/listfiles]Where [SKU].[lineindex] is the filename I'm looking for. Then I conditionally show the META Command I want:[Showif count=testindex][/Showif] [Hideif count=testindex][/Hideif]Is this crazy, or will it work? I'm sure I've got some errors in syntax if not concept. (probably the META command, too--I've got to check that)Another questions is, do I really need to do this or is there some way I can have WebMerchant keep trying to find the files to move to WebDelivery until they appear?Please post your suggestions and answers, I greatly appreciate them.Thanks, Michael Bohan Music on Demand, LLC Associated Messages, from the most recent to the oldest:

    
  1. Re: [cart] clarification... (Kenneth Grome 1997)
  2. [cart] clarification... (Michael Bohan 1997)
Thanks again to everyone for their help. I'm almost done with our site, and I think it's going to be great.I feel like I've missed one basic concept of WebCatalog. What is required to make sure that [cart] gets passed from page to page. If you are not using a command with your url, will the [cart] id get lost? Does this mean you should always include at least a $showpage in the url with cart=[cart] to prevent the loss of [cart]?The reason for the first question is the second question: I am writing a routine to make sure that files I am creating with a CGI I wrote have indeed been deposited in the StockRoom before I send the customer to the Purchase page. I am using [showif] and [hideif] to have a page meta to itself until the files exist, at which point it metas to the purchase page. Here's my idea for the code (which requires that [cart] be passed from the page before): [math]testindex=0[/math] [math]count=0[/math]I count the items in the order:[math][orderfile cart=[cart]][lineitems]count=count+1[lineitems][/orderfile][/math]count the # of files in the StockRoom whose filenames match the items in the order:[listfiles /StockRoom][lineitems][showif filename=[SKU].[lineindex]][math]testindex=testindex+1[/showif][/lineitems] [/listfiles]Where [SKU].[lineindex] is the filename I'm looking for. Then I conditionally show the META Command I want:[Showif count=testindex][/Showif] [Hideif count=testindex][thisurl]>[/Hideif]Is this crazy, or will it work? I'm sure I've got some errors in syntax if not concept. (probably the META command, too--I've got to check that)Another questions is, do I really need to do this or is there some way I can have WebMerchant keep trying to find the files to move to WebDelivery until they appear?Please post your suggestions and answers, I greatly appreciate them.Thanks, Michael Bohan Music on Demand, LLC Michael Bohan

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:

WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) WCS Newbie question (1997) WebCatalog2 Feature Feedback (1996) Re:2nd WebCatalog2 Feature Request (1996) Unexpected error (1997) [WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016) [WebDNA] directory protection questions (2008) searching for last file in a directory (1999) Multiple prices (1997) emailer settings and control questions (1997) Searchable list mail via wwebcat (1998) Bug or syntax error on my part? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) unable to launch acgi in WebCat (1997) [SHOWIF]s and empty arguments (1997) [WebDNA] IIS 7.5 (2015) strange [date] behavior (2001) range vs greater than/less than (2003) [HTML*] (a proposition) (1997) credit card authorization question (1997)