hello, I have two warnings on admin / Order Total Modules.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER' (this will throw an Error in a future version of PHP) in //web/includes/modules/order_total/ot_vat_refund.php on line 22.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER' (this will throw an Error in a future version of PHP) in /web/includes/modules/order_total/ot_vat_reverse_charges.php on line 23.
Giovanni,
Zen Cart V2.1
I've just submitted v2.0.2 of VAT4EU to the Zen Cart moderators for review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issue:
#5: Correct PHP warnings when the order-total files are present, but not installed.
Good evening Lat9, as usual fast as the wind, the modifications have worked well thank you very much.![]()
Giovanni,
Zen Cart V2.1
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164
Hi
I am currently upgrading our site from 1.5.5e to 1.5.6c. I also have Edit orders installed (which are ocmpatible) However I am getting a broken screen on when I select Order > Edit
The log files displays the following error(s):
MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305 reads (in red and bold)[29-Feb-2020 17:02:26 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305
[29-Feb-2020 17:02:26 Europe/Berlin] Request URI: MyDrive\MyAdmin\edit_orders.php?page=1&oID=4&action=edit, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305.
MyDrive\MyAdmin\edit_orders.php(968) ReadsCode:$vat_info = '<tr>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td><strong>' . VAT4EU_ENTRY_VAT_NUMBER . '</strong></td>' . PHP_EOL . ' <td>' . zen_draw_input_field('vat_number', zen_html_quotes($vat_number), 'size="45"') . $valid_indicator . $hidden_fields . '</td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . '</tr>' . PHP_EOL . '<tr>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td><strong>' . VAT4EU_ENTRY_OVERRIDE_VALIDATION . '</strong></td>' . PHP_EOL . ' <td>' . zen_draw_checkbox_field('vat_number_override', '', ($vat_validated == VatValidation::VAT_ADMIN_OVERRIDE)) . '</td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . ' <td> </td>' . PHP_EOL . '</tr>' . PHP_EOL; $p2 .= $vat_info; break; // -----
It loads ok when I turn off the vat 4 eu. Please could anyone shed any light?Code:$module_name = (EO_ADDRESSES_DISPLAY_ORDER == 'CBS') ? 'eo_addresses_cbs.php' : 'eo_addresses_csb.php'; require DIR_WS_MODULES . 'edit_orders/' . $module_name; // ----- // Give a watching observer the chance to inject some additional, per-address-type, information. // $additional_rows = ''; $zco_notifier->notify('EDIT_ORDERS_ADDITIONAL_ADDRESS_ROWS', $order, $additional_rows); echo $additional_rows; ?>
Many thanks in advance.
Hmm, I can't find any instance of that zen_html_quotes function. I'll review the VAT4EU processing and should have an update tomorrow.
Bookmarks