Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only user 4564

Denotes questions about unavailability of products or the products with zero quantity.

6
votes
You can use this code which give stock in faster way using product id $model=Mage::getModel('cataloginventory/stock_item'); $model->getResource()->loadByProductId($model, $productId); $data=$model->s …
answered Jul 2 '15 by Amit Bera
0
votes
Suppose, you want to add Crosssellsection at product detail page and want to show current product's Crosssellproducts then you need to create an extension. On this extension, you will need to crea …
answered Sep 29 '17 by Amit Bera
0
votes
You can do this by a simple way. Rewrite helper class Mage_ProductAlert_Helper_Data of Mage_ProductAlert module and create a custom function and on this funtion write code for custom url for product …
answered Jun 2 '15 by Amit Bera
2
votes
You can get Out of stock product by changing a setting. For magento2,goto Admin>Stores > Configuration > Catalog > Inventory > Stock Options. Display Out of Stock Products: Choose Yes to enable displ …
answered Jun 12 '19 by Amit Bera
0
votes
It possible, but Enable out of stock product from admin: you need to enable setting for show out of stock product by default. Enable out of stock product then using Magento event/observer,We can …
answered Feb 27 '15 by Amit Bera
2
votes
If you want to add out of stock products to cart without changing any configuration from the backend then you have added enable super mode of the product during add to card $productInfo->setIsSu …
answered Sep 10 '19 by Amit Bera
0
votes
Yes,you can be get out of product in your collection whenever Stock options -> Display Out of Stock Products = no Add below code to $collection. $cond = [ '{{table}}.use_config_manage …
answered Aug 4 '16 by Amit Bera
0
votes
You need to rewrite the class Mage_ProductAlert_Model_Observer https://code.tutsplus.com/tutorials/understand-overriding-in-magento-models--cms-23354 <?xml version="1.0"?> <config> <modules> …
answered Jan 25 '18 by Amit Bera
1
vote
first,$stockIds don't return the product ids ,it give the stock id,basically stock table primary key. If you want to filter product collection by saleable then you need use below code: Mage::getSing …
answered Feb 24 '15 by Amit Bera
0
votes
You can try this. $manageStock = Mage::getStoreConfig(Mage_CatalogInventory_Model_Stock_Item::XML_PATH_MANAGE_STOCK); $cond = array( '{{table}}.use_config_manage_stock = 0 AND { …
answered Nov 3 '15 by Amit Bera