Skip to content

Installing White Label Storefronts

Upload the files

The extension must end up in this folder of your Paymenter installation. The folder name must be exactly WhiteLabelStorefronts.

extensions/Others/WhiteLabelStorefronts/

You can get it there in two ways.

Upload the ZIP in the admin area

  1. In the admin area, open Extensions, then Available Extensions.
  2. Switch to the Ready to Install / Upload tab.
  3. Click Upload Extension, choose the ZIP file and confirm.

Copy the folder by hand

Unpack the ZIP and copy the WhiteLabelStorefronts folder to extensions/Others/WhiteLabelStorefronts/.

Install and enable

  1. Open Extensions, then Available Extensions, tab Ready to Install / Upload.
  2. Find White Label Storefronts (JUBE) in the list and click Install. Paymenter opens the extension's settings page.
  3. Switch on Enabled and save.

Installing and enabling both run the extension's migration, which creates three tables:

Table Content
ext_storefronts The storefronts with their branding and commission settings
ext_storefront_orders One row per paid invoice that was attributed to a storefront
ext_storefront_commissions One row per commission, with amount and status

Once the extension is enabled:

  • the admin area has two new entries in the Extensions navigation group: Storefronts and Storefront Commissions,
  • the public route /s/{slug} exists,
  • paid invoices are attributed to the storefront that is active in the session.

First-time setup

  1. Open Storefronts and click New storefront.
  2. Enter a Name and a Slug, for example acme. Set the branding and, if the partner earns a commission, the commission fields. All fields are described in Configuration.
  3. Save, then open https://<your-paymenter-domain>/s/acme to check the page.

Path based storefronts work with the default settings. Two things are optional:

  • Logos. Logos are stored on Laravel's public disk in the folder storefronts. If an uploaded logo does not show on the storefront page, create the storage link in the Paymenter root directory:

    php artisan storage:link
    
  • Subdomains. To activate storefronts through <slug>.example.com, set Storefront domain base in the extension settings and create a wildcard DNS record. See Configuration.

Updating

  1. Upload the new ZIP with Upload Extension as described above. Paymenter replaces the extensions/Others/WhiteLabelStorefronts folder and calls the extension's upgrade step, which runs any new migrations.
  2. If you replace the folder by hand instead, disable and re-enable the extension afterwards. Enabling runs any new migrations.

Existing storefronts, attributions, commissions and settings are kept.

Uninstalling

  1. Open the extension's settings page in the admin area.
  2. Click Uninstall Extension and confirm.

Warning

Uninstalling drops the tables ext_storefronts, ext_storefront_orders and ext_storefront_commissions. All storefronts, attributions and commissions are deleted, including commissions that are still pending. Invoices, orders, services and customers are not changed.

Disabling the extension keeps the tables and the settings. While it is disabled, the Storefronts and Storefront Commissions pages are not available in the admin area.