WPPizza – Rewards

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #55982
    johanfmp
    Participant

      Since there is no specific topic for this plugin I’ll just ask here.
      Is it possible to set rewards for each type of gateway? We want to encourage our customer to pay on-line and so give them a higher reward if they do.

      #56002
      johanfmp
      Participant

        We also want to be able to make a difference between customers who pay in the shop at pickup and those who pay on-line because the customers who pay in the shop benefit of a different kind of reward. So if there’s a difference we can set in this plugin it would be awesome.
        How I see this would be like having an overvieuw in the backend for this plugin of the active gateways with 2 options for each: activate yes/no and the reward amount.

        #56016
        Olly
        Admin & Mod

          >Since there is no specific topic for this plugin I’ll just ask here.
          that’s fine (and the right place anyway)

          >Is it possible to set rewards for each type of gateway
          at the current time: no, sorry. and there are currently no plans to implement this in the foreseeable future (not unless this is going to be requested many times)

          >We also want to be able to make a difference between customers who pay in the shop at pickup and those who pay on-line
          you could set discounts/surcharges for each gateway if you wanted, but there is nothing regarding different kind of rewards for different payment methods (see above)

          thanks

          #56019
          johanfmp
          Participant

            Olly,
            Ok, I found that we can set a discount/surcharge for a gateway.
            But the problem we’re having is that for the Mollie gateway we can only input a surcharge and for cash payments we can set a discount. Is it possible to have also the option with the Mollie gateway to set a discount? This way we can encourage people to pay on-line instead of paying cash at pickup/delivery.
            I tried also putting in a negative value for the Mollie surcharge but that doesn’t work.

            #56094
            Olly
            Admin & Mod

              sorry, for the somewhat late reply.

              in any event, the only way you can give a discount for payment gateways that are prepay (i.e credit card payments etc)
              is by filtering and forcing discounts (i assume here you know how WordPress filters work, else have a look here https://docs.wp-pizza.com/developers/?section=filters-actions-functions)

              something like the following.

              
              add_filter('wppizza_filter_gateway_objects', 'myprefix_myfunctionname');
              function myprefix_myfunctionname($obj){
              /* 5 EUR/USD/whatever discount */
              $obj->MOLLIE->discounts['fixed'] = 5;
              /* and or for 5 percent instead */
              $obj->MOLLIE->discounts['percent'] = 5;
              return $obj;
              }
              

              as always , use at your own risk . if you discount for credit card payments you may end up your credit card fee being more than your profit margin on a sale depending on how you set things up if you do the above

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘WPPizza – Rewards’ is closed to new replies.