• squinn009

    (@squinn009)


    I’m having issues with products syncing correctly. There are approximately 2,500 that must be synced from BC to the WP site. I’ve enabled web hooks for real-time product and inventory sync within the BC4WP settings but I’m not sure how to test this is working, I can confirm that our host can support the increased server activity.

    Is there an efficient way for products to sync automatically, especially if I only need to update a few products without the sync process having to parse through the 2,500 products in the catalog?

    Essentially, we’d like to make updates to products from the BC account and have those changes reflect near real-time on the front-end? Is this possible or can we get close to this at least?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Topher

    (@topher1kenobe)

    Here are some data points that will help:

    1. More than 500 products is really hard for WP to deal with. Not impossible, so don’t give up yet.

    2. Turn off webhooks during the initial sync, they don’t gain you anything during that time and just make for extra traffic.

    3. Once all 2500 have finally sync’d, future syncs will only copy over changed data, so even though it’ll loop through 2500, it’ll do it really fast and only copy over data from the handful you’ve changed.

    4. Webhooks on will get you what you want, when you make a change it should update that ONE product in WP immediately.

    5. The sync speed issue is a know issue and there’s a Plan for fixing it. I don’t know the timeline.

    Let me know if you need more info!

    Thread Starter squinn009

    (@squinn009)

    Hey thanks for the response!

    Would it help to delete all the products in my current WP site and then re-sync (with webhooks off for initial sync) them again from BC? Then once that’s finished, turn on webhooks and test edits to a product from BC and see if it updates? Just trying to find the best method for testing this.

    Thanks again!

    Thread Starter squinn009

    (@squinn009)

    @topher1kenobe I’ve reset everything but it appears that the webhooks are still not firing even after I make an update from BigCommerce and then view to see if the change occurs in WordPress.

    Is there anything that would prevent the webhooks from working? This seems like a crucial piece of functionality that just is not working or not configured correctly. Please help.

    Thanks

    Topher

    (@topher1kenobe)

    It’s possible the host has blocked them. They can produce quite a bit of traffic and slow a server. I would ask them.

    Thread Starter squinn009

    (@squinn009)

    Thanks @topher1kenobe! I’ll look into that. Also, Could Wordfence be a culprit in blocking webhooks as well?

    Topher

    (@topher1kenobe)

    Yes, it could, I’d talk to their support about it. I know them, and I’d rather it work than have you get rid of it, so if you find that that’s the culprit let me know and I’ll get in touch with them.

    Thread Starter squinn009

    (@squinn009)

    @topher1kenobe I’ve disabled Wordfence for now. What does seem to be working is if I make a change in BigCommerce and then go into WordPress and manually click ‘Re-Sync’ product it does update that single product. So the webhook does work in that sense.

    However, this is a bit inconvenient as I’d had to login to both BigCommerce and WordPress in order to update a single product. If I update directly from BigCommerce, then it should automatically update in WordPress, without having to click the ‘Re-Sync’ product link correct?

    • This reply was modified 4 years ago by squinn009.
    Topher

    (@topher1kenobe)

    It should yes. What you’re describing is the opposite of the webhook working. ?? Ping BC and see if the log file logs webhook requests. If not, request it as a new feature. It would be handy to see what’s happening there.

    Thread Starter squinn009

    (@squinn009)

    @topher1kenobe So I’ve stripped the site down to it’s barebones theme and disabled any template overrides. I’ve managed to get the price to change in WP when I make an update from BC but nothing else changes when I edit from BC i.e. title, description, custom fields, etc.

    It’s only the pricing that changes immediately, so I can confirm that the webhook is working to change the price but none of the other product data wants to update. Thoughts?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Optimized Product Sync / Webhooks’ is closed to new replies.