Jump to content

how can i disable voucher Description or make not required


Recommended Posts

can some advanced person help me .

 

I need to disabe description for voucher section, reason is . i have imported 8000 groupon coupon but it didnt import descripton part.

 

when users insert coupon codes . error msg appears there is no name. description .

 

please can some one tell me the way to disable or make it not required..

 

Thanks

Link to comment
Share on other sites

Do a mass sql update to correct your missing name coupons.

 

something like runing the script generated by this query:

select concat(
'insert into ps_discount_lang (id_discount, id_lang, description) values (',
  d.id_discount, ',',
  l.id_lang, ',',
  quote("\'discount\'"),
');'
 ) as script
from ps_discount d
inner join ps_lang l
left join ps_discount_lang dl on dl.id_discount = d.id_discount and dl.id_lang = l.id_lang
where dl.id_lang is null

 

BTW, you can replace quote("\'discount\'") in the query with whatever you like.

 

Best,

(d)oekia

 

PS: I think this topic should be moved to "Give a hand to PrestaShop"

Link to comment
Share on other sites

Voucher name is invalid is a totally different problem.

 

In Prestashop voucher name should start by a letter, be at leat 3 characters and should not contain any of the following characters:

!<>,;?=+()@#"�{}_$%:

I think also that voucher are case incensitive ie: no 2 voucher can exists like "VOUCHER" & "voucher"

Link to comment
Share on other sites

Okey fine, but now also i get - failed login ..

 

I mean user can register and login, when they logout and try to log in again it says .. There is error: autheration failed

 

Someting not updating the database.

 

please some one help

Link to comment
Share on other sites

Hum, it seems you have more than one problem here and not all of them are related to vouchers.

 

Regarding authentication failure, double check that login failure is not related to cookie domain.

Which version of PS are you running? On 1.4, set your canonical to match your fqdn with www. Prior 1.4 the best is to provide an htaccess redirection when browsers hit the non-canonical. Close *all* browser window to your site, clear your cookies - check

 

Could you PM me your BO url and provide me an access to your BO?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...