All about Magento E-commerce Store.......MagentoForum: April 2011

Friday, April 29, 2011

Magento: Fatal error: Call to a member function getTable() on a non-object

Magento: Fatal error: Call to a member function getTable() on a non-object

Scenario:-

I am getting the fatal error saying:-

Fatal error: Call to a member function getTable() on a non-object in
/var/www/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php
on line 456

This error occurs when I try to browse Configurable product in frontend.
Or, when I try to add Configurable product in backend.

I am using Magento version 1.5.0.1

Cause Solution:-

In my case, the cause of this error was wrongly named file in the following
folder:-

app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Type/Configurable/Attribute/

In this folder, there was a file named Attribute.php0000644. I renamed it
to Attribute.php.

This solved my problem. Now, I am able to browse configurable product and
add such products from admin as well.

Saturday, April 2, 2011

How to manage catalog price rules

 

In case you want to manage catalog price rules you should: 

1. Enter the Magento admin panel 
2. Select the "Promotions" tab 
3. Select "Catalog Price Rules" 
4. Use the "Add New Rule" button to create a new price rule. Set rule details: 
    - the rule name 
    - enter the rule description 
    - set the rule to be active or not 
    - select the customer groups that the rule would be applied to 
    - set your rule time period 

5. Now, we can proceed to the "Conditions" page 

For examples, let's create settings for such a  situation: customers will get a 20% discount when they order goods which price is greater than $100. 

1. In the "Actions" tab we can set the discount 
2. When you are done, click the "Save Rule" button. Alternatively, click the "Save and Apply" button in case you want to start using the rule right away.

How to manage tax rates

 

In order to manage tax rates in a Magento store please do the following: 

1. Enter the Magento admin panel 
2. Select the "Sales" tab 
3. Then select the "Tax" menu item 

Here you can see the Tax menu that will allow you to manage taxes in your store. You can define customer tax classes. You can add as many customer tax classes as you need using the "Add New" button at the top. You can define product tax classes the same way as well. 

Let's add a new tax rule, use the button at the top. 

    - insert its name 
    - select the customer tax class that the rule would be applied to 
    - select your product tax classes (use the "SHIFT"  key for multiple selection) 
    - select your tax rates 
    - set the priority and sort order 

Press the "Save Rule" button when you are done. 

Also, you can manage tax zones and rates: 

    - specify the tax identifier ( the tax name) 
    - specify the country and the sate that the tax rate will be applied to 
    - set the rate 

Press the "Save Rate" button when you are done.