Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Disable your ad blocker to continue using our website.
Thanks for posting your solution. I have copied the exact text in your code sample and saved in includes/hooks/admin/siteWide/order_extend.php. I know it's read because without <?php at the top it throws an error, however I don't see the new column in the orders table?
So I added my own hook line just under the table definition line to admin/includes/actions/orders/views/default.php and now the code works as expected and is exactly what I need, but my question now is how do I do this without editing core files?
dmenhinick wrote: ↑Mon Aug 29, 2022 9:21 am
So I added my own hook line just under the table definition line to admin/includes/actions/orders/views/default.php and now the code works as expected and is exactly what I need, but my question now is how do I do this without editing core files?
you don't need to edit the core , try this (save it includes/hooks/admin/orders/xxxx.php) change xxxx as you want