Magento Themes and Magento Extensions

Magento Zip+4 Tax Calculation During Checkout – Solution Restrict Length to 5 Digits

Posted on February 23rd, 2013 | Posted by admin

There is a bug in Magento that prevents Zip+4 tax codes from accurately being calculated. If a customer enters their zip code during Magento checkout in the Zip+4 format (XXXXX-XXXX) or makes a typo during entry, i.e. includes an extra or non-digit character, any applicable taxes are not calculated by Magento. This causes headaches for orders where tax should have been collected: following up with customers, running additional charges, and keeping track of these manual tax collections is an inconvenience for business owners and customers alike.

Since the solution to this problem is not well-documented by the Magento community, we have posted it below for others to refer to. Plus note that the instructions are for Magento 1.7.x (see the bottom of the post for info about applying this fix in Magento 1.4.x):

Get product review info (independent) of review page

Posted on February 21st, 2013 | Posted by admin

Here at Inchoo, we are working on a private project, that should see daylight any time soon. One of the requirements we had is to show product review info on pages independent of product review page. Let’s say you wish to show review info on home page for some of the products. After few weeks with working with Magento, one learns how to use the model stuff directly from view files. Although this might not be the “right” way, it’s most definitely the fastest way (and I doubt most of your clients would prefer any other  , especially if it’s some minor modification).

Here is a code to retrieve the product review info:

Just be sure to pass it the right product id number.

Create Magento order invoice programmatically

Posted on February 14th, 2013 | Posted by admin

Create Magento order invoice programmatically
Here is a quick and easy way to create order invoice programmatically.

Suppose, $_order contains your order.

Here goes the code to create invoice:-

Mage registry key “_singleton/core/resource” already exists

Posted on February 13th, 2013 | Posted by admin

Mage registry key “_singleton/core/resource” already exists : is a very common problem during magento update and due to this issues many time we are getting the erros in the page “There has been an error processing your request” . In my case i found the issue is due to cache so what i did i cleaned my cache every time through index.php  of magento .

i found two solution of this problem

Solution One :

Try to add this code in index.php line , this code will delete the cache every time .

Magento – how to count all products with php – Magento product collection model?

Posted on February 9th, 2013 | Posted by admin

Magento – how to count all products with php – Magento product collection model?

You wonder how many products you have in your store and want to count them trough PHP code? It’s easy, add following code to test.php (create in root folder):

  1. require_once ’app/Mage.php’; Mage::run();
  2. echo Mage::getResourceModel(‘catalog/product_collection’)->count(); // count all products
  3. echo Mage::getResourceModel(‘catalog/product_collection’)->addCategoryFilter(Mage::getModel(‘catalog/category’)->load(113))->count();
Page 11 of 55« First...«910111213»203040...Last »