Magento 2.x – integrating with Price2Spy
13222
page-template,page-template-full_width,page-template-full_width-php,page,page-id-13222,page-child,parent-pageid-13051,strata-core-1.0.4,strata-child-theme-ver-1.0.0,strata-theme-ver-3.0.6,ajax_fade,page_not_loaded,wpb-js-composer js-comp-ver-5.7,vc_responsive

Magento 2.x – integrating with Price2Spy

Integrating your Magento 2.x store with Price2Spy

Supported Magento version: 2.x

 

Steps to be peformed in Price2Spy (1)

Please make sure you have registered Price2Spy account, and that you have account credentials at hand.

 

Next step in the integration process is in your Magento

Steps to be performed on Magento 2.x side

Please login to your Magento, and do the following

1. Click Integrations, and then Add New Integration

2. In Integration Info tab, fill in the following

3. In API tab please make sure to select tick following Resources

  • Catalog
    • Inventory
      • Products
      • Categories
  • Stores
    • Attributes
      • Products

4. Click Save and Activate

5. On the following screen, click Allow

6. (optional) If on the following screen you get ‘Unable to post to data consumer…’ error, please click Activate, as showed on the screenshot

7. (again optional) If you have Popup Blocker turned on in your browser, please make sure to turn it off

8. A popup window will open, where you should fill in your Price2Spy username / password

After this your Magento2 will be linked to your Price2Spy account, and all that is left to be done is to define which products (from which Magento categories) to link, and how often to perform sync operation.

These steps are done in Price2Spy

Steps to be performed in Price2Spy

 

Please login to your Price2Spy account and do the following

 

  1. Click Settings => Link My Store
    1. Click Connect button, next to Magento
      1. Fill in store details
        1. Store URLhttp://www.mymagentostore.com (this is the URL of your online store)
        2. API URL:by default, copy Store URL field (in some cases, it may differ, if so, please contact us)
        3. username = price2spy (this corresponds to username defined in Magento setup (see above: point 2.3.1.)
          1. API KEY = YOUR SECRET API KEY (this corresponds to username defined in Magento setup (see above: point 2.3.5.)
    2. Please be patient: depending on your store size and your server speed, it may take 30s or so to establish link to your Magento
  2. Select categories (or leave default = all) from which the products should be copied
  3. Click Matched products to see how many products are contained in the above categories, click Next
  4. Finalizing operation details
    1. Name your operation (for example: Magento | LINK)
    2. Define execution frequency (default = 1 day)
    3. (Optional) Define start / end date for the operation (leave blank if you’d like the operation to be executed every day until further notice)
    4. Choose whether you want to be notified by email on each operation execution (default = OFF)
    5. Click ‘Run it now‘ if you want the products to be copied immediately (otherwise the operation will be done according to the daily schedule)
    6. Define price check frequency (of the products created via Link My Store Operation)
  5. Click Finish. Once your products have been linked from Magento, you’ll see them in your Price2Spy account

Troubleshooting

 

  • WS-I Compliance: If you have followed the above steps, but you still receive error ‘Error logging in to Magento store‘, please check your WS-I Compliance setting (Magento Core API – please check the screenshot). This setting needs to be set to NO (which is it’s default value). Before changing this setting, please verify that you don’t have any other Magento plugins that require WS-I compliance set to YES.
  • Network / Firewall issues
    • When syncing your Magento with Price2Spy, Price2Spy has to perform an API request for each and every product you’re syncing (this is far from optimal, but I’m afraid this is the way Magento API works). For example – if you’d like to sync 2500 products, that means 2500 individual small HTTP requests from Price2Spy API to your Magento
    • In many cases we experience that client’s Magento is behind a firewall, which will block our requests. Therefore, please make sure that you have done the following whitelisting changes in your firewall
      • Whitelist Price2Spy IPs (please ask support@price2spy.com for the list of IPs we use)
      • Whitelist specific countries: please white list Serbia and The Netherlands (Holland)
      • Whitelist user-agent: Axis
    • In case you’re not sure where to apply the above firewall changes, please get in touch with your hosting company. If you’re unsure whom to contact, please let us know, we’ll be happy to point you in the right direction.