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

[eluser]weboap[/eluser]
i suggested to add an option to the item before inserting it to the cart and apply the vat at the checkout, after you pull the list of products in the cart doing the calc, with the ( $items['price'] * option_value/100 ) option_value will be the 20. then adding that to the subtotal $items['subtotal'], but yes that won't work somewhere there with too many items in the cart or want to calculate 1 value at the end of the invoice, another way will be to calculate 20% based on the $this->cart->total().


hope it help.


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