Viewing 31 to 40 of 41 items
Archive | Front-end RSS feed for this section

How to show pending payment order on front-end

This will be a very quick tutorial today but I bet that it’s helpful to you. As you know, some orders have status of pending payment and by default, Magento doesn’t show them on frontend. It makes customers unable to view details of their orders. However, you can configure to display these orders on frontend  Full Article…

0

Beginning of SASS & SCSS

Installation: Step 1: Go to this site and download Ruby Installer http://rubyinstaller.org/downloads/ Step 2 : Open Terminal and execute these two line gem install sass gem install scss PHPStorm Intergration: Step 1: Go to File Watcher and create a Watcher Program : {RubyInstallFolder}/bin/scss.bat for .scss and {RubyInstallFolder}/bin/sass.bat Working Directory : The directory of the scss  Full Article…

0

How to check CMS block is active?

How to check CMS block is active? You can use the following command: Mage::getModel('cms/block')->load('static_block_identifier')->getIsActive()

0

Create a Country Drop Down in the Frontend of Magento

<?php $_countries = Mage::getResourceModel('directory/country_collection')                                     ->loadData()                                     ->toOptionArray(false) ?> <?php if (count($_countries) > 0): ?>     <select name="country" id="country">         <option value="">– Please Select –</option>         <?php foreach($_countries as $_country): ?>             <option value="<?php echo $_country[‘value’] ?>">                 <?php echo $_country['label'] ?>             </option>         <?php endforeach; ?>     </select> <?php endif; ?>

0

Get related product in same category not use Target Rule Extension

<?php $categoryIds = Mage::registry('product')->getCategoryIds(); ?> <div class="block block-related">     <div class="block-title">         <h2><?php echo $this->__('Related Products') ?></h2>     </div>     <div class="block-content">         <p class="block-subtitle"><?php echo $this->__('Check items to add to the cart or') ?>&nbsp;             <a href="#" onclick="selectAllRelated(this); return false;"><?php  Full Article…

0

Lazy load for image products grid view

<img class="lazy" data-src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(223); ?>" src=""  width="223" height="220" /> https://github.com/luis-almeida/unveil/blob/master/jquery.unveil.min.js jQuery(document).ready(function() {         jQuery('img.lazy').unveil(); });    

0

Understanding block type in magento

core/template: This block renders a template defined by its template attribute. The majority of blocks defined in the layout are of type or subtype of core/template. page/html: This is a subtype of core/template and defines the root block. All other blocks are child blocks of this block. page/html_head: Defines the HTML head section of the  Full Article…

0

Get Product ID and Product Name in Magento

In Magento eCommerce while working with catalog model, There arise the need to fetch product details from product id. We can get all product details if we have product id. But sometimes we only have product name, so we need to get product id for getting product details. I am listing here both the method.  Full Article…

0

Getting url in .phtml files

Get Url in phtml files 1. Get Base Url :   Mage::getBaseUrl();   2. Get Skin Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);   (a) Unsecure Skin Url :   $this->getSkinUrl('images/imagename.jpg');   (b) Secure Skin Url :   $this->getSkinUrl('images/imagename.gif', array('_secure'=>true));   3. Get Media Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);   4. Get Js Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);   5. Get  Full Article…

0