Jump to content


CodeIgniter cart problem


  • Please log in to reply
2 replies to this topic

#1 xxaxxo

xxaxxo

    grocery CRUD Expert

  • Members
  • PipPipPip
  • 71 posts
  • LocationBulgaria

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.

#2 noskov

noskov

    grocery CRUD Guru

  • Advanced Member
  • PipPipPip
  • 175 posts
  • LocationKiev

Posted 20 October 2012 - 10: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!

#3 xxaxxo

xxaxxo

    grocery CRUD Expert

  • Members
  • PipPipPip
  • 71 posts
  • LocationBulgaria

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users