weit Posted November 1, 2010 Share Posted November 1, 2010 Hi, I need to edit a block with new products so as to display products from a selected category (such as ID 3). Edit blocknewproducts.php or product.php? Do you need..Reason: I have 2 main categories, but one of them is intended only for wholesale customers (chosen by the user after login). Other users can see these products as well, although not as a wholesale login.PS: Sorry my english.. Link to comment Share on other sites More sharing options...
weit Posted November 2, 2010 Author Share Posted November 2, 2010 Can you think of something? Please Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 My post here might help. Link to comment Share on other sites More sharing options...
weit Posted November 3, 2010 Author Share Posted November 3, 2010 In the event that the goods in the category of settings and click on the disabled displayed the error manifests itself, too. Goods are still displayed in blocknewproducts...Tested on version 1.3.1 and 1.3.2. Any idea? Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2010 Share Posted November 3, 2010 I don't understand. Are you saying that products that you have disabled are being displayed in the "New products" block? Link to comment Share on other sites More sharing options...
weit Posted November 3, 2010 Author Share Posted November 3, 2010 Yes. Last products in blocknewproducts is constantly displayed. Display settings and groups access in category has no effect. Link to comment Share on other sites More sharing options...
weit Posted November 5, 2010 Author Share Posted November 5, 2010 What should I look for? I don't know where is the problem. Link to comment Share on other sites More sharing options...
rocky Posted November 5, 2010 Share Posted November 5, 2010 So you are using $category->getProducts to get the products? On my website, that function has WHERE `active` = 1, so it only returned enabled products. Link to comment Share on other sites More sharing options...
weit Posted November 7, 2010 Author Share Posted November 7, 2010 Sorry for the unnecessary post. The problem was visibility settings subcategories. Thx Rocky.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now