Skip to main content

Magento Example

There is an example integration on our Github of how to get the Faslet Size Me Up Virtual Assistant and Order Tracking running on Magento 2 with PHP. For more info on our PHP module, please see our PHP page

tip

In order to provide full insights, Faslet requests that you implement both the Size Me Up Virtual Assistant on the Product Page and Order Tracking on the Thank You page. To validate your installation, please see our Integration Checklist

If you're looking for a Magento PWA Studio solution, please see our React page or our NPM module

Example over extension

We have specifically gone for an example instead of providing an extension. The reason for this is that each Magento version and implementation is considerably different, and we don't want to enforce certain standards on our partners. We have decided to make our example as simple and clear as possible in order to help developers get up and running as quickly as possible.

Notes and assumptions

  • It is assumed that the products are ConfigurableProducts and that is how sizes and colors are handled
  • The Color, Size and Manufacturer (Product Brand) attribute codes are hardcoded in the example, but should be adjusted for each store as needed
  • Add-to-cart is configured to use a direct url which is POSTed to from the frontend. It is very likely that there are easier ways to do this, either purely in frontend code, or by creating a controller which does some of this work. We did not include those in the example.
  • Order tracking uses the fact that Magento 2.3.7 adds 2 items to the cart when buying a variable product. The variant itself is added, but 0 quantity. We skip over this in order tracking, and simply look up the SKU of the item purchased.
tip

Because each Magento store is different, and each version of Magento is different, it's worth noting that we have built and tested this against Magento 2.3.7

Help

In case of any questions, please don’t hesitate to contact us on support@faslet.me