Product search: on sale field

General ShopSite user discussion

Product search: on sale field

Postby dlundell » Mon Nov 19, 2012 3:17 pm

Hi,

I'm trying to search for products that have (or don't have) the On Sale toggle set.

But it's not coming up with the right results.

I've tried: is / is not / contains for the text checked (and unchecked), which is how it's stored in the database.

(I've also tried is not blank [no text in the field]; I've tried is / is not: 1)

How do I get it to work? I need to find all of the products that don't have that checkbox set.

Thanks,

Don
dlundell
 
Posts: 95
Joined: Fri Aug 04, 2006 6:13 pm

Re: Product search: on sale field

Postby Jim » Mon Nov 19, 2012 3:50 pm

I set one item to have a sale price of $1 and checked the box (Edit Product Layout > Check here to display this product's on sale price )
one item to have a sale price and unchecked the Edit Product Layout > Check here to display this product's on sale price box
One item to have no sale price and checked the Edit Product Layout > Check here to display this product's on sale price box.

I did a search for products On Sale and Contains with nothing in the text field. It listed the item that had both the sale price and the Display this product on Sale price box checked.

So for an item to be considered "On Sale", it must have a sale price and the box to display the checkbox must be checked.

When I search for Sale Amount contains and nothing in the text field it list all the products with the ones that have a sale amount at the top of the list with the
sale price - product name
items without a sale price display with a - product name.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Product search: on sale field

Postby dlundell » Mon Nov 19, 2012 4:09 pm

Jim wrote:
So for an item to be considered "On Sale", it must have a sale price and the box to display the checkbox must be checked.



Ah well.

What I need it to do is to find the checkbox independently of the sale price being filled in
(I need to find all of the not-set sale checkbox products and use that to unset another extra field I'm using for a different purpose.)

I do have a work-around in this case. Since I can see the state of the checkbox (PRODUCT.SaleOn) in the product template code,
I can do with work there. It's a hack, but it works.

Thanks,

Don
dlundell
 
Posts: 95
Joined: Fri Aug 04, 2006 6:13 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 105 guests