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 Formula price some_code_for_price unitshipcost 5 taxable T ShipCost [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 other than unitshipcost.all I would have to do to take out the unitshipcost in the case of two items being entered is: use the [setunit] var I created in the shipcost field to flag a run-through of the items 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 just before checkout (the page where they can't edit the cart before payment) that runs 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 repetative code that one must do, why not create a [numitems] that is the number of 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:

    
  1. Re: [shippingtotal] still... (John Peacock 2002)
  2. Re: [shippingtotal] still... (Donovan 2002)
  3. Re: [shippingtotal] still... (John Peacock 2002)
  4. Re: [shippingtotal] still... (Donovan 2002)
  5. Re: [shippingtotal] still... (Donovan 2002)
  6. Re: [shippingtotal] still... (John Peacock 2002)
  7. [shippingtotal] still... (WJ Starck 2002)
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 Formula price some_code_for_price unitshipcost 5 taxable T ShipCost [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 other than unitshipcost.all I would have to do to take out the unitshipcost in the case of two items being entered is: use the [setunit] var I created in the shipcost field to flag a run-through of the items 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 just before checkout (the page where they can't edit the cart before payment) that runs 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 repetative code that one must do, why not create a [numitems] that is the number of 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)