[Skip to main content](#vessel-content)

#   Problem for displaying option in checkout page

##

- **[Energie](/forum/user/4779-energie "View Energie's Profile")**
- [![Energie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4779-energie "View Energie's Profile") Topic Author
- [ Offline](/forum/user/4779-energie)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 11 months ago [\#32026](#32026) by [Energie](/forum/user/4779-energie "View Energie's Profile")  *[Problem for displaying option in checkout page](/forum/3-bug-report/32026-problem-for-displaying-option-in-checkout-page#32026 "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")* was created by *[Energie](/forum/user/4779-energie "View Energie's Profile")*

Hello,

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjAyNi1wcm9ibGVtLWZvci1kaXNwbGF5aW5nLW9wdGlvbi1pbi1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 11 months ago [\#32052](#32052) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem for displaying option in checkout page](/forum/3-bug-report/32026-problem-for-displaying-option-in-checkout-page#32052 "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")*

Hi,

Please try to add the line:
if(!isset($row-&gt;prices[0])) $row-&gt;prices[0]-&gt;price_value=0;
before that line in that file via FTP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjAyNi1wcm9ibGVtLWZvci1kaXNwbGF5aW5nLW9wdGlvbi1pbi1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Energie](/forum/user/4779-energie "View Energie's Profile")**
- [![Energie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4779-energie "View Energie's Profile") Topic Author
- [ Offline](/forum/user/4779-energie)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 11 months ago [\#32062](#32062) by [Energie](/forum/user/4779-energie "View Energie's Profile")  Replied by *[Energie](/forum/user/4779-energie "View Energie's Profile")* on topic *[Re: Problem for displaying option in checkout page](/forum/3-bug-report/32026-problem-for-displaying-option-in-checkout-page#32062 "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")*

Thank's Nicolas,

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjAyNi1wcm9ibGVtLWZvci1kaXNwbGF5aW5nLW9wdGlvbi1pbi1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 11 months ago [\#32086](#32086) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem for displaying option in checkout page](/forum/3-bug-report/32026-problem-for-displaying-option-in-checkout-page#32086 "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")*

Please add the line:
if(!isset($price-&gt;price_currency_id))$price-&gt;price_currency_id = hikashop_getCurrency();

before that line and that should solve the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjAyNi1wcm9ibGVtLWZvci1kaXNwbGF5aW5nLW9wdGlvbi1pbi1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Energie](/forum/user/4779-energie "View Energie's Profile")**
- [![Energie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4779-energie "View Energie's Profile") Topic Author
- [ Offline](/forum/user/4779-energie)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 11 months ago [\#32186](#32186) by [Energie](/forum/user/4779-energie "View Energie's Profile")  Replied by *[Energie](/forum/user/4779-energie "View Energie's Profile")* on topic *[Re: Problem for displaying option in checkout page](/forum/3-bug-report/32026-problem-for-displaying-option-in-checkout-page#32186 "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")*

Yep!
It's ok.
Thank's a lot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjAyNi1wcm9ibGVtLWZvci1kaXNwbGF5aW5nLW9wdGlvbi1pbi1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
