Minimum Order Amount

Posted in

Hello!

Loving the plugin so far but I have a question about the commission amount. The documentation> suggests that it’s possible to calculate the commission using and “algorithm” but gives no further explanation.

The goal is to give a flat $10 commission for orders that are $25 or more. Is there any way to set a minimum order total? This seemed pretty straightforward in the documentation and it’s critical to our use of the plugin.

8 Responses to Minimum Order Amount

  1. George May 12, 2016 at 9:41 am #

    Hi Justin,

    Please delete the plugin you have now and install the one i sent you by mail at: justin at digitalrelativity dot com.
    It should be ok now.

    Cheers

  2. George May 11, 2016 at 3:52 pm #

    Please try with a value that is greater than 0, i.e. 1 or 2 and definitely without decimals for the sale total. That is happening because the check is performed against 0.

    Cheers

    • Justin May 11, 2016 at 5:00 pm #

      Thanks, George. I adjusted the amount to 1 and placed an order for over $1, but it still doesn’t not appear to be working – http://screencast.com/t/4q8hQKbx

  3. George May 11, 2016 at 3:16 pm #

    Hi Justin,

    I forgot to mention that the zip file should be installed and activated. Also, the minimum method should be chosen under Affiliates>Settings>Commissions.

    Kind regards,
    George

  4. George May 11, 2016 at 1:20 pm #

    Hi Justin,

    The algorithm gets the product amount and if not set gets the default rate.

    For your case, you can use another custom method Affiliates Custom Method Minimum, which gives you the ability to grant different flat amount commissions, according to the sale amount.
    Please visit the link i mentioned above, download the zip file and make some modifications. On line 16 of affiliates-custom-method-minimum file, edit the values of the array and change ‘1000’ to ’25’ and 50 to 10. Also, if you like delete the other two lines ( 18 and 19 ).
    The code then should look like this:

    public static $amounts = array(
    '25' => 10
    );

    If you need any further assistance on how to edit the code, please ask me here.

    Kind regards,
    George

    • Justin May 11, 2016 at 1:35 pm #

      Thanks, George!

      I see that option in the commission rate list now. I adjusted the amounts and placed an order but it doesn’t appear to have processed. The cookie is there and the order meets the minimum amount (.1 for the time being, to test) – http://screencast.com/t/OumWzGwuUyBw

      Do the referrals take a while to appear?

  5. Justin May 11, 2016 at 1:09 pm #

    Reviewing the documentation, I believe I see the API for this. Is this the correct syntax? http://pastie.org/private/3nahbsmtsnjohtozitkpw

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share