Posts

Showing posts from April, 2011

Display currency selection in header

By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in header. Create a new phtml file (../template/<dirname>/currency-top.phtml) and write the following code in it: <?php if($this->getCurrencyCount()>1): ?> <div class="box language-switcher" style="margin-left:15px"> <label for="select-language">Your Currency: </label> <select name="currency" onchange="changeCurrency(this)"> <?php foreach ($this->getCurrencies() as $_code => $_name): ?> <option value="<?php echo $_code ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>> <?php echo $_name ?> - <?php echo $_code ?> </option> <?php endforeach; ?> </select> </div> <script typ

By deafult selecting "Ship to this address" in billing section of checkout

Hi Guys, In Magento, by default there is selecting "Ship to different address" in billing section. If you want to selecting "Ship to this address" by default then, you can done this by following way.. . open the billing.phtml path: app/design/frontend/themename/themename/template/checkout/onepage/billing.phtml and put this before the form tag $session = Mage::getSingleton('core/session'); if (intval($session->getPreselectedAddressOption()) !== 1) { $session->setPreselectedAddressOption('1'); $this->getQuote()->getShippingAddress()->setSameAsBilling(true); } In this way you make preselected "Ship to this address" in billing section of checkout. without modifying in core file. Cheers :) Gaurav

know, your server is compatible with Magento?

Hi guys, In order to run Magento your server needs to meet some basic software requirements but you can test your server for compatibility by following these simple steps: 1. Download magento check file from hear: - http://www.magentocommerce.com/_media/magento-check.zip 2. Extract it and copy magento-check.php file into your directory (where your .htacces,index.php files are beside) 3. In your browser navigate to this page: IE. magento/magento-check.php   Cheers, Gaurav :)