How we get items in shopping cart using models in Magento?
-
zendnwar
-
March 18, 2015
-
Magento
-
0 Comments
It is simple, Please following code. $cart = Mage::helper(‘checkout/cart’); $totalItems = $cartHelper->getCart()->getItems(); foreach ($items as $item) { $itemId = $item->getItemId(); $count=$item->getQty(); }
Continue Reading
How to get Magento CMS pages menu?
-
zendnwar
-
March 16, 2015
-
Magento
-
0 Comments
It is very simple, Please check below: $CmsPageCollection=Mage::getModel(‘cms/page’)->getCollection()->addStoreFilter( Mage::app()->getStore()->getId())->setOrder(‘sortorder’, ‘asc’);
Continue Reading
Magento only one product showing on category page
-
zendnwar
-
March 16, 2015
-
Magento
-
0 Comments
Please check following step : 1. Check all product of category inventory “Qty” & “Out of stock”. It’s should be more then single qty & in stock. 2. Check website(Magento 1.8 or below). 3. Clear cache admin->system->cache management. 4. Re indexing all index from Admin>system>Index management Hope solved your problem.
Continue Reading
How to Re-indexing in Magento through the command line
-
zendnwar
-
March 11, 2015
-
Magento
-
0 Comments
For the status of all indexes: php indexer.php –status Re-indexing a single index: php indexer.php –info Re-index for all index: php indexer.php –reindexall Re-index for single or multiple index: php indexer.php –reindex catalog_product_price,catalog_url,catalog_product_flat
Continue Reading
Magento does not accept different Name than sitemap.xml
-
zendnwar
-
March 11, 2015
-
Magento
-
0 Comments
It is very simple, please follow below step. /app/code/core/Mage/Core/Model/File/Validator/AvailablePath.php copy this file and paste this in your local folder /app/code/local/Mage/Core/Model/File/Validator/AvailablePath.php find if ($this->_availablePaths && !$this->_isValidByPaths($valuePathInfo, $this->_availablePaths, false)) { $this->_error(self::NOT_AVAILABLE_PATH, $this->_value); return false; } replace with if ($this->_availablePaths && !$this->_isValidByPaths($valuePathInfo, $this->_availablePaths, false)) { $this->_error(self::NOT_AVAILABLE_PATH, $this->_value); return true; }
Continue Reading
Disable admin notification popup in Magento
-
zendnwar
-
March 5, 2015
-
Magento
-
0 Comments
It is very simple. Please follow following step. Login to your Magento Admin Panel Go to System -> Configuration -> Advanced Disable the Mage_AdminNotification module
Continue Reading
What is the difference between Authorization, Capture, and Sale?
-
zendnwar
-
March 5, 2015
-
Magento
-
0 Comments
Authorization You request an authorization when a customer makes a purchase. An authorization, provided by the customer’s card issuing bank, confirms the cardholder’s ability to pay, ensuring that the customer’s credit card account is in good standing with sufficient funds to complete the purchase. Capture After providing a service/product to the customer, you ‘capture’ the relevant information from the authorization …
Continue Reading
Explain life cycle of a Block in Magento
-
zendnwar
-
March 5, 2015
-
Magento
-
203 Comments
_prepareLayout() method is called immediately after a block has been added to the layout object for the first time. _beforeToHtml() method is called immediately before a block’s HTML content is rendered. _afterToHtml() method is called immediately after a block’s HTML content is generated. _beforeChildToHtml() is called when a parent renders one of its children (through a call to $this->getChildHtml(‘name’)).
Continue Reading
Which routers exist in a native Magento implementation?
-
zendnwar
-
March 5, 2015
-
Magento
-
284 Comments
– admin, – standard, – cms, – default
Continue Reading
Get All Children Of A Block in Magento
-
zendnwar
-
March 5, 2015
-
Magento
-
0 Comments
Sorted: $this->getSortedChildren() Unsorted: $this->getChild()
Continue Reading