ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Only brands with active products..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Only brands with active products..

 Post Reply Post Reply
Author
Message
p00pstar View Drop Down
Newbie
Newbie
Avatar

Joined: 17-March-2007
Location: Romania
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote p00pstar Quote  Post ReplyReply Direct Link To This Post Topic: Only brands with active products..
    Posted: 19-April-2011 at 8:55am
Hi everyone,

I figured someone would also benefit from this.
It changes viewbrands.asp to show only the brands that actually have any products.

You should change the query (around line 55,56) to this :

query="SELECT distinct pcBrands_Order, brands.idbrand, BrandName, BrandLogo, pcBrands_Description, pcBrands_SDescription, pcBrands_SubBrandsView, pcBrands_ProductsView, pcBrands_Active, pcBrands_Parent, pcBrands_MetaTitle, pcBrands_MetaDesc, pcBrands_MetaKeywords, pcBrands_BrandLogoLg FROM Brands, products WHERE pcBrands_Active=1 and brands.idbrand=products.idbrand AND products.active=-1"&query1&" ORDER BY pcBrands_Order, BrandName ASC;"

Have fun !
www.dotdesignmedia.ro // web application development
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.