Undefined property: stdClass::$tax_namekey

  • Posts: 39
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #327294

-- url of the page with the problem -- : www.tashatudorandfamily.com/
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 3.7.25
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$tax_namekey in /chroot/home/tasha/tashatudorandfamily.com/html/administrator/components/com_hikashop/views/order/tmpl/show_additional.php on line 127

I am getting the following error on my backend Order panel in the "addiitonal information" box and the client is reporting that it is showing up on the front end during the checkout process as well.

This just started after updating to the latest version of Hikashop Business 2 days ago.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #327295

Hi,

For the error on the frontend, change the code:

if(isset($total->prices[$k]->taxes[$tax->tax_namekey])) {
							$total->prices[$k]->taxes[$tax->tax_namekey]->tax_amount += $tax->tax_amount;
							$total->prices[$k]->taxes[$tax->tax_namekey]->amount += $tax->amount;
						} else
							$total->prices[$k]->taxes[$tax->tax_namekey] = clone($tax);
to:
if(!empty($tax->tax_namekey)) {
							if(isset($total->prices[$k]->taxes[$tax->tax_namekey])) {
								$total->prices[$k]->taxes[$tax->tax_namekey]->tax_amount += $tax->tax_amount;
								$total->prices[$k]->taxes[$tax->tax_namekey]->amount += $tax->amount;
							} else
								$total->prices[$k]->taxes[$tax->tax_namekey] = clone($tax);
						}
in the file /administrator/components/com_hikashop/classes/currency.php and it will fix it.
For the backend, you can edit the file /administrator/components/com_hikashop/views/order/tmpl/show_additional.php and change the line:
<td class="key"><label><?php echo hikashop_translate($tax->tax_namekey); ?></label></td>
to:
<td class="key"><label><?php echo hikashop_translate(@$tax->tax_namekey); ?></label></td>
We'll add these patches on our end.

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
3 years 9 months ago #328860



we still don't have this patch on our end
could you add it?


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:
Last edit: 3 years 9 months ago by progreccor.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 9 months ago #328868

Hi,

The patch is in the build currently available on our website.
So if you download the install package of the latest version from our website and install it on yours, it should add the patch, or you can just do the modification in the file, as explained in my previous message here.

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
3 years 9 months ago #329001

I have downloaded latest version (4.4.0) today and there is no this patch in file...
could you add it on your end?


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:
Last edit: 3 years 9 months ago by progreccor.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 9 months ago #329054

Hi,

You're right. It wasn't there. My bad for not checking properly.
I've added it now. Please check again.

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum