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
- In the admin area, open Extensions, then Available Extensions.
- Switch to the Ready to Install / Upload tab.
- 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¶
- Open Extensions, then Available Extensions, tab Ready to Install / Upload.
- Find White Label Storefronts (JUBE) in the list and click Install. Paymenter opens the extension's settings page.
- 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¶
- Open Storefronts and click New storefront.
- 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. - Save, then open
https://<your-paymenter-domain>/s/acmeto check the page.
Path based storefronts work with the default settings. Two things are optional:
-
Logos. Logos are stored on Laravel's
publicdisk in the folderstorefronts. 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¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/WhiteLabelStorefrontsfolder and calls the extension's upgrade step, which runs any new migrations. - 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¶
- Open the extension's settings page in the admin area.
- 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.