CodeIgniter Forums
Cart discount library example - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forum-11.html)
+--- Thread: Cart discount library example (/thread-67641.html)



Cart discount library example - sams.arifin - 03-19-2017

Hi, 

i have been using codeigniter cart for handling online shop site. I store multiple item into the cart. But i have a problem when the item has discount to reduce the amount total of the cart. I have no idea how to do it if the discount stored in database. The discount my consist of percentage and decimal value. May someone please help me the algorithm or the code  example to handle the discount cart.

Thanks


RE: Cart discount library example - ciadmin - 03-19-2017

The Cart library has been deprecated, and will be removed in the next version of CodeIgniter. I suggest finding an alternate.


RE: Cart discount library example - sams.arifin - 03-19-2017

It will be replaced by another cart library or it will be removed permanently?


RE: Cart discount library example - ciadmin - 03-19-2017

It is being permanently removed. There are better open source alternatives.


RE: Cart discount library example - sams.arifin - 03-19-2017

well, can you please inform me the open source name? i would like to try.


RE: Cart discount library example - InsiteFX - 03-19-2017

There are too many open source cart libraries to mention here do a search with google.