The order won't have a shipping method or shipping address. You would need to modify the function shipping() in admin/controller/sale/order.php to account for this.
tried to remove requirment of shipping still blank pageADD Creative wrote: ↑Tue Sep 28, 2021 12:52 amThe order won't have a shipping method or shipping address. You would need to modify the function shipping() in admin/controller/sale/order.php to account for this.
// Make sure there is a shipping method
if ($order_info && $order_info['']) {
Complete modifications. Error logs.uki wrote: ↑Tue Sep 28, 2021 2:07 amtried to remove requirment of shipping still blank pageADD Creative wrote: ↑Tue Sep 28, 2021 12:52 amThe order won't have a shipping method or shipping address. You would need to modify the function shipping() in admin/controller/sale/order.php to account for this.
// Make sure there is a shipping method
if ($order_info && $order_info['']) {
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Would need to be.uki wrote: ↑Tue Sep 28, 2021 2:07 amtried to remove requirment of shipping still blank pageADD Creative wrote: ↑Tue Sep 28, 2021 12:52 amThe order won't have a shipping method or shipping address. You would need to modify the function shipping() in admin/controller/sale/order.php to account for this.
// Make sure there is a shipping method
if ($order_info && $order_info['']) {
Code: Select all
if ($order_info) {
In order to help you, we'd need more details, such as the extensions used, theme installed , the contents of your OpenCart error.log and the server's error log.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Sounds like you should just pay a developer to sort this.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
As per ADD Creative:
You could separate the "&&" into nested conditionals:
You would also need to add conditional controls to the template file (admin/view/template/sale/order_shipping.twig), so that the rendered Dispatch Note is not littered with empty tables and non-sensical labels.
If you find any of this a bit intimidating, or don't know how to carry out these changes responsibly, please consider going with paulfeakins' advice.
I hope this helps!
But you will definitely spam your error log with "Unidentified index" Notices this way.ADD Creative wrote: ↑Tue Sep 28, 2021 5:01 amWould need to be.But you will probably run into other errors.Code: Select all
if ($order_info) {
You could separate the "&&" into nested conditionals:
Code: Select all
if($order_info) {
if($order_info['shipping_code']) {
//Do everything related to shipping here
}
//Do everything NOT related to shipping here
}
If you find any of this a bit intimidating, or don't know how to carry out these changes responsibly, please consider going with paulfeakins' advice.
I hope this helps!
Last edited by Gergely on Tue Sep 28, 2021 9:11 pm, edited 1 time in total.
What do you want a despatch note for if there is NO despatch or shipping.
Doesn't make sense - No shipping, only invoice exists, so what's your aim with a despatch note.
Doesn't make sense - No shipping, only invoice exists, so what's your aim with a despatch note.
Who is online
Users browsing this forum: Amazon [Bot], Baidu [Spider] and 318 guests