Settings¶
Pre-Order keeps its settings in OpenCart's own setting table, under the
module_preorder group. You set them at
Admin > Extensions > Extensions > Modules > Pre-Order.
Each key below carries where it applies. per store means a multi-store install can hold a different answer per storefront, and both are honoured: a read takes what that store holds, then what the default store holds, then the shipped default. install-wide means one thing serves every storefront, and the key's own description names that one thing.
Scope¶
| Key | Default | What it does |
|---|---|---|
module_preorder_statusinstall-wide |
0 |
Whether the module is enabled. Set by the Status switch on this extension's own settings screen. |
Merchandising¶
preorder — install-wide
Whether a product is sold ahead of stock and on what terms, set on that product's own Pre-Order tab. The combining rule is this ladder's own and is stated here rather than assumed, because the repository has two of them and they disagree — this one resolves by precedence and delivery_date's lead days combine by maximum. An option-value row overrides the product row; no row at all means the option value inherits it. Not overridden is the absence of a row, with both of its consequences: a product-level toggle that is off writes nothing, because no rows for a product is what "this is not a pre-order" is stored as, and an option value that must say "not a pre-order, even though the product is" gets a row of its own saying so rather than the column becoming a tri-state. Install-wide because one oc_product row and one oc_product_option_value row are shared between storefronts.
status— Whether this row is a pre-order. A0row is an option value saying it is not one while the product is. Starts at1.payment_mode— How the customer pays:defertakes the order without charging and emails a payment link once the stock lands,fullcharges at checkout through your own payment methods as any other product does. Deferring is the value a new row starts at, because the reverse would charge somebody in full for an item they are waiting on. Starts atdefer.date_expected— The date the stock is expected, shown to the customer. Empty is "no date announced", which is later than any known date when a line resolves several rows at once. Starts at empty.intake_cap— Take up to N beyond what you hold: how many units the storefront may take on this row's counter beyond what that counter holds. Blank is no cap, which is how every row set before 1.7.0 reads;0means only what you hold. The allowance is the cap plus the counter's balance — on-hand less every unpaid, unexpired line owed against it — so a charge-in-full line, whose units are already off on-hand, and a deferred one both count. A basket whose quantities on a counter exceed its allowance is refused at checkout, with a message naming the product and how many more it can take — even when the counter has stock on the shelf, because that stock is owed to the customers already waiting; a product page whose allowance is used up shows the product, or that option value, as full, with its add-to-cart button disabled. A counter that does not subtract stock is never capped. Storefront intake only: the admin order editor is not capped, and nothing already placed is touched. Starts at empty.date_closes— Take pre-orders until: the last day a new basket may take this row. Blank is open, which is how every row set before 1.7.0 reads. Closed from the next day by the store's own clock, and read then as switched off for new baskets only — as a0row rather than no row, so a closed option value does not fall back to the product row. Lines already placed, the release pass, End when the stock arrives, Owed by product and the admin order editor are unaffected. Starts at empty.
| Key | Default | What it does |
|---|---|---|
module_preorder_payment_modeinstall-wide |
defer |
The payment mode a pre-order row on the product form starts at. A form default and nothing more: it is read when the tab is drawn and never at runtime, because what a line does is the mode frozen onto it at checkout. A store that sells one way round should not have to change the same select on every product. |
module_preorder_end_on_stockinstall-wide |
0 |
Whether saving a product ends its pre-order once the stock has arrived. On, a product save that leaves every counter a live pre-order row of it watches holding at least one unit beyond everything owed, with no line still waiting, removes every pre-order row of that product — which is what the Pre-Order tab stores with the product switched off. At exactly enough stock it stays a pre-order, because there is no spare unit to sell as an ordinary product. A counter that does not subtract stock never ends one. The release pass runs first, so every waiting line the stock covers is marked ready and its order asked to pay before the rows go; lines already placed keep the date and payment mode the customer was told. A product save ends it, or the daily sweep while Release on the daily sweep is on; without that switch, an import or an API that writes the quantity without core's product save does not. Off by default, because it switches off something the merchant switched on. |
module_preorder_release_on_sweepinstall-wide |
0 |
Whether the daily sweep runs the release pass a product save runs. On, each sweep looks at every product with a line still waiting on stock and every product with a ready line on an order not yet asked to pay, oldest line first, and gives each exactly what a save gives it: lines its stock now covers are marked ready, and orders that may be asked are sent the same payment request, worded the same and linked to the order's own store — so a quantity written by an import or an API is released within a day with no product save. The contention gate still holds: an order on a counter that does not cover everything owed waits for you on the Pre-Orders screen. At most 100 payment requests go out per sweep, and the rest go on the next one. With End when the stock arrives also on, the same sweep then ends every pre-order the stock now covers. The module's Status switch gates it, as it gates the save. Off by default, because it moves payment emails from your own product save to a scheduler. |
Payment window¶
| Key | Default | What it does |
|---|---|---|
module_preorder_days_to_payinstall-wide |
14 |
How long a payment request stays payable, in days. One number governs the link, the reminder at its midpoint and the abandonment at its end, because the customer's ability to pay and the merchant's willingness to wait are the same policy from two sides. 0 means never expire: no reminder, no auto-cancel, one choice rather than three. |
Payment method¶
| Key | Default | What it does |
|---|---|---|
payment_preorder_statusinstall-wide |
1 |
Whether the placeholder payment method is offered at checkout. Set at Extensions > Extensions > Payments > Pre-Order rather than on this module's own screen, because OpenCart gives a payment extension a setting code of its own. On, because the module's install writes this method rather than leaving a merchant to find it, and a pre-order cannot be taken without it — the module's own screen is what warns you when it is off. Unlike the module's own status this one is remembered across an update, because it is this extension that writes it either way and putting back the shipped 1 would be reversing your choice rather than declining to make one. |
payment_preorder_sort_orderinstall-wide |
1 |
Where the placeholder method sorts among your other payment methods at checkout. Read by core, exactly as it is for every payment extension, and stored under the method's own setting code. |
What the customer is told¶
| Key | Default | What it does |
|---|---|---|
module_preorder_copyinstall-wide |
empty | The merchant's own wording for the four sentences a shopper reads, per language code. Read whole to render one page and written whole by one form POST, so it is one setting key holding an array rather than a table. Empty for a language means the wording this extension ships, which is what the box shows in grey. |
Surfaces¶
| Key | Default | What it does |
|---|---|---|
module_preorder_module_limitinstall-wide |
4 |
How many product cards the Coming soon layout module shows wherever you place it, from 1 to 12. The shelf lists the products with a pre-order still open — a live row, on the product or on any option value, whose closing date has not passed — soonest expected date first and "no date announced" last, each drawn as the store's own product card. One number for every placement, because the module is single-instance: OpenCart keeps no per-placement settings for it. Install-wide because a placement is a row of OpenCart's own layout table, which has no storefront column. An update keeps it, and keeps where you placed the module too: the placements are copied aside just before OpenCart's own uninstall deletes them and put back by the install that follows, skipping any layout you deleted in between. |
Advanced¶
| Key | Default | What it does |
|---|---|---|
module_preorder_sweep_secretinstall-wide |
empty | The shared secret the payment-window sweep is compared against when it is called over the web, generated at install. It is what a merchant with no shell pastes into a host's cron panel or a third-party cron service, and it matters most on the OpenCart release whose own scheduler cannot run at all. Rotating it is its only control: there is no free-text edit, because a secret a merchant can type is a secret a merchant can shorten. An empty one refuses every call rather than admitting every call. It is remembered across an update on Rotate's own argument — rotating stops a cron line that was working until it is re-pasted, which is why that button confirms and says so, and a control that needs a confirm dialog is a control an update must not operate. An update is an uninstall followed by an install, so the memory that keeps it across an update also brings it back after an uninstall and a reinstall: uninstalling does not revoke it, and Rotate is the only thing that does. |
module_preorder_diary_verbose_untilinstall-wide |
0 |
When detailed logging stops, as a unix timestamp, and 0 is off. Turning Detailed logging on from this extension's settings form stores the moment two days from now; the writer compares that against the clock every time it is asked for a DEBUG line, so the window closes on its own with no scheduled task and nothing to clean up. While it is open this extension records what it did in far more detail, and the shared diary consequently holds less history. |
module_preorder_api_enabledinstall-wide |
0 |
Whether the extension answers API requests at all. Off, every API route answers 404 api_disabled in the API's own JSON envelope, so an extension with its API off is shaped like one that has none. Read once for the whole installation from the default store rather than per store, because the one thing it serves is OpenCart's own API user, which has no store of its own. It is a separate switch from the extension's own Status, and the two are read independently: the API answers whether or not pre-orders are being taken, because what each customer is waiting for is the merchant's own record and a storefront switch should not hide it. The API only ever reads; no payment link is readable through it. |
What you cannot change, and why¶
These are fixed on purpose. Each one is a decision with a reason beside it rather than a setting nobody got round to adding.
Merchandising¶
Inheritance is per row and not per field, and that is a limit rather than an oversight. If any option value the customer picked has a row of its own, only those rows speak and the product-level row is ignored entirely — so an option value that overrides the payment mode supplies its own expected date too, rather than borrowing the product's. The alternative breaks on the commonest shape there is: a product with a Size group you configured and a Colour group you never touched would have every Colour value inherit the product row, so every line resolves to a pre-order and per-option granularity is defeated by an option group that has nothing to do with the decision. Silence from an option value contributes nothing, never the default.
A pre-order row holds one of exactly two payment modes and there is deliberately no third meaning "inherit". The settings screen supplies the mode a newly created row starts at, which is a form default and is never consulted at runtime — what a line does is the mode frozen onto it when the order was placed, so a row that deferred to a setting could have its terms changed underneath a customer who has already been told them.
When the stock arrives, the pre-order ends for the whole product or not at all. A product with one option value still short keeps every value a pre-order until all of them are covered. Ending one option value alone would need two different writes, depending on whether the product-level row is itself a pre-order, and would leave a line that watches one ended counter and one live one.
The cap is checked when a basket is checked, never reserved. Two baskets checked out in the same moment can both pass it, so it can be overrun by one basket's worth. It is never per customer, because a guest has no identity here, and it does not bind the admin order editor, where the merchant places a line deliberately. Reserving units would be an allocation, which this extension does not do.
Surfaces¶
A product card never reads stock, so a product whose cap is full can still show its pre-order line on a listing until it leaves the pre-order. That includes the Coming soon shelf, which is a listing too: a full product stays on it, line and all, while its row is open. The product page and the basket are where the cap holds.
Where the pre-order line is spliced into a product card, and the markup it looks for, are fixed. A template this extension cannot place the line in keeps core's own card untouched rather than losing it — so a theme that rewrote the price block loses the line, and the store keeps the page.
| Rule | Value |
|---|---|
| The price block, which both releases open this way | <div class="price"> |
| Its close, the first one after it | </div> |
| The condition the block sits in | /\G\s*\{%\s*endif\s*%\}/ |
The expected date is shown as a date, never as "in 3 weeks". A relative date goes stale on a cached listing, and once the day has passed it needs wording of its own; the Pre-Order tab already flags a date that has passed, which is where a merchant meets it.
What the customer is told¶
Pre-Order sends two emails of its own: the payment request and its reminder. A cancelled line is reported by OpenCart's own order history with Notify ticked. There is no expiry email, because one sent after the fact is a complaint rather than a service, and no "delayed" email, because what the customer was told does not move: the date frozen onto their line is the one they bought against.
No email when a paid line's stock arrives. The release pass never touches a line that is already paid, so there is no per-line arrival for an email to be sent from; shipping it is announced the way every order's is, by OpenCart's own order history with Notify ticked.
Merchandising¶
A pre-order is set on the product it is about, on that product's own Pre-Order tab, and there is no screen that marks many products at once. Copying a product keeps its pre-order rows, which covers "one more like this one".
A product becomes a pre-order because you marked it, never because its stock ran out. OpenCart's own Pre-Order stock status with Stock Checkout on already serves a plain backorder; starting a pre-order on stock would make every product card read stock, which a card deliberately never does.
What the customer is told¶
There is no account page listing a customer's pre-orders. Each order's own page shows every pre-order line's state and expected date, and OpenCart's order history lists the orders.