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

#   Convert Cart in Wishlist Error

##

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

Less More

- Posts: 69
- Thank you received: 1
-
-

13 years 9 months ago [\#86127](#86127) by [BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")  *[Convert Cart in Wishlist Error](/forum/3-bug-report/77560-convert-cart-in-wishlist-error#86127 "From checkout page I click convert cart in wishlist and get this error:  Notice: Undefined property: stdClass::$prices in /home/basket/public&#95;html/components/com&#95;hikashop/views/cart/tmpl/showcart.php on line 408")* was created by *[BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")*

From checkout page I click convert cart in wishlist and get this error:

Notice: Undefined property: stdClass::$prices in /home/basket/public_html/components/com_hikashop/views/cart/tmpl/showcart.php on line 408

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#86142](#86142) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Convert Cart in Wishlist Error](/forum/3-bug-report/77560-convert-cart-in-wishlist-error#86142 "From checkout page I click convert cart in wishlist and get this error:  Notice: Undefined property: stdClass::$prices in /home/basket/public&#95;html/components/com&#95;hikashop/views/cart/tmpl/showcart.php on line 408")*

Hi,

Please replace in the file "components/com_hikashop/views/cart/tmpl/showcart.php", the block Code:

&lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;total-&gt;prices[0]-&gt;price_value, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); ?&gt;

By Code:

&lt;?php if(empty($this-&gt;total-&gt;prices)) { $this-&gt;total-&gt;prices[0] = new stdClass(); $this-&gt;total-&gt;prices[0]-&gt;price_value = 0; $this-&gt;total-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency(); } echo $this-&gt;currencyHelper-&gt;format($this-&gt;total-&gt;prices[0]-&gt;price_value, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); ?&gt;

Regards,

---

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

The following user(s) said Thank You: [BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NzU2MC1jb252ZXJ0LWNhcnQtaW4td2lzaGxpc3QtZXJyb3I/dG1wbD1tYXJrZG93bg==) 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.050 seconds

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