Jump to content

Loyalty Program per Customer Group


Matteh

Recommended Posts

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

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

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

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;

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 9 months later...

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