Trying to get property of non-object

Shopify: Trying to get property of non-object

Issue:

Stock2Shop cannot find the products on Shopify as the ID of the products in the channels have been removed, or there is no ID to update the variant.

Applies to:

shopify

Solution:

Confirm that the products are missing channel IDs in Stock2Shop:

  • Click View Product" > CHANNELS tab.
  • Confirm if there are any values entered in the Channel Product Code or Channel Variant Code fields.
  • If values are entered, compare them to the product and variant codes on the website for a mismatch.
  • Once the IDs have been written down, navigate to Products > View.
  • Search for the SKUs on the order one at a time > Once you find a relevant SKU, click on the 3 dots > click Edit.
  • Navigate to the CHANNELS tab.
  • Compare the IDs for the SKU with the IDs stored on the product.
  • If the IDs match then move onto the next SKU.
  • If the IDs do not match, see below to resolve the error.

Reset the product in S2S:

  • Products > View > Search > 3 dots > Edit. Select the CHANNELS tab.
  • Click REMOVE ALL on the channel that needs resetting.
  • Click Save on the GENERAL and VARIANTS tabs.
  • This will prompt Stock2Shop to scan the website database for a matching SKU to establish new links.
  • You will need to skip the “Trying to get property of non-object” error and skip any further updates for this specific product if they were already in the queue (It can be multiple SKUs depending on the SKUs connected to the product).
  • A new “add” item will appear at the back of the queue to re-add the product to the website.