Sorry - that was copy & paste cruft. Fixed.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Just completed and sent.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
... and I've replicated the issue locally. I'll post back when I've identified the root-cause.
Fix needed for virtual orders with no shipping address: such orders will show the message WARNING_ADDRESS_COUNTRY_NOT_FOUND
("Warning: One or more of the customer address fields contains a country name unknown to Zen Cart...")
edit_orders.php line ~ 677 change
toCode:if(!is_array($order->customer['country']) || !array_key_exists('id', $order->customer['country']) || !is_array($order->billing['country']) || !array_key_exists('id', $order->billing['country']) || !is_array($order->delivery['country']) || !array_key_exists('id', $order->delivery['country'])) { $messageStack->add(WARNING_ADDRESS_COUNTRY_NOT_FOUND, 'warning'); }
Code:if(!is_array($order->customer['country']) || !array_key_exists('id', $order->customer['country']) || !is_array($order->billing['country']) || !array_key_exists('id', $order->billing['country'])) { $messageStack->add(WARNING_ADDRESS_COUNTRY_NOT_FOUND, 'warning'); } else if ($order->delivery !== false && !empty($order->delivery['country'])) { if (!is_array($order->delivery['country']) || !array_key_exists('id', $order->delivery['country'])) { $messageStack->add(WARNING_ADDRESS_COUNTRY_NOT_FOUND, 'warning'); } }
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
@swguy, what version of EO are you running? That message being displayed for virtual orders was corrected last year via this GitHub commit for EO 4.1.6.
The code segment that you refer to currently reads (edit_orders.php, line 623):
Code:if (!$eo->eoOrderIsVirtual ($order) && ( !is_array($order->customer['country']) || !array_key_exists('id', $order->customer['country']) || !is_array($order->billing['country']) || !array_key_exists('id', $order->billing['country']) || !is_array($order->delivery['country']) || !array_key_exists('id', $order->delivery['country']) )) { $messageStack->add(WARNING_ADDRESS_COUNTRY_NOT_FOUND, 'warning'); }
Ah ok thanks I have 4.1.5-beta2.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I've just submitted v4.3.0 of Edit Orders to the Zen Cart plugins for review. That release contains changes associated with the following GitHub issues:
#50: Correct product.products_ordered calculation (thanks @siliconforks!).
#52: Correct PHP warning when an order-total doesn't include a "TAX_CLASS" setting.
#53: Additional notifiers for address-field insertions.
#54: Invalid value used in "Mock Cart" processing.
#55: Correct PHP "notify" issues.
#56: Correct order-total calculations when order-totals re-compute tax (e.g. group pricing), as reported by @swguy here.
#57: Properly report missing notifiers
I'll post back here once the download is available.
Bookmarks