Welcome Guest, Not a member yet? Register   Sign In
Cart and Special Characters
#1

[eluser]Felipe Deitos[/eluser]
Hi, this is an old issue, i am using the cart library, i CAN add any product without special characters, but when a product got some of those in the name i CANT add...
I already read a thousand of topics and no one seems to work.

I got a library called MY_Cart.php (I am autoloading it after the 'cart' library)

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class My_Cart extends CI_Cart {

function __construct()
{
  parent::__construct();
  $this->product_name_rules = '\d\D';
}

}
/* End */

Sorry about my english by the way because its not my native language.
Someone can help me?

Thanks!
#2

[eluser]Felipe Deitos[/eluser]
Guys, forget about it, i got it!
hehehe Newbie thing, i was putting another name in the library like SOMETHING_Cart.php instead of MY_, and i just forget to change the:
Code:
$config['subclass_prefix'] = 'SOMETHING_';




Theme © iAndrew 2016 - Forum software by © MyBB