Configuration
Overview · Installation · Usage · FAQ · Developer notes
Add-ons > Manage > Web Push Campaigns > Settings. On CS-Cart Ultimate the prompt settings can differ per storefront.
Prompt and storefront
Section titled “Prompt and storefront”| Setting | Default | What it does |
|---|---|---|
| Enable | on | Switches the storefront parts and sending on or off. Subscribers and campaigns are kept. |
| How visitors subscribe | Permission card after a delay | Card, bell button, both, or product alert buttons only. |
| Show the card after (seconds) | 8 | Delay on the page before the card slides in. |
| Show the card from page view number | 2 | The card waits for the visitor’s second page view. |
| After “Not now”, ask again after (days) | 14 | Kept in the visitor’s browser. |
| Card title, Card text | short default | Your own words. |
| Card and bell position | Right | Right or left corner. The bell stays below cookie and consent banners. |
| Alert buttons on product pages | on | Out of stock: back-in-stock alert. In stock: price-drop alert. |
| Notification icon URL | empty | Square image, at least 192 x 192 px, for example your logo. Product alerts use the product image. |
Product alerts
Section titled “Product alerts”| Setting | Default | What it does |
|---|---|---|
| Back-in-stock alerts | on | Fires when the product’s stock goes above zero (admin save, cancelled order, or import plus cron). |
| Back-in-stock title, text | “Back in stock: [product]” | Placeholders [product], [price]. |
| Price-drop alerts | on | Fires when the catalog price falls below the price the visitor saw. |
| Smallest price drop (%) | 5 | Smaller drops send no alert. |
| Price-drop title, text | “Price drop: [product]” | Placeholders [product], [price], [old_price]. |
Each alert is sent once. Prices are the product’s base catalog price in the primary currency; promotions are not included.
Sending
Section titled “Sending”| Setting | Default | What it does |
|---|---|---|
| Messages per cron run | 300 | Batch size; a console cron run also stops after about 4 minutes. |
| Keep undelivered messages for (hours) | 48 | TTL: how long the push service keeps a message for an offline device. |
| Accept only the known push services | on | Subscriptions are accepted only for the push services of Google, Mozilla, Apple and Microsoft, so the store never sends requests to other addresses. |
Client IP (limits behind a proxy)
Section titled “Client IP (limits behind a proxy)”Rate limits and IP rules count requests per visitor address. A forwarded header such as X-Forwarded-For can be sent by anyone, so the add-on only reads it when the connection really comes from a proxy. This works out of the box behind Cloudflare and behind private reverse proxies (nginx, Varnish, a load balancer on a loopback or private address). Open the Client IP tab of the add-on settings only if you need to change it:
| Setting | Default | Description |
|---|---|---|
| Where the visitor IP address comes from | Automatic: Cloudflare and private reverse proxies | Automatic: CF-Connecting-IP when the connection comes from a Cloudflare address (official ranges built in); X-Forwarded-For (read from the right, proxies skipped, the first other address is the visitor) when the connection comes from a loopback or private address (127.0.0.0/8, ::1, 10/8, 172.16/12, 192.168/16, fc00::/7) or a listed proxy. Automatic, plus the proxies listed below: same. Direct connection only: every forwarded header is ignored. |
| Trusted proxies | empty | Only for proxies with a public address: addresses or CIDR blocks, one per line or separated by commas (IPv4 and IPv6). |
IPv6 visitors are counted per /64 network. To set it once for every Kavio Labs add-on, put this in config.local.php (a value there wins over the add-on setting):
$config['kv_client_ip_mode'] = 'cloudflare'; // cloudflare (automatic) | proxy | direct$config['kv_client_ip_trusted_proxies'] = '203.0.113.50'; // public proxy addresses only