Quoting Tris <[EMAIL PROTECTED]>:
Hey all.. I've been asked to NOT charge delivery on a shopping cart I've built, if the product purchased is a gift voucher.. This is cause theyre just gonna mail the user a code...BUT.. if any product in the basket is NOT a voucher, but a voucher is still in the basket, then we wil charge delivery still... Basically, they don't wanna charge their users for delivery when we're not delivering anything.. So, here's my logic.. First I get the id's of vouchers, and run it through the loop that populates the basket page, from the database. I'm asking if the ID No, is NOT a voucher, then flag the basket as NOT just vouchers and cahrge delivery, and if any subsequent items are vouchers, it doesn't matter, as we've already flagged the isVoucherOnly variable. =============================== if (($rowIsVoucher[id] != "235") || ($rowIsVoucher[id] != "236") || ($rowIsVoucher[id] != "237") || ($rowIsVoucher[id] != "238") || ($rowIsVoucher[id] != "239") || ($rowIsVoucher[id] != "258") || ($rowIsVoucher[id] != "259") || ($rowIsVoucher[id] != "260") || ($rowIsVoucher[id] != "261")) { $isVoucherOnly = false; }
ummm, should "[id]" be "[$id]"... Just a thought... M -- Matthew Macdonald-Wallace [EMAIL PROTECTED] "Sed quis custodiet ipsos custodies?" ____ The WDVL Discussion List from WDVL.COM ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: '' To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
