Re: [shippingtotal] still...
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45760
interpreted = N
texte = I have an ugly test store that I use to munge code with. :-)I used will's code in the formulas.db and it works fine.Here is the formulas.db:Name Formulaprice some_code_for_priceunitshipcost 5taxable TShipCost [orderfile cart=[cart]][math show=f]ordered=0[/math][lineitems][!][/!][math show=f]ordered=[ordered]+[quantity][/math][/lineitems][/orderfile][!][/!][if[ordered]<2][then][text]setunit=F[/text]100[/then][else][text]setunit=T[/text]0.00[/else]If you add one item, a shipping charge of 100 is made.If you add two items or more there is not shipping charges otherthan unitshipcost.all I would have to do to take out the unitshipcost in the case of twoitems being entered is:use the [setunit] var I created in the shipcost field to flag a run-through of theitems and setlineitem all items' unitshipcost values to 0 (will need the password).Or you can simply have a similar default include file at the top of the page justbefore checkout (the page where they can't edit the cart before payment) thatruns through the lineitems and determines the number of items in the cart.If it is greater than 1 then setlineitem all items' unitshipcost value to 0.Test the first part here:http://216.81.241.229/WebCatalog/Storebuilder/teststore/Now, this beckons a FEATURE REQUEST. to bypass the repetativecode that one must do, why not create a [numitems] that is the numberof items (including quantity) in the cart.??Cheers,Donovan-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I have an ugly test store that I use to munge code with. :-)I used will's code in the formulas.db and it works fine.Here is the formulas.db:Name Formulaprice some_code_for_priceunitshipcost 5taxable TShipCost [orderfile cart=[cart]][math show=f]ordered=0[/math][lineitems][!][/!][math show=f]ordered=[ordered]+[quantity][/math][/lineitems][/orderfile][!][/!][if[ordered]<2][then][text]setunit=F[/text]100[/then][else][text]setunit=T[/text]0.00[/else]If you add one item, a shipping charge of 100 is made.If you add two items or more there is not shipping charges otherthan unitshipcost.all I would have to do to take out the unitshipcost in the case of twoitems being entered is:use the [setunit] var I created in the shipcost field to flag a run-through of theitems and setlineitem all items' unitshipcost values to 0 (will need the password).Or you can simply have a similar default include file at the top of the page justbefore checkout (the page where they can't edit the cart before payment) thatruns through the lineitems and determines the number of items in the cart.If it is greater than 1 then setlineitem all items' unitshipcost value to 0.Test the first part here:http://216.81.241.229/WebCatalog/Storebuilder/teststore/Now, this beckons a FEATURE REQUEST. to bypass the repetativecode that one must do, why not create a [numitems] that is the numberof items (including quantity) in the cart.??Cheers,Donovan-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan
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:
Date problems-more (1997)
[Applescript] (2000)
Quick Question About Sorting (1997)
AUTONUMBER (2003)
IP Address (2001)
WebCat2 - Getting to the browser's username/password data (1997)
Variables not being passed *back* (2000)
More on the email templates (1997)
Help! WebCat2 bug (1997)
[WebDNA] Stop hacking (2013)
[WebDNA] More wish-list requests implemented (2016)
Tech question about web dna actions (1998)
Location of Browser Info.txt file (1997)
Can I invoke an ssi plugin from within a webcat page (1997)
Reversed words (1997)
[isfile] ? (1997)
Webmerch Error (1998)
[OT] Google Info (2004)
Sort Order on a page search (1997)
Showif ~ Netscape : Showif ~ MSIE (2001)