A mod to set maximum reward points per checkout
5 posts
• Page 1 of 1
A mod to set maximum reward points per checkout
I've searched around for an extension that allows me to set the maximum reward points usable for each purchase, but have not found any. My store is already using OC's default reward point system version 1.5.2.1.
Hopefully this is a small job for someone. I'm willing to pay, let me know if you are interested and PM me a quote. Or if anyone knows how I can get this done with just some code changes, I'd really appreciate your help.
Hopefully this is a small job for someone. I'm willing to pay, let me know if you are interested and PM me a quote. Or if anyone knows how I can get this done with just some code changes, I'd really appreciate your help.
- yarac
- Posts: 26
- Joined: Thu Apr 12, 2012 4:24 am
Re: A mod to set maximum reward points per checkout
Hey,
Happy to do this for you - you're looking at about $30USD - PM if you are interested. It would by having an option in the Settings where you can specify the max. reward points that can be used per order.
I'm happy to develop the extension and install it on a server of mine for you to view and test before making payment.
Regards
Happy to do this for you - you're looking at about $30USD - PM if you are interested. It would by having an option in the Settings where you can specify the max. reward points that can be used per order.
I'm happy to develop the extension and install it on a server of mine for you to view and test before making payment.
Regards
- WebEngage
- Posts: 16
- Joined: Mon Jun 04, 2012 1:18 pm
Re: A mod to set maximum reward points per checkout
yarac wrote:I've searched around for an extension that allows me to set the maximum reward points usable for each purchase, but have not found any. My store is already using OC's default reward point system version 1.5.2.1.
Hopefully this is a small job for someone. I'm willing to pay, let me know if you are interested and PM me a quote. Or if anyone knows how I can get this done with just some code changes, I'd really appreciate your help.
Open up catalog/controller/cart.php
find
- Code: Select all
if ($this->request->post['reward'] > $points_total) {
$this->error['warning'] = sprintf($this->language->get('error_maximum'), $points_total);
}
below it add
- Code: Select all
if ($this->request->post['reward'] > 10) {
$this->error['warning'] = $this->language->get('error_reward_points');
}
open up catalog/language/english/cart/cart.php
find
- Code: Select all
$_['error_reward'] = 'Warning: Please enter the amount of reward points to use!';
below it add
- Code: Select all
$_['error_reward_points'] = 'Warning: You cannot use more than 10 reward points!';
There you go. No need for $300. A coffee for me would be good enough

-

MarketInSG - Posts: 2612
- Joined: Wed Nov 16, 2011 3:53 am
- Location: Singapore
Re: A mod to set maximum reward points per checkout
change the '10' to a number you wish to set it as.
-

MarketInSG - Posts: 2612
- Joined: Wed Nov 16, 2011 3:53 am
- Location: Singapore
Re: A mod to set maximum reward points per checkout
The above does the job, but the $30USD would make it a vqmod/extension, and allow the user to set the "Reward limit" in the admin section (as opposed to having to set it in code).
The above quick fix is sufficient if what I mentioned is not required.
Regards
The above quick fix is sufficient if what I mentioned is not required.
Regards
- WebEngage
- Posts: 16
- Joined: Mon Jun 04, 2012 1:18 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests














