﻿=== Ordenlink Storefront ===
Contributors: ordenlink
Tags: ecommerce, restaurant, menu, ordering, checkout
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 0.3.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Storefront para WordPress conectado a la API publica de Ordenlink con categorias, productos, toppings, carrito y pagos.

== Description ==

Ordenlink Storefront permite insertar una experiencia de pedido completa dentro de cualquier pagina de WordPress usando un shortcode.

Incluye:

- Carga de categorias, productos y toppings desde la API publica de Ordenlink
- Carrito y personalizacion por producto
- Creacion de orden publica
- Pago posterior o pago online
- Integracion con Stripe embebido
- Integracion con Square por redireccion o popup
- Panel de configuracion en el admin de WordPress

Shortcode principal:

[ordenlink_storefront]

== Installation ==

1. En WordPress, ve a Plugins > Anadir nuevo > Subir plugin.
2. Sube el archivo ZIP del plugin.
3. Activa el plugin.
4. Ve al menu admin "Ordenlink".
5. Configura:
   - ORDENLINK_API_KEY
   - ORDENLINK_TENANT_ID
   - ORDENLINK_PLACE_CODE
6. Inserta el shortcode [ordenlink_storefront] en cualquier pagina o entrada.

Tambien puedes definir constantes en wp-config.php. Si existen, tienen prioridad sobre la configuracion del admin:

- ORDENLINK_API_BASE_URL
- ORDENLINK_API_KEY
- ORDENLINK_TENANT_ID
- ORDENLINK_PLACE_CODE
- ORDENLINK_STRIPE_PUBLISHABLE_KEY

== Frequently Asked Questions ==

= Puedo usar varios places en el mismo sitio? =

Si. Puedes usar el shortcode con atributos por instancia, por ejemplo:

[ordenlink_storefront place_code="TOGO" headline="Pide en linea"]

= Necesito exponer mi API key en el navegador? =

No. El plugin hace proxy server-side para crear ordenes, consultar estado y preparar checkout.

== Changelog ==

= 0.3.2 =

- Product notes now sync with Ordenlink: the per-item note field is shown/hidden based on the "Allow notes on products" toggle in the Service-area settings for this place's channel, fetched from the API. Removed the manual "Product note field" setting from the plugin admin.

= 0.3.1 =

- Added a live "Connection status" panel to the admin settings page: it runs the same menu/place requests the storefront needs and shows the exact underlying error (e.g. the cURL transport error) so hosting/firewall issues are identifiable at a glance.

= 0.3.0 =

- Added self-hosted automatic updates: the plugin now checks Ordenlink for new versions and offers the native WordPress "Update now" flow, no manual re-upload needed.
- Added "View details" / changelog support in the Plugins screen.

= 0.2.2 =

- Added admin control to show or hide product notes in the product modal.
- Removed product note rendering from the cart sidebar.
- Fixed storefront tax calculations in cart and checkout totals.
- Updated storefront customer-facing copy to English.

= 0.2.1 =

- Los elementos de acento ahora heredan el color primario cuando no se configura un color de acento.
- Migracion de compatibilidad para instalaciones que tenian guardado el naranja anterior por defecto.

= 0.2.0 =

- Rediseño visual del storefront para replicar la UI base con layout full width.
- Ajustes del carrito lateral, tarjetas de productos y navegación móvil por categorías.

= 0.1.0 =

- Version inicial del plugin instalable.
- Panel admin con credenciales y branding.
- Storefront con menu, carrito, toppings y checkout.

