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:
Re:multiple digests, please stop (1997)
searching results (1999)
Sku numbers (1997)
Unformatted Messages (1998)
WebCat2b12 - nesting [tags] (1997)
Is there a way to just get to the last record in the database? (1997)
[lookup] [search] Issue (2005)
Re:Gil's in the lead (1999)
Setting up shop (1997)
Simple way to create unique SKU (1997)
setlineiems and UnitShip Cost (2000)
FW: I'll Know If You Don't Read This (2006)
Showing specific [cart] contents (1998)
possible, WebCat2.0 and checkboxes-restated (1997)
Detecting/limiting connections in the developer edition ... (2004)
WebDNA tags in WebMerchant email templates ... (1997)
Webcatalog server support (1997)
carriage returns in data (1997)
template cache problem (1998)
Multiple Pulldowns (1997)