Sending products from Magento to French Erply

This article describes the process of sending product data from Magento to French Erply.

The requirement for sending product data to French Erply comes from an architectural approach we use for connecting all system together: Narva Erply => Magento => French Erply. A detailed explanation of those relations is given in this article. Normally sending products to French Erply is happening automatically according to schedule defined in Erply Module configuration in Magento Admin. Functionality works like this:

  • Magento collects all products that have no “erply_id” attached to them linking this product to French Erply
  • based on collected products Magento prepares a data-set for sending to Erply and sends every product one-by-one:
    • on successful product creation in French Erply a “productID” of the newly created product is returned and saved in “erply_link_product” table effectively linking product in Magento to it’s counterpart in French Erply
    • on unsuccessful product creation error is logged and product is left unlinked

[alert]As os 01.02.2017 automatic sending of product to French Erply is disabled. This is necessary because: some products come from Narva Erply not completely filled which results in broken or half-filled products in Magento and they are created like that in French Erply. Also because product codes (SKU) are corrected once a day and products are sent to French Erply with incorrect codes. Settings can be checked here, look for “Send New Products To Erply” setting.[/alert]

Aside from automatic product sending it is also possible to send or REsend product from Magento to French Erply manually:

  • open product in Magento Admin
  • switch to French Store View under TT11 France Website
  • press “Send to Erply” button

Sending Product for the first time

When sending NEW (no “erply_id” on product) products to French Erply a full data set is sent that is required to create a product including all of it’s sub-products (Matrix Variations in Erply).

Following fields are pre-processed specifically for France:

  • Name – where possible translations are applied to standard words in product name, like: “blade”, “rubber”, “red”, “socks” and so on… this is done using a map of values hard-coded in “Magforge_Erply_Model_Product” class.
  • Description – “short_description” product field from Magento is used and is saved to “description” field in Erply (not “longdescr” as in Narva Erply). This is done to allow employees in France to see original text of description if it exists and later provide description translation in “Long Description” field which is then sent back to Magento.

REsending Product to French Erply

This can only be triggered manually by pressing a “Send to Erply” button on product page in Magento Admin. Resending products never happens automatically. Because of the nature of data flow and hierarchy when resending already sent product the following fields are omitted (not included in data-set sent to erply):

  • Name – as it might have already been customized by employees in France
  • Price – as custom/adjusted price might exist

 

Leave a Reply 0

Your email address will not be published. Required fields are marked *