• Resolved ladc314

    (@ladc314)


    Hi!

    I have sucessfully add a service to an existing product. The problem is when placing an order, the order stays at “pending” because used “Bank Transfer payment option”, but when change to “processing” or to “code ordered” nothing happens, the order did not pass to my unlock provider.

    I notice in Admin order details “_suwp_qty_sent” still at “O” value after processing, correct me if wrong but this value must change when code ordered?

    Where is the problem?

    Cron Schedule is configured to 5 minutes, services are applied and showing at front end.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author StockUnlocks

    (@stockunlocks)

    Hello,

    StockUnlocks cron looks for initial orders that are Order status “Processing” in order to forward them to the unlock provider. The _suwp_qty_sent is only updated when the Order status is changed (automatically via cron) to “Code ordered”.

    Please reset the Order status to “Processing”. If you have little or no traffic on your website, cron will not run every 5 minutes (unless you have manually configured a cron job on your server).

    1. Change the Order status to “Processing”
    2. If you have very little website traffic: After 5 minutes, access any page on your website (outside of the Dashboard) and see if the order gets processed.

    Regards,
    Henry

    Thread Starter ladc314

    (@ladc314)

    Hi!

    I did the suggested and unfortunately nothing happens, after change to processing, order is not send to provider (i tried all your suggestions).

    Tried adding a service to an existing product and also with your plugin product importation and has the same result.

    EDIT: Install WP Control to check cron jobs running, only see “suwp_cron_hook_1hour” with 1 hour recurrence from your plugin and not the 5 minutes cron job. I don’t know if it has something to do with failure.

    • This reply was modified 7 years, 11 months ago by ladc314.
    Thread Starter ladc314

    (@ladc314)

    I use one of my providers services, retrieve services, import successfully; only jobs are not passing to my provider after marked as “processing”

    Problem happens in a new imported service with your plugin and with an existing product. Then there is not an error by manual configuration on existing product.

    Anyway, i made an account on your site (user: ladc_314) and already purchase funds.

    Here is the test product linked to your service:
    https://smartlibre.com/producto/test-available/

    Plugin Author StockUnlocks

    (@stockunlocks)

    Ok, I submitted an order and received the preliminary WC notifications that an order was made.

    I gave it some time and, as you have been experiencing, no further notifications were sent out.

    Can you do me a favor?

    Please find your public_html/wp-config.php file and add or modify these lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);

    Save the wp-config.php file.

    Deactivate then Activate the StockUnlocks plugin via the dashboard.

    Wait more than five minutes …

    Find this file: public_html/wp-content/debug.log

    Please email me the file or its contents ([email protected]).

    If weird stuff starts showing up on your website that you don’t like, just change these lines in your wp-config.php to read:

    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', false);

    Thanks

    Thread Starter ladc314

    (@ladc314)

    Done, debug log sent

    Plugin Author StockUnlocks

    (@stockunlocks)

    Looks like there might be some possible file/folder permission issues. To confirm, please see if you can send me a screenshot or tell me the contents of this folder (providers):

    /plugins/stockunlocks/api/cron/providers/

    Thread Starter ladc314

    (@ladc314)

    There is nothing in that folder, should be any files?

    I download the files from wordpress twice and unzip with two different apps.

    Plugin Author StockUnlocks

    (@stockunlocks)

    Yes, there should be files in the providers folder representing your active unlock Providers.

    Please check the permissions on the providers folder. The reading might be something like 0644 or 0755.

    After a proper installation of the StockUnlocks plugin, permissions on that folder should be 0755.

    Thread Starter ladc314

    (@ladc314)

    Finally resolved, i have correct permissions for plugin, then decide to reset permissions directly with my hosting provider (cloudways), re install plugin and all working.

    Thanks for your support, will donate to your project.

    PD: Where can i send suggestions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Processing order problem’ is closed to new replies.