PDA

View Full Version : Couple of quick questions. Search and stock removal


Leeram
7-10-05, 07:20 PM
Hi everyone,

Any help would be greatly appreciated.

1- Can I make the quick search automatically search product descriptions without having to go to advanced and check the box?

2- When I delete a product osCommerce deletes the picture associated with it. Can I make it leave the picture but still delete the product? or failing that, is there any way to set osCommerce up so that it doesn't display items with a stock level of 0 (rather than displaying the product with the number 0 for the stock level)

Cheers

Leeram

stevel
7-10-05, 08:25 PM
1. In includes/boxes/search.php, change:
'text' => tep_draw_input_field to
'text' => tep_draw_hidden_field('search_in_description', '1') . tep_draw_input_field

2. From my perusal of the code, it does not delete the image if there are other products using it. Maybe that's not what you're asking? If "Allow Checkout" is set to False in admin, then when an item goes out of stock (requires that "Subtract stock" be true), its "status" gets changed to 0 which means it won't display in a product listing.

Leeram
7-16-05, 11:58 AM
Many thanks for your help.

Cheers

Lee