For OpenCart 2.3, 3.0, 4.0 and 4.1
What the shopper sees
WHAT YOU SET (Extensions > Modules > Supreme Gift Wrap)
- A box right under the cart page title: a tick box with the fee ("+$3.00", "+$3.00 per item" or "free"), the gift message with a "characters left" counter, an optional "From" name and an optional "Hide the prices on the packing slip" box.
- "Save gift options" keeps the choice for the visit. The fee shows at once as its own line next to Sub-Total and Total, and goes away when the box is unticked.
- Text typed by shoppers is cleaned of tags and cut at its limits; it is shown as plain text, never as code. After a paid order the next cart starts without a gift; a failed payment keeps the gift for the next try.
- Status, the fee (0 to 999; 0 = free), one fee for the whole order or one for every item, the name of the line in the totals, the longest message (50 to 500 characters), whether to ask for the "From" name, whether to offer "hide the prices", and the accent colour of the box.
- The numbers: gift orders in all, last 30 days, fees in the last 30 days, and a paged list of the orders with a gift (message, sender, fee).
What you see on an order
- The admin order page shows a GIFT note with the message and the sender. The invoice shows it too; when the buyer asked for no prices, the invoice carries the note "send the packing slip (shipping list), not this invoice". The shipping list shows the gift and "No prices on this slip.".
- The gift is stored with the order (table oc_gift_wrap_order) and kept if you uninstall.
Safe by design
- The fee is calculated on the server from your settings; the browser cannot send a price.
- Messages are escaped on every admin page; admin pages need Access, changes need Modify.
- All storefront wording is in one language file: copy it into another language folder and translate the right-hand side.
Notes
- No tax is added to the gift fee.
- The admin gift note and the settings list headings are in English only.
- The shipping list of OpenCart never shows prices; "hide the prices" works by telling the packer to use it instead of the invoice. It does not change the invoice itself.
- Tested on OpenCart 4.1.0.4, 4.0.2.3, 3.0.5.1 and 2.3.0.2. On 2.3 the shipping list part could not be checked here: the core 2.3 shipping list stops on PHP 8 before any module.