
Building a Chat Assistant Module for Drupal Commerce
Most e-commerce integrations follow the same playbook: install a plugin, give it API credentials, let it pull data from your store on a schedule. This works on Shopify. It works on WooCommerce (mostly). On Drupal Commerce, it falls apart. Drupal Commerce stores are not uniform. Two stores might both sell shoes, but one uses product variations with attribute fields, the other uses referenced paragraph entities with field collections. One has a custom "brand" taxonomy, the other stores brand as a plain text field on the product. Content types, field configurations, display modes: everything is configurable. I spent 12 years building Drupal sites before I started working on Emporiqa , a chat assistant for e-commerce stores. When it came time to build the Drupal integration, I had to make a choice: try to query every possible Drupal schema from the outside, or let Drupal tell me what the data looks like. I went with webhooks. The module pushes data out. The external service never queries D
Continue reading on Dev.to Webdev
Opens in a new tab

