• Resolved ivanll

    (@ivanll)


    First, thanks so much for this app. We are very excited to utilize Postmates delivery fleet for our restaurant.

    I’d like to pay for a portion of my customer’s delivery fee to help reduce the overall fee but still pass on a portion to them.

    I see I can set a Flat Rate to customers but I’d like to set a Flat Rate for myself (the company) and then let the customer pay the rest. For example, I could afford to pay $3 for the delivery fee for a typical order. So if Postmates quotes delivery for $10, I’d like the customer to only be charged $7 and we would pay Postmates $3.

    Is there any way to make this work?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Agli Pan?i

    (@aglipanci)

    @ivanll I am glad you like the plugin.

    Regarding your question, I am afraid that functionality is not possible with the current version. What I can do for you is to add a WordPress filter on the shipping cost so you (or your development team) can modify the shipping cost charged to the customer programmatically and implement any logic that you want.

    If that helps I can do that and release sometime next week.

    Thread Starter ivanll

    (@ivanll)

    That might be nice! Really just need a simple way to input a flat fee that the business would compensate for delivery.

    Plugin Author Agli Pan?i

    (@aglipanci)

    @ivanll I have added the support to modify the delivery fee on the fly. Here is an example:

    
    add_filter('postmates_shipping_cost', function ($shipping_cost) {
        // if the shipping cost is greater than $7, reduce the delivery by $3
        if ($shipping_cost > 7) {
            // a part of the shipping is going to be charged to the customer
            // in this case $3.
            $shipping_cost = $shipping_cost - 3;
        }
      
        // the returned amount should be formatted.
        return number_format($shipping_cost, 2, '.', ' ');
    });
    
    Thread Starter ivanll

    (@ivanll)

    Oh wow! Awesome! Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pay for portion of customer delivery fee’ is closed to new replies.