• Resolved crftbrntn

    (@crftbrntn)


    Hello!

    When I have product sync disabled, WooCommerce is still sending product data to Square whenever an order is processed using Square Payments. This is causing my products in Square to decrement inventory when I do not want Woo touching inventory anymore. It’s also messing up the Square reports which has some serious real-world ramifications to business operations.

    I took a look at the plugin’s logs and found that Woo continues to send the catalog_object_id to Square even when product data sync has been disabled. Here’s a snippet of the API request from Woo to Square when a payment has been made:

    "line_items": [
                {
                    "quantity": "1",
                    "catalog_object_id": "XX34PS6SDHBFTW5NF7A5DKFQ",
                    "applied_taxes": [],
                    "base_price_money": {
                        "amount": 3300,
                        "currency": "USD"
                    }
                },

    This only happens to products that have been synced with Square at least once. For any product created after sync was disabled, Woo does not send a catalog_object_id in the request. Example:

    "line_items": [
                {
                    "name": "new to woo, new to me and you",
                    "quantity": "1",
                    "applied_taxes": [],
                    "base_price_money": {
                        "amount": 1500,
                        "currency": "USD"
                    }
                },

    I assume the product name is included in the second example because otherwise the receipt in Square wouldn’t have a name for the line item, so there’s clearly some logic built in to understand how to send product info to Square even if product data sync is disabled. Why isn’t this happening to all products when sync is disabled?

    Looking at the source code it seems like there’s already a function to remove Square meta from once-linked products, but it doesn’t look like this actually works right now.

    Can this be fixed? Again, it’s creating real-world business issues. Once the sync is disabled, I expect products to not sync anymore, but that’s not the behavior I’m seeing.

    Let me know if there’s more info I can provide to help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Janine – a11n

    (@jnineb)

    Hi there!

    >When I have product sync disabled, WooCommerce is still sending product data to Square whenever an order is processed using Square Payments. This is causing my products in Square to decrement inventory when I do not want Woo touching inventory anymore. It’s also messing up the Square reports which has some serious real-world ramifications to business operations.

    Thank you for your detailed explanation, including those logs! It sounds like you may have recently disabled the product sync, is this correct?

    If so, it’s possible that the Product System of Record’ is still set to WooCommerce. When WooCommerce is your system of record, inventory changes in WooCommerce overwrite Square inventory. When Square is your system of record, inventory cannot be changed in WooCommerce, and will always be pulled from Square.

    Can you head to WooCommerce > Settings > Square and check to see which one is currently set as the system of record?

    Thank you!

    Thread Starter crftbrntn

    (@crftbrntn)

    Hi Janine!

    Thank you for the quick response. I have the Product System of Record set to “Do not sync product data” – my understanding is that as long as this is set, product syncing should not occur for any/all products. I confirmed again that my products still sync to Square when they’re a line item in an order paid via Square, however.

    I just now tried changing the System of Record to Square. This on its own didn’t solve the issue. But! Since when you set the SoR to Square (or to Woo) the “Sync with Square” setting appears on “Edit product” pages, I could see that after “enabling” sync again, the product still had the sync enabled. Disabling this on an individual product “breaks” the link, as I hoped. Then, setting the System of Record back to “Do not sync product data” no longer synced that test product to Square, as desired.

    So, it seems that the issue is that setting the System of Record to “Do not sync product data” does not work as expected for any product(s) that had sync enabled before changing the global setting – it will still sync these products whenever they are in an order paid via Square payments. These products still have sync enabled in the background, which is confusing because there’s no way to actually see in the Woo dashboard that this is the case.

    For now, the workaround is:
    1. Make sure System of Record is set to either WooCommerce or Square (otherwise the “Sync with Square” product setting is inaccessible)
    2. On a per-product basis, disable “Sync with Square”
    3. Update the product
    4. Now, regardless of whether or not the System of Record is set to “WooCommerce”, “Square”, or “Do not sync”, the product will no longer sync with Square (as desired)

    I’m guessing that I can bulk enable/disable Square sync for products using the Bulk Edit feature in Woo, but I won’t have time to test that until Monday.

    That said: what is the expected behavior when System of Record is set to “Do not sync”? I would say that when that is set, no product should sync, even if it was individually enabled before the global SoR setting was changed. Is that the correct expectation?

    Thanks!

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @crftbrntn,

    That is puzzling. I would not expect it to continue to sync product data when syncing is disabled. Can I get you to open up a ticket for us at WooCommerce.com? We may need to log into the site to take a closer look at this. Please include a link to this thread too so we can pick up from here.

    https://woocommerce.com/my-account/create-a-ticket/

    Thanks!

    Thread Starter crftbrntn

    (@crftbrntn)

    For sure! I’ll submit a ticket shortly. Thanks!

    Plugin Support Niall a11n

    (@wpniall)

    Hey @crftbrntn,

    We’ve now received the ticket you submitted! So, I’m going to mark this post as resolved now, as we’ll be helping you via the ticket.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Products are still syncing after sync is disabled’ is closed to new replies.