Need if then statement for filtering

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 14, 2017   (RSS)

By dccreatives - March 13, 2017

I have a page that has downloads based on the brand. Each item in the brand has different downloads. It is a lighting company that has a brand family, items of that family and each item has downloads.

Now I have some items available for quickship. I want the items of each brand to have the quickship pdf download to show on a page.

http://www.axislighting.com/CMS/downloadsList-qs2.php?brand=Beam4%20LED

This Brand Beam4 has quickship, but only for some item styles like in this instance the Recessed. But on that page it is showing all the items under this family whether there is a download or not. Can i write a statement to show only the items of brand that have the download? Here is my file. Basically, I want that if there is no download then it shouldnt show that item.

Attachments:

downloadsList-qs2.php 5K

By dccreatives - March 14, 2017

Thanks. I worked with the code and it works perfectly. After I called all the records. I added the extra if statement as if the record has a quickship, it should show and that worked nicely. I dont have all the extra products only the ones with the record. Thanks.

By ross - March 14, 2017

Great! 

I'm glad that worked. 

Let me know if you need a hand with anything else.

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/