Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Set deault tax class for products
 
Rahul6473
Jr. Member
 
Total Posts:  3
Joined:  2012-09-04
 

Hi Everyone,

We want to add default Tax class for each product. I mean we don\\\\\\\’t want to select tax class for each product manually like Shipping/Taxable.

We are using Magento ver. 1.4.1.1

Please suggest is there any way of achieving this.

Cheers,

Rahul

 
Magento Community Magento Community
Magento Community
Magento Community
 
gvor
Jr. Member
 
Total Posts:  7
Joined:  2012-09-25
 
Rahul6473 - 26 September 2012 06:08 PM

Hi Everyone,

We want to add default Tax class for each product. I mean we don\\\\\\\’t want to select tax class for each product manually like Shipping/Taxable.

We are using Magento ver. 1.4.1.1

Please suggest is there any way of achieving this.

Cheers,

Rahul

I am using Magento 1.7 and I just found out after a few hours how to set default values. Don’t know if this works in 1.4

I have created an

Observer.php
for the
catalog_product_new_action
event

<?php
class Starmall_Productobserver_Model_Observer
{

            
public function initProduct(Varien_Event_Observer $observer)
            
{
                            $product 
$observer->getEvent()->getProduct();
                
$product->setWeight(1);
                
$product->setStatus(1);
                
$product->setTaxClassId(1);
            
}
}

When I now create a new product the weight, status and tax class are now set to my preferred defaults.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top