web/website/ops/oscommerce
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 07:55:01 +01:00
..
dune-oscommerce.css Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dune-shop-cards.css Compact the native shop collections and load their product artwork 2026-11-24 20:41:34 +01:00
DuneAccount.php Refresh existing shop bridge references without duplicating scripts 2026-11-25 01:02:53 +01:00
DuneProductRules.php Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
DuneShopController.php Compact the native shop collections and load their product artwork 2026-11-24 20:41:34 +01:00
enable-season-test-order.py Unify website chrome, expand workspace menus and retire Azuriom 2026-11-25 07:55:01 +01:00
final-shop-settings.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
finish-catalog-edging.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
install-sash-rules.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
oscommerce-http.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
oscommerce-https.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
oscommerce-pool.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
publish-imperial-heralds.py Compact the native shop collections and load their product artwork 2026-11-24 20:41:34 +01:00
publish-oscommerce-portal.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
README.md Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
setup-osc-account.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test-shop-design-bootstrap.php Refresh existing shop bridge references without duplicating scripts 2026-11-25 01:02:53 +01:00

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.

Season test-order exception

At the owner's request, enable-season-test-order.py restores the original Season sash artwork and makes ONLY that product orderable for testing. The native offline payment method is labelled Bank transfer — TEST ORDER, explicitly says not to transfer money, and leaves orders awaiting payment. The shop offers no online payment method. Sash shipping is EUR20 per order under the existing tax setup. No manufacturing or fulfillment integration is started. Other imports retain server-side preview guards. The preferred name and side-edging selections remain required.