⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

CodeIgniter cart problem



xxaxxo
  • profile picture
  • Member

Posted 11 July 2012 - 06:28 AM

Have you guys encountered it and how do you deal with it. Basically CI dev's have hardcoded the added product names to be only latin and the cart doesn't work with cyrillic or special chars and some people say that day have problems with utf8 encoded chars, you can use a hack for the product rules in order to permit cirillyc chars
$this->cart->product_name_rules .="_-а-яА-Я ";

but i have encountered a different problem which is the cart randomly doesn't work for like 5% of the visitors. You can't add anything at all. Some writeups on internet suggest to use
$this->cart->product_name_rules .="Dd";

but the major problem that i have is that the bug can't be reprodused in order to see if I have fixed it. I encountered the bug in one of my pc's but the next day everything was working fine, without changing the code.

noskov.biz
  • profile picture
  • Member

Posted 20 October 2012 - 22:47 PM

Hi, xxaxxo!
I don't know whether it is still actually for you. Whatever, I just accidentally found this post (not very fresh and it is in Russian but...). At first sight it is nearly the problem that you have described. I didn't try that solution and don't know if it works well or not. I just want to inform you.

Cheers!

xxaxxo
  • profile picture
  • Member

Posted 21 October 2012 - 05:23 AM

10x, i've found a solution (i think) to the session regeneration on random browsers. I've fixed the cookie domain path and i've set the session to expire - never ... $config[session_expire] = "0"; and this seems to have taken care of the problem.