Skip to main content

Notice: Undefined property: in currency.php

13 years 9 months ago #86021 by scharfet
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.


Code:
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.

13 years 9 months ago #86048 by Jerome
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.

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

13 years 9 months ago #86217 by scharfet
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.042 seconds
Powered by Kunena Forum