fsalvaggio Posted February 20, 2018 Share Posted February 20, 2018 (edited) 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 February 20, 2018 by fsalvaggio (see edit history) Link to comment Share on other sites More sharing options...
fsalvaggio Posted February 21, 2018 Author Share Posted February 21, 2018 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 More sharing options...
moishakeys Posted April 8, 2018 Share Posted April 8, 2018 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now