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

#   Cart Print Button Error Notice

##

- **[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 10 months ago [\#84269](#84269) by [BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")  *[Cart Print Button Error Notice](/forum/3-bug-report/77238-cart-print-button-error-notice#84269 "When I select the print button for my cart, inside the popup at the bottom I get this error:  Notice: Undefined property: CheckoutViewCheckout::$cart in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446  Fatal error: Call to a member function displayButton() on a non-object in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446")* was created by *[BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")*

When I select the print button for my cart, inside the popup at the bottom I get this error:

Notice: Undefined property: CheckoutViewCheckout::$cart in /home/basket/public_html/components/com_hikashop/views/checkout/tmpl/cart.php on line 446

Fatal error: Call to a member function displayButton() on a non-object in /home/basket/public_html/components/com_hikashop/views/checkout/tmpl/cart.php on line 446

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NzIzOC1jYXJ0LXByaW50LWJ1dHRvbi1lcnJvci1ub3RpY2U/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: 4079
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#84377](#84377) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart Print Button Error Notice](/forum/3-bug-report/77238-cart-print-button-error-notice#84377 "When I select the print button for my cart, inside the popup at the bottom I get this error:  Notice: Undefined property: CheckoutViewCheckout::$cart in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446  Fatal error: Call to a member function displayButton() on a non-object in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446")*

Hi,

Please edit the file "component/com_hikashop/views/checkout/view.html.php" and replace: Code:

$this-&gt;assignRef('additional',$cart-&gt;additional); $this-&gt;assignRef('total',$cart-&gt;total); $this-&gt;assignRef('rows',$cart-&gt;products); $cart=hikashop_get('helper.cart'); $this-&gt;init();

By: Code:

$this-&gt;assignRef('additional',$cart-&gt;additional); $this-&gt;assignRef('total',$cart-&gt;total); $this-&gt;assignRef('rows',$cart-&gt;products); $cart=hikashop_get('helper.cart'); $this-&gt;assignRef('cart',$cart); $this-&gt;init();

In the function cart.

It should fix your problem.

Regards,

---

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

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

- **[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 10 months ago [\#84454](#84454) by [BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")  Replied by *[BasketBox](/forum/user/11810-basketbox "View BasketBox's Profile")* on topic *[Cart Print Button Error Notice](/forum/3-bug-report/77238-cart-print-button-error-notice#84454 "When I select the print button for my cart, inside the popup at the bottom I get this error:  Notice: Undefined property: CheckoutViewCheckout::$cart in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446  Fatal error: Call to a member function displayButton() on a non-object in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446")*

That solved the problem. I'm using the latest version but will I need to do this again after a Hikashop business upgrade?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NzIzOC1jYXJ0LXByaW50LWJ1dHRvbi1lcnJvci1ub3RpY2U/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: 4079
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#84473](#84473) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart Print Button Error Notice](/forum/3-bug-report/77238-cart-print-button-error-notice#84473 "When I select the print button for my cart, inside the popup at the bottom I get this error:  Notice: Undefined property: CheckoutViewCheckout::$cart in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446  Fatal error: Call to a member function displayButton() on a non-object in /home/basket/public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/cart.php on line 446")*

Hi,

The fix has been submitted, it would be include in the next HikaShop package.

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=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NzIzOC1jYXJ0LXByaW50LWJ1dHRvbi1lcnJvci1ub3RpY2U/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.048 seconds

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