Re: Show shoppingcart after remove last item
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12585
interpreted = N
texte = Grant Hulbert wrote:> >When I try to remove the last one, WebCat remove it in the shoppingcart> >but close alls databases (no error message in the error.db) and don't> >charge the page.> > I don't know what you mean when you say it closes all databases. What do you see that makes you think they are closed? Also, are you sure this is not a problem with the Netscape cache -- maybe Netscape thinks it has seen this page before, and you need to put PRAGMA NOCACHE into the headers.No, in an other Window I open the Webcat Admin, and I see alls databasesare closed after I try this command.> > >When I have no product in the Shoppingcart, it's the same thing if I> >call it with a showcart command.> > What is the purpose of [numcommande]? Is there a reason not to use [cart]?Yes, because this shopping cart is not the last one, I use the uniquenumber of billing informations stored in a database.Each time somes professionnal clients comes they use a shopping cart,but when they comes again, I use the same number, but the shopping cartis stored in a special folder.As I have this problem, I try using a other way, an [orderfile] contextin my page in place of $showcart command to call the page and this workfine. Have a loock to my new tags :-)And thank'sJacques VERNAY===================================================
Zarcrom Order Page>[showif [op]=a][addlineitemcart=[numcommande]&sku=[order]&db=bases/catalog.txt]quantity=1&texta=[textA]&textB=[textB]&header20=[header20]&header21=[header21]&header22=[header22]&header23=[header23]&header30=[header30]&header31=[header31][/addlineitem][hideif [formorder1]=noinfotechnique][includefile=incfiles/order2.inc][/hideif][/showif][showif [op]=d] [delete db=bases/technique.txt&eqtec_numtechniquedata=[numtechnique]] [removelineitem cart=[numcommande]&index=[line]][/showif][showif [op]=d] [/showif]
[orderfile cart=[numcommande]]
| 
Your Shopping Cart
[showif A[lineItems][lineindex][/lineitems]!A]
[/showif] | | Zarcrom Ordering Template
[showif A[lineItems][lineindex][/lineitems]=A] Votre Bon de Commandeest Vide[/showif][showif A[lineItems][lineindex][/lineitems]!A]Your Shopping Cartcontain the following Items[lineItems] [convertchars][textA][/convertchars]$[format .2f][price][/format] DELETE ITEM[/lineItems] Grand Total : $ [format .2f][Grandtotal][/format][/showif] | |
[/orderfile]
-- _________________________________________________________________| - ABSIDIAL - Web Ingenierie - || Tel. (+33) 01.40.36.46.59 || http://www.zarcromcorp.com/absidial - absidial@zarcromcorp.com || ABSIDIAL SARL partenaire de ZARCROM Industries Corp. USA | ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ>
Associated Messages, from the most recent to the oldest:
Grant Hulbert wrote:> >When I try to remove the last one, WebCat remove it in the shoppingcart> >but close alls databases (no error message in the error.db) and don't> >charge the page.> > I don't know what you mean when you say it closes all databases. What do you see that makes you think they are closed? Also, are you sure this is not a problem with the Netscape cache -- maybe Netscape thinks it has seen this page before, and you need to put PRAGMA NOCACHE into the headers.No, in an other Window I open the Webcat Admin, and I see alls databasesare closed after I try this command.> > >When I have no product in the Shoppingcart, it's the same thing if I> >call it with a showcart command.> > What is the purpose of [numcommande]? Is there a reason not to use
[cart]?Yes, because this shopping cart is not the last one, I use the uniquenumber of billing informations stored in a database.Each time somes professionnal clients comes they use a shopping cart,but when they comes again, I use the same number, but the shopping cartis stored in a special folder.As I have this problem, I try using a other way, an
[orderfile] contextin my page in place of $showcart command to call the page and this workfine. Have a loock to my new tags :-)And thank'sJacques VERNAY===================================================
Zarcrom Order Page>[showif [op]=a][addlineitemcart=[numcommande]&sku=[order]&db=bases/catalog.txt]quantity=1&texta=[textA]&textB=[textB]&header20=[header20]&header21=[header21]&header22=[header22]&header23=[header23]&header30=[header30]&header31=[header31][/addlineitem][hideif [formorder1]=noinfotechnique][includefile=incfiles/order2.inc][/hideif][/showif][showif [op]=d] [delete db=bases/technique.txt&eqtec_numtechniquedata=[numtechnique]] [removelineitem cart=[numcommande]&index=[line]][/showif][showif [op]=d] [/showif]
[orderfile cart=[numcommande]]
| 
Your Shopping Cart
[showif A[lineitems][lineindex][/lineitems]!A]
[/showif] | | Zarcrom Ordering Template
[showif A[lineitems][lineindex][/lineitems]=A] Votre Bon de Commandeest Vide[/showif][showif A[lineitems][lineindex][/lineitems]!A]Your Shopping Cartcontain the following Items[lineitems] [convertchars][textA][/convertchars]$[format .2f][price][/format] [math]dompackage[/math]&form_100package=[math]MBpackage[/math]&numclient=[numclient]&numcommande=[numcommande]&numfacture=[numfacture]&clitype=[clitype]&numtechnique=[textB]>DELETE ITEM[/lineItems] Grand Total : $ [format .2f][Grandtotal][/format][/showif] | |
[/orderfile]
-- _________________________________________________________________| - ABSIDIAL - Web Ingenierie - || Tel. (+33) 01.40.36.46.59 || http://www.zarcromcorp.com/absidial - absidial@zarcromcorp.com || ABSIDIAL SARL partenaire de ZARCROM Industries Corp. USA | ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ>
Jacques VERNAY
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:
WebCatalog dying in NT (1998)
Version Question (2000)
[click][/click] (1999)
wrong authentication (1998)
WebCat Beta NT 18 (1997)
emailer settings and control questions (1997)
[WebDNA] Ubuntu 18.04 & Apache2 & WebDNA fcgi - File upload (2019)
service stop and restart (1997)
Here's how to kill a Butler Database. (1997)
checking for [ and ] in form fields ... (1997)
Date Sorting (1997)
[OT] Connect to MySQL (2004)
Initiating NewCart (1997)
HELP WITH DATES (1997)
[shownext] (2002)
WebCatalog2 Feature Feedback (1996)
Location of Browser Info.txt file (1997)
Grep Help (2003)
strange problem listfiles and movefile (long) (2000)
shownext problems & formvariables (1998)