Jump to content

Loyalties and rewards: set a minimum to use


Recommended Posts

Hi,

I have a website (PS 1.6.18) that is using the native module "Loyalties and Rewards" for the customers. But I would to set - somewhere - the possibility to choice a number of points and only after that customer reached this limit can use them.

For example: customer has 249 points, but the setted minimum to use is 250... so, he can't use that points. There is a solution?... or a suggestion to override?

Thanks in advance.

Edited by fsalvaggio (see edit history)
Link to comment
Share on other sites

I found solution by myself. I sharing for community.

On themes/modules/loyalty/views/templates/front/loyalty.tpl from line 174:

 

{if $transformation_allowed && $totalPoints > 249}
<p class="text-center">
    <a class="btn btn-default" href="{$link->getModuleLink('loyalty', 'default', ['process' => 'transformpoints'], true)|escape:'html':'UTF-8'}" onclick="return confirm('{l s='Are you sure you want to transform your points into vouchers?' mod='loyalty' js=1}');">{l s='Transform my points into a voucher of' mod='loyalty'} <span class="price">{convertPrice price=$voucher}</span>.</a>
</p>
{/if}

Add at the condition the minimum amount for get the voucher.

Hope this help.

Link to comment
Share on other sites

  • 1 month later...

Thanks for sharing

I have a different problem: this module doesn't work on my shop. It displays different messages anddoes wrong calculations (see attachment).
I precise that the module is activated for all categories and subcategories.

I'm on PS 1.6.18

Loyalties & rewards version: 1.2.9.

Could you help me please?

 

loyalty2.JPG

loyalty1.JPG

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...