I have written an extension support save all items from cart to wishlist in magento. This extension help customers easy to save all the cart items to their wishlist for later order. It supports all kind of products in magento : Simple product, configurable product, bundle product , simple product with…
Some useful code to help you get magento URL path to display images, include javascript on frontend, get URL for categories or cms page, get content of static block. There are many different ways to do it. Let’s figure out In admin page : cms page or static block Get…
To get all images of product including exclude images in magento , you can look at this code and find out what is the code we must use to get all images. This code is located in Mage_Catalog_Model_Product line 1010. public function getMediaGalleryImages() { if(!$this->hasData(‘media_gallery_images’) && is_array($this->getMediaGallery(‘images’))) { $images =…
Are you frustrated for wrong format .csv when using Microsoft Excel. Here is the article help you get out of it. Most people miss the way to save UTF-8 with Excel. Choose Save As… from the file menu and then on the Save As dialog box, look for an item…
Scenario : adding mutiple products to cart in magento which have quantity greater than zero value. Solution : 1/ Create a button that send a request for adding multiple products to cart in magento. 2/Create a controller to handle it.It will extend Mage_Checkout_CartController Let’s begin coding : 1/Create a button…
This is tutorial for guiding create a button adding multiple products to wishlist in category page. Let’s start ! Firstly, We need to create a button. Go to the the file : app/design/frontend/default/your-current-theme/catalog/product/list.phtml Put this code . Notice my highlighter code <?php /** * Product list template * * @see…
Some useful code related to date in Magento : 1/ Get the current time : $currentTime = date(“d.m.Y”, Mage::getModel(‘core/date’)->timestamp(time())); echo $currentTime; 2/Get the first day of current month: $firstDayOfCurrentMonth = date(“01.m.Y”, Mage::getModel(‘core/date’)->timestamp(time())); echo $firstDayOfCurrentMonth; 3/Get the last day of current month : $lastDayOfCurrentMonth = date(“t.m.Y”, Mage::getModel(‘core/date’)->timestamp(time())); echo $lastDayOfCurrentMonth;…