Can not insert shopping cart athough name have not special character |
[eluser]misakitran[/eluser]
I use jquery for my shopping cart (tutorial on http://net.tutsplus.com), but $this->cart->insert($data) is not working. Any one help me ? IN my .js file : Code: $(".CartForm").submit(function(event) { Code: function add_to_cart()
[eluser]InsiteFX[/eluser]
You need to read the CodeIgniter Users Guide on Active Record! Look at your add_tocart() method. Not tested but should be something like below... Code: function add_to_cart()
[eluser]misakitran[/eluser]
i see but in my Model, my function return an array : Code: function get_product($id)
[eluser]InsiteFX[/eluser]
If you are only returning one record then why are you using result_array()? Use row() for only one record.
[eluser]misakitran[/eluser]
I see that. Thank you ! And..I also fixed it. Reason is price = 0 Thanks for your reply ! |
Welcome Guest, Not a member yet? Register Sign In |