CI Cart Problem |
[eluser]tkaw220[/eluser]
Hi, I have created a shopping cart using CI cart library. It is working as expected. But there is a catch, if my product name has the letter ' ie. Let's Learn ..., the CI cart insert function never insert it into session. If I removed the letter ' ie. Lets Learn ..., it works again. Anyone come across with this problem? How to fix it? Billion thanks. Best regards, Edwin
[eluser]ramm[/eluser]
I did. I found this somewhere and it worked fine for me: Code: $this->cart->product_name_rules = '[:print:]'; I put that in the controller right before insert data to the cart.
[eluser]tkaw220[/eluser]
Dear ramm, Thank you for the valuable solution. I dig into Google and found some useful resources which I think CI should alert developers about naming rules in user guide. I did not put $this->cart->product_name_rules = '[:print:]'; before my insert code, instead I create a MY_Cart.php inside library folder to overwrite the default naming rules which is advisable in some of the forums I found. Below please find some post describe this issue in further details: 1) http://stackoverflow.com/questions/38017...-in-the-na 2) http://ellislab.com/forums/viewthread/135112/ |
Welcome Guest, Not a member yet? Register Sign In |