free order settings marketpress

marketpress free oder settings.
what is this and why is obbligatory?
I can imagine this is when the product is free?!
But then why if this is a free oder there is the indication to payment method?

From my point of view it would be better to eliminate the all free oder tab but maybe I don't understand for what is this.
Happy to read about your explanation.

Thanks & Happy New Year

  • Dimitris
    • Support Star

    Hey there Paddy,

    hope you're having a beautiful day!

    what is this and why is obbligatory?

    As stated in "Free Orders Settings"
    This gateway is automatically activated if order totalling 0 and it can't be disabled.
    This is happening because some payment gateways, like PayPal, can't handle a "0" amount to charge.

    Apart from email settings, the one and only setting can help you automatically mark these payments as "paid".
    Payment Status: If enabled, all free orders will be automatically marked as paid.

    Warm regards and Happy New Year! :slight_smile:

  • Paddy
    • The Bug Hunter

    Hi Dimitris,
    There is the "payment status" and "payment information".
    This is very confusing not only for me but for all my users.
    If this is for free order then why payment status and payment information?
    I mean the best solution would be not to have that "free oder settings" at all.
    Just leaving the normal payment gateways and the manual payment.
    This is a bit annoying everytime I have to explain it to new users.
    I mean a shop normally as product with a price.
    And to be honest I still don't understand for what this can be used and why is compulsory.
    I hope you are enjoying this day

  • Dimitris
    • Support Star

    Hello Paddy

    I guess the label "payment" was set as it's about some text considering a zero payment. :thinking:

    Either way, removing this functionality from codebase surpass the scope of this support forum and should be considered custom development.

    We can hide it from admin area with a bit of CSS though as it isn't obligatory to make any change and save settings. Feel free to create a MU plugin, like /wp-content/mu-plugins/admin-css.php (if folder /mu-plugins/ doesn't exist just create it) and insert the following code in there.

    add_action('admin_head', 'my_custom_admin_css');
    function my_custom_admin_css() {
    			#mp-settings-payments .wpmudev-checkbox-group label:nth-child(5),
    			#mp-settings-gateway-free_orders + .submit
    			{ display: none; }

    Hope that's a workaround for you!
    Have a good one,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.