Forums / General Questions / Search on custom products table flag field p.products_gift=1

Search on custom products table flag field p.products_gift=1

Views: 453

Results 1 to 3 of 3
25 Jul 2012, 7:59 AM
#1
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Search on custom products table flag field p.products_gift=1

Would love some input on this customization that I need to do.

I have added a field to products table called products_gift as a flag (0 ||1) that indicates a gift item gets mailed when this product is ordered. I have the need to display a link in side box that will produce a page containing list of all products where products.products_gift=1 in format Alpha Manufacturer Name - Item Name.

OR - a search will work fine as long as the only thing that is searched is products_gift=1

Dont worry about the admin of setting the flag. Ive got that covered. Its just the output Im struggling with.

I can work out the details once I get my head around the big picture of where to start with this. Would love some general direction, best place to start? Is there a Mod I can clone etc...

Thanks

22 stores and counting! Ive been zenned.

5 Aug 2012, 7:59 PM
#2
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Search on custom products table flag field p.products_gift=1

Bump? I promise I wont bump again, just giving it one last shot...../

22 stores and counting! Ive been zenned.

5 Aug 2012, 9:08 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Search on custom products table flag field p.products_gift=1

Is this an admin-side product-report you're trying to generate? Is it isolated to "products"? or is it isolated to "orders"? Or what?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.