Adds an HS code and country of origin field to products in the PrestaShop back office.
Tested/updated for the PrestaShop module structure used by PrestaShop 1.7, 8 and 9.
For PrestaShop 8.1 and 9 the module uses the modern product form hooks:
actionProductFormBuilderModifieractionAfterCreateProductFormHandleractionAfterUpdateProductFormHandler
For older product pages it keeps the legacy fallback hooks:
displayAdminProductsExtradisplayAdminProductsMainStepLeftColumnMiddleactionProductUpdateactionAdminProductsControllerSaveAfter
The module adds these columns to ps_product:
hscodeasVARCHAR(32)originasVARCHAR(255)
hscode is stored as text, not as an integer, so leading zeroes and formatted customs codes are not lost.
The pdf folder contains example invoice and delivery slip templates. Copy these files to your theme's PDF override folder only if you want HS code and origin shown on generated PDFs.
After installing/upgrading in PrestaShop, clear the cache. If your shop uses overrides, make sure PrestaShop regenerates the class index.