vcache Posted March 30, 2004 Share Posted March 30, 2004 Is there any way to create an item that doesn't show up in the product listings? Contribs added: AdminLogin-Catalog With Images-Credit Class/Gift Voucher-CoolMenu EasyPopulate-LoginBox-Paypal Shopping Cart IPN-PDF Catalogs Product Listing In Columns - Image Strip -- ...the young jedi said to his master "you want me to do WHAT?" Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2004 Share Posted March 30, 2004 Yes - you can do this by creating a column in the products table of your database, eg. ALTER TABLE products ADD products_listing_status TINYINT(2) DEFAULT '1' NOT NULL; You can then alter your queries in index.php: where p.products_status = '1' and p.products_listing_status = '1' Just look for: where p.products_status = '1' in the code (there are more than one instance) You can put a radio select in admin/categories.php for marking products or mark them in the database directly - simply adjust products you wish to hide to 0 Matti Link to comment Share on other sites More sharing options...
vcache Posted March 30, 2004 Author Share Posted March 30, 2004 thanks! Reason I am needing to do this is I plan to run monthly contests and I have the winner pay the shipping (heck, their getting the actual product free...) and want them to be able to pay the shipping through the site to make it easier for them Contribs added: AdminLogin-Catalog With Images-Credit Class/Gift Voucher-CoolMenu EasyPopulate-LoginBox-Paypal Shopping Cart IPN-PDF Catalogs Product Listing In Columns - Image Strip -- ...the young jedi said to his master "you want me to do WHAT?" Link to comment Share on other sites More sharing options...
laurelsstitchery Posted February 22, 2006 Share Posted February 22, 2006 I think this may solve all my problems with trying to give free shipping to my new customers! I've created an item with a cost of -$2.00, but I don't want it to be visible to the general public like it is now. I want to be able to send the new customers a link to the item so they can get free or discounted shipping. I found six instances of where p.products_status = '1' in index.php. Do I change all six to the following? where p.products_status = '1' and p.products_listing_status = '1' Yes - you can do this by creating a column in the products table of your database, eg. ALTER TABLE products ADD products_listing_status TINYINT(2) DEFAULT '1' NOT NULL; You can then alter your queries in index.php: where p.products_status = '1' and p.products_listing_status = '1' Just look for: where p.products_status = '1' in the code (there are more than one instance) You can put a radio select in admin/categories.php for marking products or mark them in the database directly - simply adjust products you wish to hide to 0 Matti Laurel Link to comment Share on other sites More sharing options...
laurelsstitchery Posted February 22, 2006 Share Posted February 22, 2006 Well, darn. I replaced the code in index.php and created the column in the table and set the one item I want to hide to "0", but it's still visible in the New Products for February box. Any ideas? I think this may solve all my problems with trying to give free shipping to my new customers! I've created an item with a cost of -$2.00, but I don't want it to be visible to the general public like it is now. I want to be able to send the new customers a link to the item so they can get free or discounted shipping. I found six instances of where p.products_status = '1' in index.php. Do I change all six to the following? where p.products_status = '1' and p.products_listing_status = '1' Laurel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.