Register cart, order and combination extra fields in demoextrafield · PrestaShop/example-modules@2bff685 · GitHub
Skip to content

Commit 2bff685

Browse files
committed
Register cart, order and combination extra fields in demoextrafield
Companion of PrestaShop/PrestaShop#42538, one example per newly supported entity: - cart/delivery_note (COMMON — the cart is a COMMON-only entity): seeded by actionCartSave, displayed on the checkout summary (displayCheckoutSummaryTop reading {$cart.extra_properties.demoextrafield.delivery_note}), and copied onto the order at actionValidateOrder — the intended pattern for cart values that must survive checkout; - order/delivery_note (COMMON), registered with the natural entity name 'order' (the core resolves the orders table and id_order primary key), displayed on the customer's order detail page; deliberately no order-grid placement (id-first pagination limitation, core #42536); - combination/ean_verified (COMMON, exposed on the combinations API list) and combination/restock_note (SHOP), registered as 'combination' (resolved to product_attribute); - the customer extra_json field becomes the JSON showcase: the module writes a PHP structure (encoded by the core for storage) and the shared template iterates the decoded structure reads return; - README refreshed: full entity inventory, the snake_case extra_properties Smarty key (extraProperties is Admin-API-JSON-only), the COMMON-only cart caveat.
1 parent 4e19b94 commit 2bff685

5 files changed

Lines changed: 345 additions & 6 deletions

File tree

‎demoextrafield/README.md‎

Lines changed: 65 additions & 4 deletions

‎demoextrafield/demoextrafield.php‎

Lines changed: 233 additions & 1 deletion

0 commit comments

Comments
 (0)