Welcome Guest, Not a member yet? Register   Sign In
Cart class & adding VAt @20% and delivery charges
#6

[eluser]dnc[/eluser]
Yes, I agree with weboap.

The way I would do this is

Code:
$data = array(
               'id'      => 'sku_123ABC',
               'qty'     => 1,
               'price'   => 100.00,
               'name'    => 'T-Shirt',
               'options' => array('Size' => 'L', 'Color' => 'Red', 'Vat' => '.20')
            );

$data['vat_included'] = $data['price'] * $data['options']['Vat'];


$vat_included will be the calculated tax on the items in the cart and simply find out if VAT is due and add $vat_included to the price for the total.


Messages In This Thread
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 08:06 AM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 01:07 PM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 01:41 PM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 02:06 PM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 06:37 PM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-21-2012, 07:20 PM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-22-2012, 12:26 AM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-22-2012, 01:31 AM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-22-2012, 02:25 AM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-22-2012, 02:44 AM
Cart class & adding VAt @20% and delivery charges - by El Forum - 05-22-2012, 02:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB