Studio / Internal

Hostinger Store Integration

This site runs on its own MySQL database — that's the source of truth for products, carts, and orders. This page just checks whether this deployment is also connected to a Hostinger Ecommerce store via the Hostinger API.

Not connected.

HOSTINGER_API_TOKEN is empty in config/config.php. To connect:

  1. In hPanel, go to Account Information → API and generate a token.
  2. Paste it into HOSTINGER_API_TOKEN in config/config.php.
  3. Reload this page to confirm the connection and list your store(s).

What's wired up vs. what's a hook

  • Confirmed & live: listing/creating stores via /api/ecommerce/v1/stores.
  • Extension points, not yet wired: catalog and order sync. Hostinger's Ecommerce API is built for exactly that ("build your own frontend and keep your catalog, orders, shipping and payments in sync"), but the exact endpoint paths/payloads can change as it rolls out — confirm the current contract at developers.hostinger.com before wiring writes in production.

See includes/HostingerAPI.php for the client and commented-out stubs.