Welcome Guest, Not a member yet? Register   Sign In
Why carts library doesnt support polish dialectic signs???
#3

[eluser]Isern Palaus[/eluser]
If you look on Cart.php you will see on line 31 var $product_name_rules = '\.\:\-_ a-z0-9';.

A nice way to change this variable is putting a MY_Cart.php on your application\libraries\MY_Cart.php with this code:

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    
    class MY_Cart extends CI_Cart {
    
        var $product_name_rules    = '[:print:]';
    
    }

Or you can also modify it when you add the product, using:

Code:
$this->cart->product_name_rules = '[:print:]';
    $this->cart->insert(array());

This should work! :-)


Messages In This Thread
Why carts library doesnt support polish dialectic signs??? - by El Forum - 02-01-2011, 03:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB