• Hello!
    I’m developing a custom plugin with a custom page for checkout, created with URL rewriting and the usual shortcode. Since this is a custom page, I made the changes required for the Customer Payment page. with that, I noticed whenever I use ‘?order-pay’ on any page, I mean any WordPress installation with WooCommerce, which can turn into a 404 page.

    The issue is happening everywhere even with the home page, cart page, or any page.

    Even when I try to assign a value to an order-pay query manually like $wp->query_vars['order-pay'] = '100'; by assigning it to the ‘wp’ hook, it also turns the pages into “Page not found.”

    What can I do at this stage?

    • This topic was modified 5 months, 3 weeks ago by shadowlk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there, @shadowlk! Thanks for contacting us.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    I’m going to leave it open for a bit to see if anyone is able to chime in and help you out further.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter shadowlk

    (@shadowlk)

    Hello @carolm29
    No, I don’t want any customization or any help with any of my codes. All I’m saying is there is a bug that can turn pages into 404 with just a query string. Put ?order-pay query on any URL with any Woocommerce installation and that will brake that page. Even a home page, cart page or anything.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello shadowlk

    Thank you for your reply.

    WooCommerce uses the ?order-pay query string as part of its order payment process.
    Specifically, it is used in the URL to redirect customers to the payment page where they can complete the payment for an order that has already been created but not yet paid.

    However, I will ask the concerned devs to ensure this is not a bug.
    I appreciate your feedback on this.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.