Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter smokinjefe

    (@smokinjefe)

    update_post_meta( $variation_id, ‘_backorders’, ‘no’ );

    Changed to below

    update_post_meta( $variation_id, ‘_backorders’, ‘notify’ );

    Thread Starter smokinjefe

    (@smokinjefe)

    That was explained in the 2nd post.

    Thread Starter smokinjefe

    (@smokinjefe)

    Hi guys.
    I enter stock into square, your plugin syncs square and my website.
    It’s been working fine for as long as I can remember until recently. Sales dropped off and a couple customers emailed asking when stock would be back in stock so they could order.
    That prompted me to look into it as customers should always be able to buy and I saw that stock was set to zero instead of backorder.
    I changed it to backorder and waited for the sync to happen which saw the backorder changed to zero.
    I contacted Square who said it’s a WordPress issue.
    I reached out to my hosting team who basically did the same thing and didn’t understand why it was changing back to zero.
    I believe one of them had a look at the code and changed it. Since the change it has been working, but he said I need a permanent fix.

    Thread Starter smokinjefe

    (@smokinjefe)

    Thread Starter smokinjefe

    (@smokinjefe)

    Hi.
    Not sure about any changes, a third party handles that.
    I don’t believe I’m using pre-orders plugin

    They found a line in the plugin:
    update_post_meta( $variation_id, ‘_backorders’, ‘no’ );

    They have changed it to:
    update_post_meta( $variation_id, ‘_backorders’, ‘notify’ );

    I was told that editing the plugin file is not recommended because once the plugin is updated, it will revert to its default. They asked me to reach out here and ask for a code snippet for a proper and permanent fix.

    Does that make sense to you?

Viewing 5 replies - 1 through 5 (of 5 total)