Multi-Website

Warning: these fields are only available from version 2.6.0 of the Sales Layer plugin onwards.

If you need to publish separate products for each website, we will have to configure the field Websites respectively in the Products and Variants tab:

Websites

The field can be linked to a list-type field, a text-type field (in the case of multiple values separated by commas), or use a PRINT() formula with the values ​​of the website IDs separated by commas.

Once the item is synchronized, it will search for websites whose ID, code, or name are equal to the field values, and then sync these websites with the item.

If the field is not received from Sales Layer, the process will work as usual, dynamically linking to websites based on the Store Views configured in the Magento connector.

Example:

We want to synchronize a product on several websites, but it has different values ​​per Store view.

Our structure in Magento is the following:

  • Website 1 > Store 1 > Store View 1
  • Website 2 > Store 2 > Store View 2

We would need to create several connectors,  one pointing to Store View 1:

28

 

And the other to Store View 2:

29

While each connector will sync different values ​​for each Store View, if we have the product_website/variant_website values ​​populated equally for both connectors (1,2), the element will always persist across both websites.