Magento auto remove out of stock items from shopping cart
Below Code will remove automatically product items from shopping cart page which are out of stock In config.xml file: In Observer.php file: Enjoy…..:)
Collection of Thoughts
Below Code will remove automatically product items from shopping cart page which are out of stock In config.xml file: In Observer.php file: Enjoy…..:)
Magento get all the attribute values you have in the store. Get all the colors and sizes values in Magento. Change the attribute name to whatever you want values for, in the below script....
Get real IP address if your server or customer is behind a proxy network. Magento have function Mage::helper(‘core/http’)->getRemoteAddr(); to get client IP address, but it gives proxy IP address instead of real IP if...
I found this out while scouring the net on my quest for all my other recent problems. Zend has a built in barcode generation class, Zend_Barcode. Then googling php image output, I put together...
To add Magento’s layered navigation to a CMS page where you’re showing items simply edit your CMS page in the admin – under the “Design” tab put this code: This will show the layered...
There are several methods used for overriding magento core files. Here I’m going to explain one of simplest method to override core files in magento. In this method to override magento core files, you...
First take backup of your database before run this script. Did you ever had a problem where you can not see all available categories in “Categories” tab while editing a product? Does your Indexer...
Here is the code to delete all shopping cart items of currently logged in single customer:- $cart = Mage::getSingleton(‘checkout/cart’); $quoteItems = Mage::getSingleton(‘checkout/session’) ->getQuote() ->getItemsCollection(); foreach( $quoteItems as $item ){ $cart->removeItem( $item->getId() ); } $cart->save();...
This tutorial will show you how to show custom options quantity in product management grid in Magento When you go to Catalog –> Manage Products, in grid only total qty is displayed. Our requirement...
For the attributes which have a frontend type “Select” we need to define options that on the product page converted into a dropdown. For example attribute color may have options Red, Green, Blue etc....
Magento offers Custom Layout Update in the CMS page, that allows to add or remove any dynamic or static block in the CMS page. For example on the Home page we display featured products...
Magento category listing is ordered by ascending by default installation. Under the attribute settings, we can easily manage the element listing used to sort the products, but changing the sort order to descending requires...
Path hints is a very useful tool for Magento Theming as it let us know where exactly we have to go. It’s easy for front-end to enable the path hints and locate the template...
In Magento modules, system.xml file is used to create admin configuration tabs and options. Magento’s great feature allows developers to create advanced configurable modules in a little time. At the run time Magento collects...
This method returns all category ids of the product as array. Remember it only returns an array of product categories and not the category details.
Magento is a complete and awesome MVC application. It’s fully moduler and easy to extend its features and functionality. All the CRUD operations are performed using the modules, model classes. But many a time...
The default Magento onepage checkout includes six steps for the customer to complete. However, sometimes you may have a requirement to create an extra checkout step. An example of this might be an option...
Sometimes there is a need for showing star ratings outside the products review page. Reviews are another one of numerous excellent features in Magento. Usage of reviews can increase visitors’ trust in your brand,...
We all know how great Magento grids can be – there is no alternative when it comes to displaying data in a efficient manner. This can be useful if you have a number of...
I’ve spent the last few weeks to create a simple magento product programmatically and finally get solution for this. I am creating a simple product programmatically in Magento Store. There is nothing much to...