Can I customize deposit prices?

I would like to ask a certain amount for certain services.
Not a % or a fixed price across the board.
possible?

  • Hakan
    • The Incredible Smush

    Hi,

    Yes. There is a filter "app_paypal_amount" which sets the Paypal amount (=deposit) with service, provider and user parameters.

    Here is an example which asks 10,20,30 USD (or your currency) deposit for services with ID 1,2,3 respectively. For the rest of the services your settings (either fixed or %) will be applied:

    function ask_special_deposit( $price, $service, $worker, $user) {
    switch ( $service ) {
    case 1: return 10; break;
    case 2: return 20; break;
    case 3: return 30; break;
    default: return $price;
    }
    }
    add_filter( 'app_paypal_amount', 'ask_special_deposit', 10, 4 );

    Include these in functions.php of your current theme and modify or extend as required.

    Cheers,
    Hakan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.