Enable public negotiable quotes
This guide explains how to enable public negotiable quotes in Front-Commerce, allowing anyone to request and view quotes without authentication.
Overview
The negotiable quotes feature allows customers to request custom quotes for
products. By default, negotiable quotes are only accessible to the authenticated
user who created them, via the /user/negotiable-quotes route.
When public negotiable quotes are enabled:
- Anyone can request a quote via the
/quoteroute (without logging in) - Anyone can view quotes via the
/negotiable-quotes/:idURL — including non-logged-in visitors and logged-in users who didn't request the quote
This behavior is disabled by default and must be explicitly activated.
Enable the feature
Set the following environment variable to enable public negotiable quotes:
FRONT_COMMERCE_GEZY_QUOTE_ENABLE_PUBLIC=true
The negotiable quotes feature itself (negotiableQuotes.enabled) is
automatically enabled based on the gezy_modules_devis configuration from your
Gezy instance (Configuration > Site e-commerce > Configurer le module Devis >
Activer le module devis sur ce eCommerce). You only need to set this environment
variable to enable the public access.
What changes when enabled?
Request a quote for visitors: the /quote route becomes available, allowing
anyone to request a quote without logging in.
Public quote viewing: quotes can be viewed by anyone via the
/negotiable-quotes/:id URL — this includes non-logged-in visitors as well as
logged-in users who didn't request the quote.
When disabled, request a quote and viewing are restricted to authenticated users
through the /user/negotiable-quotes route, and only the quote requester can
access their quotes.