Set product tax in Magento observer

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
babyskill
Forum Newbie
Posts: 7
Joined: Tue Jan 19, 2010 10:07 am

Set product tax in Magento observer

Post by babyskill »

I'm using sales_quote_add_item and I'd like to change the tax class of a product.

I tried $product->setTaxClassId() method but this didn't work.

Any other approaches available?
Post Reply