forked from unimatrix/web
29 lines
3.3 KiB
Markdown
29 lines
3.3 KiB
Markdown
# Independent osCommerce shop
|
|
|
|
Host: https://shop.dunerealms.com/
|
|
Portal: /var/www/dunerealms-shop-portal/index.html
|
|
Application: /home/dunerealms/apps/oscommerce (official osCommerce V4 commit 48d31a36)
|
|
Database: dunerealms_oscommerce on the existing MySQL service. Azuriom and dunerealms_store are preserved.
|
|
|
|
The portal clones the existing public shop shell and embeds /catalog/. Header/footer assets stay central. The original /shop.html embed is unchanged.
|
|
|
|
Frontend account linking uses the existing API with a dedicated oscommerce SSO client and an opaque host-only cookie. Customer records map by central account UUID. One-time codes, browser-bound state, expiry and central-session revalidation are enforced. Native registration/password endpoints redirect to the central account. No API permission or role synchronization is performed; native osCommerce backend permissions remain authoritative.
|
|
|
|
PHP-FPM pool and TLS vhost are separate from Azuriom. Installer paths, .git, configuration, SQL and downloads are denied at the web server. No credentials belong in this directory.
|
|
|
|
Backend theme proposal: Tabler (https://tabler.io), MIT licensed. This requires an adapter; it has not been installed over the native backend.
|
|
|
|
|
|
## Catalogue and storefront update
|
|
|
|
The portal now embeds `/catalog/dune-shop?currency=EUR`. `DuneShopController.php` belongs in `lib/frontend/controllers/`; `dune-shop-cards.css` is served at the app root and linked by the portal publisher's native layout adapter.
|
|
|
|
`import-shop-catalog.py` imports the 12 original sash products and the four mapped donor packages from the preserved Azuriom schema. `dune_catalog_import` records source package IDs and prevents duplicates. The user's existing Aerdrecht product is retained as product 76, including its artwork. Donor manufacturer is DuneRealms; existing rank delivery mappings are recorded, but this importer never grants ranks.
|
|
|
|
Sashes are made to order with unlimited stock, a required preferred embroidery name, and standard/silver (+EUR50)/gold (+EUR75) SIDE edging. These options do not alter the bottom cord/fringe. Prices use the installation's current 20% tax setup and source EUR display prices; review real tax and shipping configuration before enabling checkout. All imported products remain previews: no purchasing or fulfillment is enabled.
|
|
|
|
`DuneProductRules.php` belongs in `lib/frontend/components/`; `install-sash-rules.py` hooks validation into native cart handling. `finish-catalog-edging.py` and `final-shop-settings.py` complete native option/stock setup. These are controlled, existing-installation migrations, not automatic scripts to run against an arbitrary osCommerce database.
|
|
|
|
Shop customers map by central UUID. Verified contact email and username are synchronized after central sign-in; passwords are never retrieved, exposed or copied. Missing verified addresses retain a non-deliverable internal placeholder until a contact email is verified. Email collisions require support rather than silently merging customers. Native customer registration and password pages redirect to central sign-in, including currency-prefixed routes. Native backend roles remain untouched.
|
|
|
|
The shared menu and badge publisher strips legacy unmarked controllers before appending the current one. Regression coverage checks both publication idempotence and a single controller/observer.
|

Staff