Good Morning
allpecans is still going strong with the multiship. Site has been upgraded to 1.5.6c and we've made some changes aesthetically that I'll probably address on github. Really all minor but, the move to PHP 7.2 has created a problem with includes/modules/pages/account_history/header_php_account_history_multiship.php on line 10.
Code:
<?php// ---------------------------------------------------------------------------
// Part of the Multiple Shipping Addresses plugin for Zen Cart v1.5.5 and later
//
// Copyright (C) 2014-2017, Vinos de Frutas Tropicales (lat9)
//
// @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
// ---------------------------------------------------------------------------
//
if (count($accountHistory) > 0) {
foreach ($accountHistory as &$currentOrder) {
$check = $db->Execute(
"SELECT o.order_total FROM " . TABLE_ORDERS_MULTISHIP . " om
INNER JOIN " . TABLE_ORDERS . " o
ON o.orders_id = om.orders_id
WHERE om.orders_id = " . $currentOrder['orders_id'] . "
LIMIT 1"
);
if (!$check->EOF) {
$currentOrder['order_name'] = MULTISHIP_MULTIPLE_ADDRESSES;
$currentOrder['order_total'] = $check->fields['order_total'];
}
}
}
I've spent the morning trying to learn about 7.2's change for count and recursive versus plain count or https://www.php.net/manual/en/function.count.php and none of my trials seem to work. I figure you'll do your usual and get the right combo as soon as you see it.
THANX for your help and work with Zen Cart.
Bookmarks