tag:blogger.com,1999:blog-3096948998424560639.post8575428975744706092..comments2023-01-03T14:25:22.388+02:00Comments on It's not a bug. It's a feature.: A list of all the products in the website (for travelingwilly)tzyganuhttp://www.blogger.com/profile/03260476970491519251noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-3096948998424560639.post-7559049979170384612015-01-07T23:38:09.412+02:002015-01-07T23:38:09.412+02:00I am trying to show all in stock product can anyon...I am trying to show all in stock product can anyone tell me what I am missing? <br />_productCollection)) {<br />$collection = Mage::getResourceModel('catalog/product_collection')<br />->addAttributeToSelect('*')<br />->addFieldToFilter('is_salable', '1');<br />$this->_productCollection = $collection;<br />}<br />return $this->_productCollection;<br />}<br />}<br />?>Anonymoushttps://www.blogger.com/profile/04639912326598145583noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-33782889472812269942015-01-07T23:37:33.873+02:002015-01-07T23:37:33.873+02:00I am trying to show all in stock product can anyon...I am trying to show all in stock product can anyone tell me what I am missing? <br />_productCollection)) {<br />$collection = Mage::getResourceModel('catalog/product_collection')<br />->addAttributeToSelect('*')<br />->addFieldToFilter('is_salable', '1');<br />$this->_productCollection = $collection;<br />}<br />return $this->_productCollection;<br />}<br />}<br />?>Anonymoushttps://www.blogger.com/profile/04639912326598145583noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-55830357828235119772013-11-25T16:30:38.209+02:002013-11-25T16:30:38.209+02:00awesome, great helpawesome, great helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-34836242472869320522011-12-18T15:24:06.102+02:002011-12-18T15:24:06.102+02:00Hi,
how to add Layered Navigation Menu to the lef...Hi,<br /><br />how to add Layered Navigation Menu to the left column with subcategories?<br /><br />DavorNoAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-88640494287304651642010-07-22T16:52:50.315+03:002010-07-22T16:52:50.315+03:00Right Sunny. Thanks.Right Sunny. Thanks.tzyganuhttps://www.blogger.com/profile/03260476970491519251noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-33858929913511661432010-07-22T16:31:58.947+03:002010-07-22T16:31:58.947+03:00Hi,
also we need to add store filter:
->addStor...Hi,<br />also we need to add store filter:<br />->addStoreFilter()<br />so only the products related to current store are selected. :) thanks helped a lot.<br /><br />SunnyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-40663747922832025082010-03-15T09:40:10.789+02:002010-03-15T09:40:10.789+02:00Hi John,
Sorry, I forgot to close a curly bracket ...Hi John,<br />Sorry, I forgot to close a curly bracket right before closing the php tag (?>).<br />I'll modify the post. Thanks for the feed-back.tzyganuhttps://www.blogger.com/profile/03260476970491519251noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-55505343779285650282010-03-15T09:26:15.100+02:002010-03-15T09:26:15.100+02:00Hi,
thanks for this code. I'm trying to use i...Hi,<br /><br />thanks for this code. I'm trying to use it as a navigation. My store is quite small (10 products) so I prefer to list the products in a block instead of the categories. I did everything you mentioned here.<br /><br />When I tried to use this code I get the following error: <br />Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/domain/app/code/local/Mage/Catalog/Block/Product/All.php on line 15<br /><br />Line 15 contains the following: ?><br /><br />Would you be able to help. I'm using Magento 1.4.x<br /><br />Look forward to your reply.<br /><br />JohnJohnnoreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-80722555048702080562010-01-19T11:25:30.495+02:002010-01-19T11:25:30.495+02:00Mersi mult.Mersi mult.Danhttp://danpop.ronoreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-68382505333513573782010-01-19T11:24:40.948+02:002010-01-19T11:24:40.948+02:00sorry I made a mistake
Last line should be $_custo...sorry I made a mistake<br />Last line should be $_customer->save();tzyganuhttps://www.blogger.com/profile/03260476970491519251noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-86017890989431153232010-01-19T11:22:49.854+02:002010-01-19T11:22:49.854+02:00You can generate an password using the customer mo...You can generate an password using the customer model.<br /><br /><br />$passwordLength = 10;<br />$customer = Mage::getModel('customer/customer');<br />$pass = $customer->generatePassword($passwordLength);<br /><br /><br />If you want to set this password to a specific customer just do this<br /><br />$customerId = 1;//replace with your customer id<br />$_customer = Mage::getModel('customer/customer')->load($customerId)->setPassword($pass);<br />$customer->save()tzyganuhttps://www.blogger.com/profile/03260476970491519251noreply@blogger.comtag:blogger.com,1999:blog-3096948998424560639.post-82057012126269609092010-01-19T11:05:18.117+02:002010-01-19T11:05:18.117+02:00Thanks a lot
Can I ask here a question, if you d...Thanks a lot <br /><br />Can I ask here a question, if you don't mind (english or romanian :) ). How can I generate a customer password ot store directly into customer entity varchar? I already tried this but it doesn't seem to work:<br /><br />$obj = Mage::getModel('core/encryption'); //instantiate the core encryption mode,<br />$helper = Mage::helper('core'); //instantiate the core helper,<br />$obj->setHelper($helper); //set the encryptions helper,<br />$enc_pwd = $obj->getHash($pwd, 2); //get the password's hash<br /><br />(http://czetsuya-tech.blogspot.com/2009/08/magento-customer-password-encryption.html)<br /><br />Can you tell me pls what's wrong? Thanks. Dan.Danhttp://danpop.ronoreply@blogger.com