Welcome Guest, Not a member yet? Register   Sign In
A question about CI cart
#4

[eluser]theprodigy[/eluser]
I think the best way to handle that is to create a MY_Cart and extend CI_Cart. You don't want to change what the insert function returns. Right now it is return true/false. So, if you look at the file I have attached, you will see that I am setting a class level variable, and then created a public getter function to get the value of the variable. I haven't tried it yet, but this should at least give you a good starting point.


Messages In This Thread
A question about CI cart - by El Forum - 09-28-2010, 08:35 AM
A question about CI cart - by El Forum - 09-28-2010, 08:56 AM
A question about CI cart - by El Forum - 09-28-2010, 09:04 AM
A question about CI cart - by El Forum - 09-28-2010, 11:15 AM
A question about CI cart - by El Forum - 09-29-2010, 01:40 AM
A question about CI cart - by El Forum - 09-29-2010, 02:18 AM
A question about CI cart - by El Forum - 09-29-2010, 09:04 AM
A question about CI cart - by El Forum - 09-29-2010, 10:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB