At 18:14 22/02/01, you wrote:
>Along the lines of the wishlist, this needs to be added to global_settings
>if you want to turn the whishlist off:
>
> define("WISHLIST_ENABLED", FALSE);
>
>This constant is not defined in the distributions I have....at least, not
>where I could find it.
>
global_settings, line 227
>BTW, while I am on the topic of constants, It would also be nice to have
>the ability to turn the buy button, shopping cart, intentory stuff, etc.
>on or off with a constant. I know I will be adding this myself. Believe
>it or not, I have a few clients just looking for catalogs.
>
>-k
>----- Original Message -----
>From: <mailto:[EMAIL PROTECTED]>Ron Dyck
>To: <mailto:[EMAIL PROTECTED]>FreeTrade
>Sent: Thursday, February 22, 2001 5:10 AM
>Subject: [FreeTrade] Wishlist Button
>
>I needed to use an image for the wishlist and found that the variable:
>$wishlist_button wasn't set using an image. So I added this bit of code to
>the top of ADD_BASKET to recognize it,
>
>foreach($HTTP_POST_VARS as $key => $value) {
> if (preg_match ("/wishlist_button/", $key)) {
> $wishlist_button = TRUE;
> }
> }
>
>My question is, is there a more efficient way? This seems to work great
>without requiring any modification to the ADD_BASKET action, but it just
>seems a little unnecessary to loop through the all POST_VARS like that.
>
>Any suggestions?
>
>=======================
> Ron Dyck
> WebbTech
> <http://www.WebbTech.net>www.WebbTech.net
bye
Bob Hutchinson
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]