Entries by admin

Top navigation as submenu in magento

If you would like to show your magento store categories like as in picture then you are on right place. Replace this code in topmenu.phtml <?php $_menu = $this->getHtml(‘level-top’) ?> <?php if($_menu): ?> <div class=”nav-container”> <ul id=”nav”> <?php echo $_menu ?> </ul> </div> <?php endif; ?> with below <?php $_menu = $this->getHtml(0,’level-top’) ?> <?php if($_menu): […]

X-cart Database Backup/Restore HTTP 500 Error

If you are getting Database Backup/Restore HTTP 500 Error then check your error logs – /var/log If you will see following entry [06-Mar-2013 02:52:09 America/Denver] PHP Fatal error: Call to undefined function func_xpc_check_iframe_methods() in /var/www/vhosts/yoursitefoldername/httpdocs/modules/XPayments_Connector/config.php on line 57 then you can try to activate the x-payment module without configuring and see if all works. It […]

Show more than 5 “New Products” to the home page in magento

We have two methods for doing this. The first one is below Go to CMS –> Pages –> Home page in admin section and click Design section and then upadte Layout XML code with below <block type=”catalog/product_new” name=”home.catalog.product.new” alias=”product_new” template=”catalog/product/new.phtml” after=”cms_page”> <action method=”addPriceBlockType”> <type>bundle</type> <block>bundle/catalog_product_price</block> <template>bundle/catalog/product/price.phtml</template> </action> <action method=”setProductsCount”><count>12</count></action> </block> This shows a maximum of […]

Setting page titles and meta tags in cakephp 2.0

Today I needed to have page titles and meta tags correctly setup for each page in a website i had often used methods like placing variables and setting them to the template in the app controller in a beforeFilter. Then if i needed a different meta tag on another page like contact for example i […]

Login issue with admin, user and unable to register in oscommerce

Recently we have an issue with oscommerce. We were developing an oscommerce site and everything was working fine in our test server. But when we moved to the production server provided by the client it stops working. The issue was we couldn’t login as admin. Every time we logged in with correct parameters it was […]

How to Increase PHP’s File Upload Limit Using php.ini

The file upload size limit 2M(Approx) is set by shared hosting providers. They have set it low because it save bandwidth, keep the server moving quickly. But customers really need a large upload limit? So we must increase the file upload size limit. We can do it by 4 way : 1- By adding below […]

Quick Setup Guide To Run CakePHP 2.0 On Windows 7

In this tutorial, I will show you, how to set and run the CakePHP 2.0 framework on Windows 7. For those who have not heard of CakePHP before, it is an open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed […]