My X-Mas Wish
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 22963
interpreted = N
texte = When people start asking me this year what I want for Christmas, I'm going totell them that I want back all of the time that I had to spend designingworkarounds for WebCatalog shortcomings.GotD (Gripe of the Day): Today I learned all about how once again the [date] is not actually the[date]. You see, I was trying to send an email to a fulfillment house aftersomeone placed an order (via my thankyou.tpl page). The email composition has tohave a very fixed format, with date and time indicated in a very certain way. Noproblem I think, I'll just plop in a formatted date tag, and away we go...(ie. [date %a, %d %b %Y])However this produced the result:01/25/99%a, %d %b %Y]which isn't what I wanted.After literally hours of trying to figure out why [date] with formatting wasn'tworking, it occurred to me that I had been had. That's right kids, (and forthose of you in the back seats who might have missed it) There is a field in theshopping cart called date, and if you use a [date] tag on a page being shownusing a $showcart or a $purchase then you get the ascii values of the date fieldin the shopping cart, and not the variable of the date. You can Kiss Off usingthe methods that are documented to work with [date] to show a formatted date.Finally, I evolved the following code to make it work:[format days_to_date %a, %d %b %Y][math]{[date]}[/math][/format]Some of you may remember my suggestion, some months ago, that the [date]variable should be renamed [today]. PCS basically responded that any confusionon the part of programming of interactions with the date and a database fieldnamed date was the programmers fault, and perhaps the programmer should not namefields in databases date. Beyond that, PCS was content that date was indeedjust a fine term to use as a variable, and there would be no further action ontheir part. Ok, so here's the deal PCS, tell me how I change the name of thefield in the shopping cart that represents the date of the order to not bedate.Speaking of Stupid WebCatalog Pet Tricks (tm) here's another: If you use asetheader command to fix info in an old order file (to fix info in the order forarchiving) the order file resets it's date and time fields to right now, whichhas NOTHING to do with when the order itself was placed. It would seem to methat shopping software would hold the Order info as set in stone, especially thedate and time of the order.Want More? the cart number is not actually stored inside of the shopping cartfile, so that if you rename the order file while archiving it, you have no wayof finding out the original cart number.For some reason I continue to have problems with WebCatalog's very nonstandardways of dealing with dates, and yet being touted as serious e-commerce ware. Butsometimes I forget that WebCatalog is in actuality a ram based database with aprogramming language interpreter. Actually, come to think of it, database iskind of a strong term, as I know if no other database that doesn't allow (read:require) you to predefine field types. I'm sure PCS had their reasons (thebiggest I can see is the ability to use any old tab delimited file as adatabase), but I fail to believe that with the advent of the database headerfile this couldn't be improved to give added functionality of defining fieldtypes, and perhaps even error validation by field (unique values only).Therefor, WebCatalog is more of a Pretty Good Large Memory Array Manager, with aScripting Engine.Actually, Pretty Good Large Memory Array Manager isn't even so hot, as my copyof WebCatalog keeps popping up WebCatalog Ran Out of Memory errors, eventhough, according to PCS, that isn't possible. I do sincerely hope that the nextrevision (3.0.4) fixes all of these pesky memory leaks for once and for all.Other then that, I'd like a 200 Disc DVD changer. Brian B. Burton BOFH - Department of Redundancy Department--------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.comAre you a Web Programmer?I am today.
Associated Messages, from the most recent to the oldest:
When people start asking me this year what I want for Christmas, I'm going totell them that I want back all of the time that I had to spend designingworkarounds for WebCatalog shortcomings.GotD (Gripe of the Day): Today I learned all about how once again the
[date] is not actually the
[date]. You see, I was trying to send an email to a fulfillment house aftersomeone placed an order (via my thankyou.tpl page). The email composition has tohave a very fixed format, with date and time indicated in a very certain way. Noproblem I think, I'll just plop in a formatted date tag, and away we go...(ie. [date %a, %d %b %Y])However this produced the result:01/25/99%a, %d %b %Y]which isn't what I wanted.After literally hours of trying to figure out why
[date] with formatting wasn'tworking, it occurred to me that I had been had. That's right kids, (and forthose of you in the back seats who might have missed it) There is a field in theshopping cart called date, and if you use a
[date] tag on a page being shownusing a $showcart or a $purchase then you get the ascii values of the date fieldin the shopping cart, and not the variable of the date. You can Kiss Off usingthe methods that are documented to work with
[date] to show a formatted date.Finally, I evolved the following code to make it work:[format days_to_date %a, %d %b %Y]
[math]{
[date]}[/math][/format]Some of you may remember my suggestion, some months ago, that the
[date]variable should be renamed [today]. PCS basically responded that any confusionon the part of programming of interactions with the date and a database fieldnamed date was the programmers fault, and perhaps the programmer should not namefields in databases date. Beyond that, PCS was content that date was indeedjust a fine term to use as a variable, and there would be no further action ontheir part. Ok, so here's the deal PCS, tell me how I change the name of thefield in the shopping cart that represents the date of the order to not bedate.Speaking of Stupid WebCatalog Pet Tricks (tm) here's another: If you use asetheader command to fix info in an old
order file (to fix info in the order forarchiving) the
order file resets it's date and time fields to right now, whichhas NOTHING to do with when the order itself was placed. It would seem to methat shopping software would hold the Order info as set in stone, especially thedate and time of the order.Want More? the cart number is not actually stored inside of the shopping cartfile, so that if you rename the
order file while archiving it, you have no wayof finding out the original cart number.For some reason I continue to have problems with WebCatalog's very nonstandardways of dealing with dates, and yet being touted as serious e-commerce ware. Butsometimes I forget that WebCatalog is in actuality a ram based database with aprogramming language interpreter. Actually, come to think of it, database iskind of a strong term, as I know if no other database that doesn't allow (read:require) you to predefine field types. I'm sure PCS had their reasons (thebiggest I can see is the ability to use any old tab delimited file as adatabase), but I fail to believe that with the advent of the database headerfile this couldn't be improved to give added functionality of defining fieldtypes, and perhaps even error validation by field (unique values only).Therefor, WebCatalog is more of a Pretty Good Large Memory Array Manager, with aScripting Engine.Actually, Pretty Good Large Memory Array Manager isn't even so hot, as my copyof WebCatalog keeps popping up WebCatalog Ran Out of Memory errors, eventhough, according to PCS, that isn't possible. I do sincerely hope that the nextrevision (3.0.4) fixes all of these pesky memory leaks for once and for all.Other then that, I'd like a 200 Disc DVD changer. Brian B. Burton BOFH - Department of Redundancy Department--------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.comAre you a Web Programmer?I am today.
Brian B. Burton
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:
Security Issues and WebCommerce Solution (1997)
Configuring E-mail (1997)
Getting total number of items ordered (1997)
Email...Thanks (1997)
WC allow classified users to edit entry (1999)
URGENT can not.... (2006)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
trouble with [shownext] (2000)
using showpage and showcart commands (1996)
Tab Charactor (1997)
Authorize.net setup (2002)
Help with Shipping Costs (1997)
triggers have stopped once again (2002)
Searching for Email Address (2004)
date display (1999)
More on the email templates (1997)
Non-Cart Files in Shopping Cart Folder (1997)
Cart Number sequence (1997)
RE: Credit Card Checksum (1997)
dbf2txt (2003)