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

[eluser]weboap[/eluser]
from :
http://ellislab.com/codeigniter/user-gui.../cart.html

you can use the options array. to have something like 'vat'=> 20

then generating the invoice you can use that value, you store it to with the sell, that way in the future if the vat change your old orders doesn't mess up ...


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

$this->cart->insert($data);


[quote]
....The fifth index (options) is optional. It is intended to be used in cases where your product has options associated with it. Use an array for options, as shown above....
[quote]


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