Welcome Guest, Not a member yet? Register   Sign In
shopping cart not adding items who has special char
#1

[eluser]umefarooq[/eluser]
Hi, i'm facing a problem with shopping cart library its not adding items in the cart who has some char like /,- in their name, how can i save these items in my cart because i'm using item name for half (1/2) and for another item 1/4 anybody can help me
#2

[eluser]InsiteFX[/eluser]
You could try to escape them, ('1//2') and ('/-')

InsiteFX
#3

[eluser]WanWizard[/eluser]
Have you searched for it, this has been discussed several times?

The Cart library contains internal validation rules based on a regex, which unfortunately are (still) not documented. And afaik a regex failure doesn't generate an error message.

Look at the code which one you need, they are defined at the top of the class. Modify then after you've loaded the class, of extend it. I suggest you do not alter the core code.
#4

[eluser]umefarooq[/eluser]
here i found the solution but i am not good with regular expression can anybody give me proper regular expression for this

http://ellislab.com/forums/viewthread/186579/




Theme © iAndrew 2016 - Forum software by © MyBB