Entries by admin

Magento – Delete System Attribute

If you want to delete an attribute. But there is no delete option while you edit the attribute. This means that the attribute is system attribute. System attributes cannot be deleted. Only user defined attributes can be deleted. To delete the attribute, you have to make it user defined. Follow the below instructions : – […]

Magento – Show Inventory Levels on Product Pages

One of our client needed to display their actual quantity on hand inventory, rather that the normal ‘Availability-In Stock’. on product detail page. For this you need to look on this file. app/design/frontend/YOURTEMPLATE/default/template/catalog/product/view/type/default.phtml If you do not have the above in the directory then you should copy that from the base folder and put in […]

Fatal Error Declaration Of Zend Pdf FileParserDataSource File __construct in magento

If you will get this issue on magento while printing invoice pdf Fatal Error: ‘Declaration of Zend_Pdf_FileParserDatasource_File::__contruct() must be compatible with Zend_Pdf_FileParderDatasource::__construct() in /…/lib/Zend/Pdf/FileParserDataSource/File.php Then here is the simple solution. Replace abstract public function __construct(); to abstract public function __construct($filePath); in /lib/Zend/Pdf/FileParserDataSource.php

Entry with Audio

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

Display product list on home page in magento

Use below code in CMS — > Home page content area For all products {{block type=”catalog/product_list” template=”catalog/product/list.phtml”}} For New products {{block type=”catalog/product_new” name=”home.catalog.product.new” alias=”product_homepage” template=”catalog/product/new.phtml”}} All Products from one Category {{block type=”catalog/product_list” category_id=”5″ template=”catalog/product/list.phtml”}}

Entry without preview image

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

jQuery Sticky Navigation Effect

To create a sticky effect on the main navigation bar above when a user scrolls passed beyond it. Use below jquery code jQuery(function(){ var menuOffset = jQuery(‘#site-navigation’)[0].offsetTop; jQuery(document).bind(‘ready scroll’,function() { var docScroll = jQuery(document).scrollTop(); if(docScroll >= menuOffset) { jQuery(‘#site-navigation’).addClass(‘fixed’).css(‘width’,jQuery(‘#masthead’).width()); } else { jQuery(‘#site-navigation’).removeClass(‘fixed’).removeAttr(“width”); } }); }); Fairly basic jQuery code. It will add a class […]

Entry with Post Format “Video”

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

htaccess for magento in subdirectory

htaccess for magento in subdirectory Steps 1. Install Magento to /public_html/magento/ normally. Do not change Base URL during installation. 2. Copy /public_html/magento/.htaccess to /public_html/.htaccess 3. Copy /public_html/magento/index.php to /public_html/index.php 4. Edit /public_html/index.php line 32 to read: $mageFilename = ‘magento/app/Mage.php’; 5. Log into Magento Admin. Go to System > Configuration > Web 6. Under Unsecure change […]