• Resolved otpabu

    (@otpabu)


    Hello,

    I’m using the plugin to add a 6€ fee to the Cash on Delivery payment method. It works perfectly on the checkout page, but not on the order-pay page.

    Because of this, users can easily bypass the fee by selecting another payment method (credit card or PayPal) and then cancel the payment. When they go back, they are redirected to the order-pay page where they can choose to change the payment method if they want to. If they select Cash on Delivery, the plugin won’t add the 6€ and the total price won’t update.

    This also happens with manual orders. If I create a manual order and then send the payment link to a customer, they can choose Cash on Delivery for free.

    Is there a way to fix that?

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Hi @otpabu,

    could you share with me a test site where I can see the behavior? The best would be a duplicator package which gives the ability to copy or clone a site from one location to another.

    It would save me a lot of time setting up the same issue. I will check that in a couple of days (I’m quite busy at the moment) and if it’s possible to fix it I will release it as an update.

    Karolina

    Thread Starter otpabu

    (@otpabu)

    Hello Karolina,

    My site is:

    https://www.ottavianobiella.it

    It’s a real shop, but you can make as many orders as you need, just make sure to include “test” or something in the notes or customer name, so our staff will know it’s you.

    Cash on delivery is called “pagamento alla consegna”. As I said, the 6€ fee works on the checkout page, but not on the order-pay page.

    Please note that the cash on delivery option is not available for orders that exceed 300€, so make sure that your cart total amount is lower than that.

    Thank you!

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Hi @otpabu,

    thanks a lot, I will check it, the thing with duplicator is that I can as well log in and test the plugin changes and don’t touch the live traffic.

    Thanks,
    Karolina

    Hello Karolina,

    we have the same problem. Are you going to fix this bug?

    Thanks
    Regards

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Hi tptech,

    I was on holidays for three weeks (just returned). I will check it this week. If I’m not able to replicate the problem, will you be willing to give me access to you staging site or even better share with me a Duplicator package?

    Thanks, I’ll keep an eye on it
    Karolina

    Sorry but I can’t, beacause of data protection issues.
    But I’m pretty sure that you just have to follow the steps that otpabu described on any woocommerce instance and you will have the same problem.

    Let me know
    Thanks

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Guys, I’m sorry to say this, but it’s not possible at the moment because of the WP limitations. The very same problem as with manually created order which I have reported more than a year ago: https://github.com/woocommerce/woocommerce/issues/17794

    They have said:

    We’ve been asked this before and the plan is to update the pay page when #10672 is taken care of.

    The pay page shows and allows payment for an existing order. It has no fields and doesn’t allow the order to be modified (it doesn’t deal with carts like our checkout, so those filters are not applicable). Order totals would also not be re-calculated, and any changes would not be shown because this page does not reload totals via AJAX like the checkout does.

    This is a known limitation of the current pay page and not something that will be fixed short term. If you wanted to attempt a PR I’d be happy to review it but I think it will be difficult without a full rewrite…

    For now, any fees would need to be added manually to the manually created order. We’re also thinking of looking into a ‘send cart’ feature which would populate a cart to use the checkout page instead of a manual order. Thats another option for the future.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin not working on order-pay page’ is closed to new replies.