Prices with Tax Info

Notice error - Prices with Tax Info

Notice error

by Pierre_P » Sat May 28, 2022 9:14 am

Hello @raiwa

This module is working perfectly on a new install like 1.0.8.14 pro

For some reason when i enable Shopping Cart box i get error

Warning: A non-numeric value encountered in /usr/www/users/---/phoenix8/templates/override/includes/hooks/shop/siteWide/priceTax.php on line 60

In bm_shopping_cart.php

Code: Select all

$cart_totalised = sprintf(MODULE_BOXES_SHOPPING_CART_BOX_CART_TOTAL, $currencies->format($_SESSION['cart']->show_total()));
Removing this part and $cart_totalised in template it will give no warning

Ver: 1.0.8.14 with all updates to .15
Happens on any pages
No core files changed
To try and isolate this error i removed all modules - just the error and shopping cart box showing on page.
File removed all shop hooks

Any ideas?
User avatar
Pierre_P
VIP Member
VIP Member
Posts: 100
Joined: Fri Mar 12, 2021 5:06 am
Contact:

Re: Notice error

by raiwa » Sat May 28, 2022 9:49 am

in: templates\override\includes\hooks\shop\siteWide\priceTax.php
change line 54 to:

Code: Select all

      public function format($number, $calculate_currency_value = true, $currency_type = null, $currency_value = null, $products_tax = '', $show_tax_info = true) {
And line 56 to:

Code: Select all

          $currency_type = $_SESSION['currency'] ?? DEFAULT_CURRENCY;
Note that $currency_type and $currency_value has been updated to null instead of "". THis is a core update which I missed to apply to the class extension.
Please confirm and I'll upload the update.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1215
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Notice error

by raiwa » Sat May 28, 2022 3:09 pm

Please update to Version 4.4
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1215
Joined: Sat Dec 21, 2019 8:08 am
Contact: