Matteh Posted January 12, 2012 Share Posted January 12, 2012 Is it possible to have different amounts of loyalty points for each customer group? The easiest solution I see would be to add a small piece of code to the function that caclulates the total points which states if group = x then multiply points by y but I'm not entirely sure how to go about this. Any help you can provide would be great. Thanks Link to comment Share on other sites More sharing options...
Nikpro Posted January 13, 2012 Share Posted January 13, 2012 Tell me about you idea - interestin Link to comment Share on other sites More sharing options...
Matteh Posted January 13, 2012 Author Share Posted January 13, 2012 Basically we want membership levels. Bronze (No requirement) Receive 2p per £1 spent in reward points Silver (Spend atleast £100) Receive 3p per £1 spent in reward points Gold (Spend atleast £250) Receive 4p per £1 spent in reward points Platinum (Spend atleast £500) Receive 5p per £1 spent in reward points So once a customer spends the amount shown above they will be moved into a different customer group which gives them more reward points. Link to comment Share on other sites More sharing options...
Nikpro Posted January 13, 2012 Share Posted January 13, 2012 Basically we want membership levels. Bronze (No requirement) Receive 2p per £1 spent in reward points Silver (Spend atleast £100) Receive 3p per £1 spent in reward points Gold (Spend atleast £250) Receive 4p per £1 spent in reward points Platinum (Spend atleast £500) Receive 5p per £1 spent in reward points So once a customer spends the amount shown above they will be moved into a different customer group which gives them more reward points. I've seen something similar. The Korean sites. I think the new version implements but not on the level. 1. I would like to raise a minimum monetary limit for the activation of the voucher. in Korea using 4 groups - depending on where the group chooses a 2.5% discount gifts + 7 maximum on points that limit the amount. Also on these scores have specialized Link to comment Share on other sites More sharing options...
Matteh Posted January 17, 2012 Author Share Posted January 17, 2012 I've come up with a solution as shown in the code below but I'm getting an error. I'm receiving the error on voucher generation "Fatal error: Call to a member function isMemberOfGroup() on a non-object in /home/eposgea2/public_html/modules/loyalty/loyalty-program.php on line 60" Which suggests to me I need to add the IsMemberOfGroup function to the loyalty-points.php file but I'm not sure how to do that. Could anyone explain how I'd do this? The tabbed in code is the part I added. /* Voucher creation and affectation to the customer */ $voucher = new Discount(); $voucher->name = $voucherCode; $voucher->id_discount_type = 2; // Discount on order (amount) $voucher->id_customer = (int)($cookie->id_customer); $voucher->id_currency = (int)($cookie->id_currency); if ($id_customer->isMemberOfGroup(1)) { $voucher->value = LoyaltyModule::getVoucherValue((int)$customerPoints); }; if ($id_customer->isMemberOfGroup(2)) { $voucher->value = LoyaltyModule::getVoucherValue((int)$customerPoints * 2); }; $voucher->quantity = 1; $voucher->quantity_per_user = 1; $voucher->cumulable = 1; $voucher->cumulable_reduction = 1; 1 Link to comment Share on other sites More sharing options...
Matteh Posted January 17, 2012 Author Share Posted January 17, 2012 I also tried if($cookie->id_customer->isMemberOfGroup(1)) Rather than just id_customer Not sure which is the right way as both still give that same error Link to comment Share on other sites More sharing options...
Yann - Prestaplugins Posted January 26, 2012 Share Posted January 26, 2012 Interesting, i will think about adding it to my new module : All-in-one Rewards Link to comment Share on other sites More sharing options...
Romeo.Tran Posted February 7, 2012 Share Posted February 7, 2012 Please try to view my rewards module: http://landofcoder.com/prestashop/lof-reward.html Link to comment Share on other sites More sharing options...
tagNpin Posted November 14, 2012 Share Posted November 14, 2012 tagNpin launches Prestashop extension of it completely self serve social loyalty platform http://bit.ly/T2W1QT . It also generates fb loyalty app on the go. 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