You are here:  » Search and Replace problem with value 0


Search and Replace problem with value 0

Submitted by cocota on Wed, 2014-06-11 16:31 in

hello david,

a little problem with Search and Replace, i have one feed with instock field with

"1" when product is instock and "0" when nostock

i would like replace the "1" value by a png, no problem for that but when i try to replace "0" value by an other png i get this message required field when i valid the Configure Filter page with "0" in the Search field.

the number 0 is not accepted....a solution ?

thanks david

Submitted by support on Thu, 2014-06-12 09:47

Hi cocota,

In includes/filter.php, look for the following code at line 41:

  if (!$filter_data["search"])

...and REPLACE with:

  if ($filter_data["search"]=="")

You'll then be able to use "0" as the Search value.

Cheers,
David.
--
PriceTapestry.com

Submitted by cocota on Thu, 2014-06-12 11:02

great and fast support, thank you David !