Jump to content
Gowtham

How to allow only one voucher per order

Recommended Posts

Hi Friends,

 

I have a problem in my store. I added 100 different vouchers which is valid for one user. But the users started combining the vouchers which old vouchers and i face a critical situation as it will make loss for my side. I tried changing all vouchers to uncombined while creating a voucher. But is there a default way that i can have all the vouchers as uncombined in default? Basically I don't want my Customers to use more than one Voucher in a single Order.

 

Thanks in Advance,

 

Gowtham.

Share this post


Link to post
Share on other sites

you can do it with one easy sql query now:

 

update ps_cart_rule set cart_rule_restriction=1

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Vekia,

 

But the values are already set to 1 in my DB. Is there some other method, i can do this ??

 

Thanks,

Gowtham

Share this post


Link to post
Share on other sites

hello,

 

all of them (vouchers) in database have got "1" value for cart_rule_restriction ?

if so, can you check please ps_cart_rule_product_rule_value table?

this table should be empty

Share this post


Link to post
Share on other sites

Yes, All the vouchers has got 1 value for cart rule restriction and the ps_cart_rule_product_rule_value is empty.

 

 

thanks,

Gowtham

Share this post


Link to post
Share on other sites

I'm confused how to do that and please anyone help to slove this step by step.

 

Do i need to change this whole code   SELECT * FROM `ps_cart_rule` WHERE 1

or i need to update values in table list.

 

please anyone explane this in video or step by step.

 

Thanks for support

Edited by subwayside (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Another problem is, that all vouchers created by Loyalty module are combinable.. So I can manually disable combination, but when customer transform loyalty points to voucher, this voucher is combinable! Best solution would be disable ALL combinations and allow only one voucher per order.

 

Any solution??

Share this post


Link to post
Share on other sites

in this case it's necessary to alter module .php code, 

 

open file: modules/loyalty/controllers/front/default.php

 

and change code:

$cart_rule->add();

to:

$cart_ruke->cart_rule_restriction=1;
$cart_rule->add();

after that all coupons generated with loylaty module will be uncombinable with other coupons.

  • Like 2

Share this post


Link to post
Share on other sites

in this case it's necessary to alter module .php code, 

 

open file: modules/loyalty/controllers/front/default.php

 

and change code:

$cart_rule->add();

to:

$cart_ruke->cart_rule_restriction=1;
$cart_rule->add();

after that all coupons generated with loylaty module will be uncombinable with other coupons.

 

thank about it!. And how should be with referral program?

Share this post


Link to post
Share on other sites

Hi Subwayside,

 

follow this , go to admin panel and navigate to PRICE RULE->Cart Rules . open your voucher settings page, then "actions" tab

 

click in 'Compatibility with other cart rules' checkbox, and remove cart rule from 'Combinable cart rules'  then Save the changes

 

I think this will help to solve your problems

Edited by vijaykryadav24 (see edit history)

Share this post


Link to post
Share on other sites

HI,

I am using Prestashop 1.7.2.2. And want to select all cart rule in an Uncombinable select box instead of a combinable select box while adding new cart rule. 

Is it possible to do so?

I changed in prestashop/admin928iq35ay/themes/default/template/controllers/cart_rules/form.tpl line number 482 & 483

$('#cart_rule_select_1').jscroll().data('jscrollapi').load_scroll(baseHref+'&type=unselected&search=');
$('#cart_rule_select_2').jscroll().data('jscrollapi').load_scroll(baseHref+'&type=selected&search=');

to 

$('#cart_rule_select_1').jscroll().data('jscrollapi').load_scroll(baseHref+'&type=selected&search=');
$('#cart_rule_select_2').jscroll().data('jscrollapi').load_scroll(baseHref+'&type=unselected&search=');

 

It select all cart rule in an Uncombinable select box. But, after saving it will in a Combinable box.

Share this post


Link to post
Share on other sites

Voucher is great to attract new customer and give something back for your old loyal customer. But, the problem is arise when you create multiple vouchers and your customer could use more than one vouchers in the same time. SuperbEssays has a loyal voucher system.

Share this post


Link to post
Share on other sites

There are many companies where you easily change your voucher. So you do not need to worry about it. As well as you do not worry about the procedure on how to write a synopsis for a case study. There are experts online who can assist you with it without your participation. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More