Debug Magento Code
For Debug we have to use Zend_Debug::dump() function. Here is Example; Zend_Debug::dump( Mage::getModel(‘Catalog/Product’) ); Share your Love
Tech Updates Simplified Easy Insights
For Debug we have to use Zend_Debug::dump() function. Here is Example; Zend_Debug::dump( Mage::getModel(‘Catalog/Product’) ); Share your Love
First, open up phpMyAdmin. Click on your database name for Magento from the sidebar on the left. Click on the SQL tab and type the following in to the text box: UPDATE `admin_user` SET `password` = MD5(‘123456’) WHERE `username` = ‘admin’; Share your Love
Step 1. Build your server sudo apt-get install openssh-server denyhosts Now make sure you are running all the latest patches by doing an update: sudo apt-get updatesudo apt-get dist-upgrade Now we’re ready to start the OpenERP install. Step 2. Create the OpenERP user that will own and run the application sudo adduser –system –home=/opt/openerp –group […]
On sitea.com, you might want to take a look at its database and the core_config_data table for the base URL. OR, you could try and execute the following query: UPDATE `core_config_data` SET `value`=’http://sitea.com/’ WHERE `value` LIKE ‘http://%’ LIMIT 2; do the same on siteb.com’s database for good measure UPDATE `core_config_data` SET `value`=’http://siteb.com/’ WHERE `value` LIKE […]
For change custom option value, you should change in to js/varient/product.js and in that page you found, reload:function() that function call at the time of on change event. Good Luck Share your Love
Here’s how you do it: In the Magento admin, navigate to “Catalog -> Manage Products” Find and click the product that you want to add tier pricing to (or create a new product). Locate the “Prices” tab on the left and click on it. Click the button that says “Add Tier.” Enter the qty you […]
Follow the code which show images of sub category in static cms page. <?php$_categories=$this->getCurrentChildCategories() ?><?php if($_categories->count()): ?><ul class=”category-links”> <?php foreach ($_categories as $_category): ?> <?php if($_category->getIsActive()): $cur_category=Mage::getModel(‘catalog/category’)->load($_category->getId()); $layer = Mage::getSingleton(‘catalog/layer’); $layer->setCurrentCategory($cur_category); //$_imageUrl = $this->getCurrentCategory()->getImageUrl(); ?> <li class=”<?php echo $this->htmlEscape($_category->getUrlKey()) ?>”> <?php if($_imageUrl = $this->getCurrentCategory()->getImageUrl()){?> <img src=”<?php echo $_imageUrl; ?>” alt=”<?php echo $this->htmlEscape($_category->getName()) ?>” /> <? […]
For showing Subcategory please put this follow those steps <?php /** * ** Instructions for Use ** * * 1. Upload this page to your installation at: * /app/design/frontend/[INTERFACE]/[THEME]/template/catalog/navigation/custom-category.phtml * * 2. Enter the following code in a static block: * {{block type=”catalog/navigation” name=”catalog.navigation” template=”catalog/navigation/custom-category.phtml”}} * * 3. Select the static block as the […]
To add up-sells Product in magento, you have to follow those steps Log in to the Magento admin Navigate to Catalog -> Manage Products Find the product to which you want to add Up-sells Select and edit this product Select the Up-sells tab From the products grid that appears, check any products you’d like to […]
Many ways we found to see error logs, here are the simple steps :1) Logg in to Admin> Configuration > Developer > Log Settings > Enabled = Yes2) Watch your var/log/system.log and var/log/exception.log for raw information from this. Share your Love