
Originally Posted by
lucidlee
All
As of today ozpost still only officially supports versions of zencart up to 1.5.5f, which I found out the hard way when working on a 1.5.6c upgrade. If anyone has in fact got it functioning I'd love to hear how.
.
I have OzPost v4.2.7 running on ZCV1.5.6a in production, and OzPost v4.2.7 on ZCv1.5.6c in TEST.
To be compatible with PHP 7.1+ In ozpost.php I added:
additional defines at the start of the code approx line 379
Code:
if (!defined('AUD')) define('AUD','');
if (!defined('AUS')) define('AUS','');
if (!defined('DIR_FWS_ADMIN')) define('DIR_FS_ADMIN', '/MYADMINDIRECTORY/');
changed to declare $items NOT AS A String line 504
Code:
$parcelWidth = $parcelLength = $parcelHeight = $parcelWeight = $shipping_num_boxes_display = $dg = 0 ;$items = []; $enable_debug = "";
line 2712 sizeof() Parameter must be an array or an object that implements Countable
Code:
if (sizeof($methods) == 0 ) {
become
Code:
if (isset($methods) && sizeof($methods) == 0 ) {
I also have a note to myself:
"Possible error updating the template file. If you experience problems please replace
/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php
with a zencart original and try again "
The "Shipping Modules" page in Admin is horribly formatted since zc1.5 but I have not made time to fix it as once the settings are defined, I rarely visit it.
Hope this helps.
=======
environment Dev: Zen Cart 156c; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
packages / add-ons:
ckeditor ; clone template 1.2.0; payment module fee; Direct bank Deposit V1.5.revised; zencart155 securepayxml (modified); ozpost v4.2.7;
ceon_back_in_stock_notifications.9 (modified); export_shipping_information_V1.3.5 (modified);
edit_orders-4.3.5; master password 4; admin log in as customer; ZCA bootstrap template-for-156-v2.0.0c; image checker 2.0; sales report 3.2.2; email archive manager 1-8e; zenNoncaptcha v0.5
Bookmarks