Notice: Undefined property: in currency.php

  • Posts: 86
  • Thank you received: 2
11 years 9 months ago #86021

Hello,

I am still configurating Hikashop (website it is not published yet).
I found an other error-message: It appears during the chickout-process and also in the backend.

Notice: Undefined property: stdClass::$tax_amount in /homez.428/monpetit/www/administrator/components/com_hikashop/classes/currency.php on line 1526.


if(!empty($element->variants)){
				foreach($element->variants as $k => $row){
					if(empty($row->discount) && !empty($row->prices)){
						$this->selectDiscount($element->variants[$k],$discounts,$zone_id);
						if(!empty($element->variants[$k]->discount)){
							foreach($row->prices as $k2=>$price){
LINE:1526: addDiscount($element->variants[$k]->prices[$k2],$element->variants[$k]->discount,$discount_before_tax,$zone_id,$element->product_tax_id);

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 9 months ago #86048

Hi,

This message is just a notice, it's a warning. It would not generate a problem for your store.
In live mode, it is better to not display warning or error messages.
If you want to fix the problem, please put a "@" before the call like "@$element->tax_amount".
The problem is that, there is no "tax_amount" in your line "1526" so I think that you didn't displayed the right one.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 86
  • Thank you received: 2
11 years 9 months ago #86217

SOLVED.

I had an error in tax-rate and tax-category.

A product refered to a tax-category which I had deleted. I think this was the cause. After creating the category again, it worked.

Thank you.

The following user(s) said Thank You: Jerome

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

Time to create page: 0.061 seconds
Powered by Kunena Forum