Posts

Showing posts with the label Magento

Show Currencies with their symbol instead of currency switcher in header

Sometimes clients requirement are different and hence we would need to break our heads to fix their requirement ;) We all know that there's a default currency drop down selector (also called as Currency Switcher ) available in magento (displayed in the top right of our header). I would like to replace that with currency symbols like i.e, $ £ €  So I change the code in your themes "directory/currency.phtml", Replace this code in place of dropdown code:           <ul>         <?php foreach ($this->getCurrencies() as $_code => $_name): ?>         <li>           <a onclick="setLocation('<?php echo $this->getSwitchCurrencyUrl($_code) ?>')"><?php echo Mage::app()->getLocale()->currency($_code)->getSymbol()?> - <?php echo $_code ?></a>    ...

Add/Remove Product from Wishlist using Ajax in Magento

Hello Guys, There are many custom codes and extension(s) are available on Internet through which we can Add product in "WISHLIST" using Ajax but vice-versa is not available. i.e, we can not Remove product from  WISHLIST  using Ajax.So I have created a custom functionality which works fine for me. Hope this will help some one!! I have extended VS AJAX extension to achieve "Remove Product from wishlist using AJAX".You can find VS AJAX extension @  http://www.magentocommerce.com/magento-connect/vs-ajax-8468.html 1) Download my Attachment  and add it in your respective magento folder structure. 2)   After than Add below code in under your product list page <?php ## Add this in top of your product list page ## $loggedin_cus_id=Mage::helper('customer')->getCustomer()->getEntityId() ; ## Find logged in  sessions user id ## Finding users wishlist ## $wishList = Mage::getSingleton('wishlist/wishlist')->loadByCustomer($loggedin_...