• Resolved sahuh

    (@sahuh)


    Hi, I’m testing the free version.

    I’ve created a virtual product (a download), and my intention is that I set a release date in the future, but people are able to preorder it, pay for it, and then, when the release date arrives, the system automatically change the order status from “preorder” to the following, depending on the payment status:

    – if the preorder was paid, change to “completed”, and make the download available
    – if the preorder is not yet paid change to “on hold”. So that when the payment method is wire transfer, I have to manually change the status to completed afterwards

    In the paid version, is it possible?

    In the free version, I cannot do that. After some minutes, the preorders of the virtual download are changed to completed, even if the release date is not yet arrived, and, worst, even if the payment is not yet made! And the downloads become available, which is not desired.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter sahuh

    (@sahuh)

    To explain furthermore:

    I made a test, making a preorder of a downloadable product, and selecting “wire transfer” as a payment method. I didn’t make any transfer, and neither changed anything on the product status. It was initially saying “pre order”. But, after some minutes, the plugin changed the status of the order to “completed”, and the download was available to me!

    2 issues there:

    1-I didn’t pay, and yet, received the download
    2-The release date was note yet arrived, and I received the download even so..

    Can you help me fix it?

    If you say the paid version works as I need, no problem, I would upgrade. I just need to know if there is a solution that works for me

    • This reply was modified 4 years, 1 month ago by sahuh.
    Niloy

    (@niloybrightvessel)

    Hi @sahuh ,
    for “wire transfer” as a payment method you need to change the order status to ‘on-hold’ manually. then once you confirm that the order is paid ,you need to change the order status again to ‘pre-order’.
    this plugin is working perfectly if you’re using online payment gateways instead of manual payment.
    Thanks

    Thread Starter sahuh

    (@sahuh)

    Hi Niloy, thanks

    Is there any way to prevent the plugin from changing the status to completed before the release day arrives? I want it to keep the order as “preorder”, but after some minutes the plugin changes it to “completed”. If I try to manually change it back to preorder, the plugin changes it back to completed again… before the release date

    Niloy

    (@niloybrightvessel)

    did you use any plugin to edit the checkout form?
    we have a hidden field for add preorder-date to the order. so make sure that field is working correctly.

    Thread Starter sahuh

    (@sahuh)

    I have the plugin: WooCommerce Extra Checkout Fields for Brazil
    It adds some checkout fields

    PS: Yes, it is indeed whats is causing the issue. I disabled the plugin for extra checkout fields and now the preorder date field appears in the checkout..

    Is there any way to go around this? I have to use that plugin of extra checkout fields, cannot disable it…

    • This reply was modified 4 years, 1 month ago by sahuh.
    Thread Starter sahuh

    (@sahuh)

    Problem solved, thanks. I added this snippet directly on the other plugin:

    if ( isset( $fields[‘preorder_date’] ) ) {
    $new_fields[‘preorder_date’] = $fields[‘preorder_date’];
    $new_fields[‘preorder_date’][‘class’] = array( ‘form-row-first’ );
    }

    Thread Starter sahuh

    (@sahuh)

    Regarding the wire transfer payments, maybe one simple fix would be to prevent the plugin from changing the status to “pre ordered”, when the order is “on hold”.

    The way I see it, an order becomes “on hold” when the payment is not via online gateways, but via wire transfer or check, for instance. In these instances, it would be never good to change the status automatically to “pre ordered”, since then it would be difficult to identify which orders are not yet paid.

    Keep the “on hold” orders as they are, and let the user manually change it to “pre ordered” when he confirms the payment.It will be easy for the user to identify the onholds that are preorders, since the column “preorder date” will have data

    PS: Is there any code that is possible to add so the plugin doesn’t change the “on hold” orders to “pre ordered”?

    • This reply was modified 4 years, 1 month ago by sahuh.
    Niloy

    (@niloybrightvessel)

    we’ll be working on the manual transfer issue. ??

    Thread Starter sahuh

    (@sahuh)

    It would be great.

    Another issue I found yesterday, this time on Paypal payments:

    When I checkout and pay with Paypal, waiting after the paypal window to redirect me back to the store, it works and the order status comes as “pre ordered”. However, there is 1 case when it does not work:

    If I checkout, pay with Paypal, and then, instead of waiting to go back to the store automatically (to the thank you page), I close the paypal window, then the order is registered as “payment pending”. After some minutes, Paypal communicates with the store and change the status to “completed”. In this case, the order never changes to “pre ordered”. I imagine it is because the hook is based on the “thank you page” or something like that.

    So, even with an online gateway, there is this issue, where the customer can pay via Paypal, but if he closes the paypal window before, the payment is made but the order do not register as “pre ordered” but as “complete”.

    Maybe write a code that “scans” the orders periodically and look for preorders that are marked as Completed (with payment confirmed) and then change them to pre ordered?

    If you solve this in a future version, it would be nice.

    Niloy

    (@niloybrightvessel)

    yes, we’re aware of this issue. but the ideal way is go to the thank you page after pay via paypal ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Virtual Products changing to completed before release date’ is closed to new replies.