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.
 
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: Ron Dyck
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
      www.WebbTech.net

Reply via email to