• Resolved kreativamarketing

    (@kreativamarketing)


    Hi,

    So we have our platform with some custom code. We have vendors and clients. When a client buys a product (virtual) from a vendor, the vendor has the chance to either accept or refuse the order. To make that happen, we did some custom code so that when an order is placed and paid, the status changes to ‘on-hold’. The custom code for the Accept/Reject buttons is based on the order status, as they only appear when status is ‘on-hold’. To sum it up:

    • Client buys product from vendor
    • Order status change to ‘on-hold’
    • ‘On-hold’ status make the Accept/Reject order appear for the vendor
    • When vendor accepts order, order status changes to processing

    We had no problem in the past with payment methods (bank transfer, redsys), but Paypal directly changes the status to ‘processing’ when payment is done. We have tried a few custom snippets to force the status to change to ‘on-hold’ but so far they don’t seem to work.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello kreativamarketing,

    Thank you for contacting WooCommerce support.

    What you’re experiencing is the expected behavior for a payment method.
    When payment is completed, PayPal automatically changes the order status to “processing,” as this status typically indicates that the payment has been successfully received.

    May I ask which PayPal plugin you’re currently using?
    I would recommend reaching out to the PayPal plugin’s support team for guidance.

    Additionally, since you’re already using custom code to manage the Accept/Reject functionality, it might be necessary to modify that code to ensure the order status remains “on-hold” until the vendor accepts the order.

    Consulting with a developer to make this adjustment would likely be the best approach to achieve the desired behavior.

    Let me know if I can assist further!

    Best regards.

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