Community Forums

A mod to set maximum reward points per checkout

If you require some commercial work and are will to pay then you can post your job requests here.
(No Selling Contributions)

A mod to set maximum reward points per checkout

Postby yarac » Sun Jun 10, 2012 7:07 am

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.
yarac
 
Posts: 26
Joined: Thu Apr 12, 2012 4:24 am

Re: A mod to set maximum reward points per checkout

Postby WebEngage » Sun Jun 10, 2012 7:32 am

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
WebEngage
 
Posts: 16
Joined: Mon Jun 04, 2012 1:18 pm

Re: A mod to set maximum reward points per checkout

Postby MarketInSG » Sun Jun 10, 2012 12:22 pm

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 8)
User avatar
MarketInSG
 
Posts: 2600
Joined: Wed Nov 16, 2011 3:53 am
Location: Singapore

Re: A mod to set maximum reward points per checkout

Postby MarketInSG » Sun Jun 10, 2012 12:23 pm

change the '10' to a number you wish to set it as.
User avatar
MarketInSG
 
Posts: 2600
Joined: Wed Nov 16, 2011 3:53 am
Location: Singapore

Re: A mod to set maximum reward points per checkout

Postby WebEngage » Sun Jun 10, 2012 12:43 pm

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
WebEngage
 
Posts: 16
Joined: Mon Jun 04, 2012 1:18 pm


Return to Commercial Support

Who is online

Users browsing this forum: rmaramos, Websiteinc and 7 guests

Hosted by Arvixe Web Hosting