Back to feed
Dev.to
Dev.to
7/19/2026
Implementing UCP on PrestaShop 8/9: the complete guide

Implementing UCP on PrestaShop 8/9: the complete guide

Short summary

A detailed implementation guide for adding Universal Commerce Protocol (UCP) support to PrestaShop 8/9 stores, enabling AI agents to discover and query product catalogs. Covers discovery manifests at /.well-known/ucp, routing via ModuleFrontController, and critical security decisions like computing prices in anonymous-visitor context to prevent B2B price leakage. Includes real production code from the Fondouk demo store.

  • UCP (Apache 2.0) by Google, Shopify, Walmart enables AI agents to read e-commerce stores via discovery manifests
  • Implementation uses PrestaShop internal price classes with anonymous-visitor context to prevent B2B price leakage
  • Covers routing, schema validation, and MCP transport alongside REST for PrestaShop 8/9

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more