Originally Posted by
jonoo62
.....the plot thickens.......
if only it were so.... (i love a thick plot...)
php 5 and php 7 handle indirect vars differently. see:
https://goo.gl/yQf8sf
you could try changing the code to:
PHP Code:
// handle other order totals:
global ${$order_totals[$i]['code']};
if ((substr($order_totals[$i]['text'], 0, 1) == '-') || (isset(${$order_totals[$i]['code']}->credit_class) && ${$order_totals[$i]['code']}->credit_class == true)) {
i'm not real sure about the changes on the second line; and you may need to play around with that, ie the ending curly brace may need to be after credit_class. but no doubt, to me, this is what the problem is about.
best.
Bookmarks