- Posts: 3
- Thank you received: 0
Problem for displaying option in checkout page
14 years 9 months ago #32026
by Energie
Problem for displaying option in checkout page was created by Energie
Hello,
I have the following php error message when i display the checkout page :
If you have any idea for resolving it, i'm in!
Best,
Hima Energie
I have the following php error message when i display the checkout page :
Code:
Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/hima-therapie-17/components/com_hikashop/views/checkout/tmpl/cart.php on line 224
Warning: get_object_vars() expects parameter 1 to be object, null given in /Applications/MAMP/htdocs/hima-therapie-17/components/com_hikashop/views/checkout/tmpl/cart.php on line 224
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/hima-therapie-17/components/com_hikashop/views/checkout/tmpl/cart.php on line 224
Pierre d'énergie Étoile ( + 23,41 € )
If you have any idea for resolving it, i'm in!
Best,
Hima Energie
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32052
by nicolas
Replied by nicolas on topic Re: Problem for displaying option in checkout page
Hi,
Please try to add the line:
if(!isset($row->prices[0])) $row->prices[0]->price_value=0;
before that line in that file via FTP.
Please try to add the line:
if(!isset($row->prices[0])) $row->prices[0]->price_value=0;
before that line in that file via FTP.
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32062
by Energie
Replied by Energie on topic Re: Problem for displaying option in checkout page
Thank's Nicolas,
it's ok for cart.php file but now, i've got an other error :
it's ok for cart.php file but now, i've got an other error :
Code:
Notice: Undefined property: stdClass::$price_currency_id in /Applications/MAMP/htdocs/hima-therapie-17/components/com_hikashop/views/checkout/tmpl/listing_price.php on line 32
137,12 €
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32086
by nicolas
Replied by nicolas on topic Re: Problem for displaying option in checkout page
Please add the line:
if(!isset($price->price_currency_id))$price->price_currency_id = hikashop_getCurrency();
before that line and that should solve the problem.
if(!isset($price->price_currency_id))$price->price_currency_id = hikashop_getCurrency();
before that line and that should solve the problem.
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32186
by Energie
Replied by Energie on topic Re: Problem for displaying option in checkout page
Yep!
It's ok.
Thank's a lot.
It's ok.
Thank's a lot.
Please Log in or Create an account to join the conversation.
Time to create page: 0.164 seconds