View Single Post
  #3  
Old 07-01-2014, 06:55 AM
 
Deepvas Deepvas is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 6
 

Default Re: Add column to order

Thanks for the reply!

On checkout I wanted a customer to say they would like a Tax free order yes, but only do the tax deduction to certain products which admin have flagged as VatFreeAvailable(or possibly have certain attribute or class?).

The approach I was going to take was decorate the product and order models like so:

Product with $vatReliefable;
Order with $agreeToVatRelief;

Then possibly override the XLite\Module\CDev\VAT\Logic\Order\Modifier\Tax Calculate method. To say something like:

PHP Code:
if ($item->vatReliefable && $order->agreeToVatRelief)
{
     
//Don't add tax and take away tax % from price


Then add a checkbox on the checkout which changes agreeToVatRelief to true/false and reloads the page.

Any input on if this is a viable/good idea, would be great!
Ill get back to you on my log files.

Thanks.
__________________
Deepvas
X Cart Gold
Version 4.1.9
AOM
DSEFU
Reply With Quote