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

#   Error PHP 8, Cart Module

##

- **[maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")**
- [![maurizio.dematteis@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/53419-maurizio-dematteis-gmail-com)

Less More

- Posts: 18
- Thank you received: 2
-
-

3 years 8 months ago -  3 years 8 months ago [\#349604](#349604) by [maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")  *[Error PHP 8, Cart Module](/forum/25-install-update/905964-error-php-8-cart-module#349604 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.x -- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$cart&#95;id in /homepages/19/d950326389/htdocs/cms/joom4/templates/gk&#95;storefront/html/com&#95;hikashop/product/cart.php on line 132  Hello, i have an error message in the cart module.  Thank you and with best regards Maurizio  the code snippet:")* was created by *[maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")*

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8.x
-- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$cart_id in /homepages/19/d950326389/htdocs/cms/joom4/templates/gk_storefront/html/com_hikashop/product/cart.php on line 132

Hello,
i have an error message in the cart module.

Thank you and with best regards
Maurizio

the code snippet: Code:

&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart' . $url_itemid, false, true); ?&gt;" method="post" name="&lt;?php echo $form; ?&gt;"&gt; &lt;div&gt; &lt;div&gt; &lt;?php $k = 0; $this-&gt;cart_product_price = true; $group = $this-&gt;config-&gt;get('group_options', 0); $cart_id = 0; $app = JFactory::getApplication(); $productClass = hikashop_get('class.product'); $defaultParams = $this-&gt;config-&gt;get('default_params'); $this-&gt;image = hikashop_get('helper.image'); $height = $this-&gt;config-&gt;get('thumbnail_y'); $width = $this-&gt;config-&gt;get('thumbnail_x'); foreach ($this-&gt;rows as $i =&gt; $row) { $cart_id = $row-&gt;cart_id; // LINE WITH THE ISSUE if (empty($row-&gt;cart_product_quantity) &#124;&#124; @$row-&gt;hide == 1) continue; if ($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $productClass-&gt;addAlias($row); ?&gt;

- [ ![Screenshot2023-02-26120755.png](/forum/attachment/56581) ](/forum/attachment/56581 "...2-26120755.png") [ ](/forum/attachment/56581?download=1 "...2-26120755.png")

Last edit: 3 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] tag is NICE

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNTk2NC1lcnJvci1waHAtOC1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

3 years 8 months ago [\#349613](#349613) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error PHP 8, Cart Module](/forum/25-install-update/905964-error-php-8-cart-module#349613 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.x -- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$cart&#95;id in /homepages/19/d950326389/htdocs/cms/joom4/templates/gk&#95;storefront/html/com&#95;hikashop/product/cart.php on line 132  Hello, i have an error message in the cart module.  Thank you and with best regards Maurizio  the code snippet:")*

Hi,

This warning comes from the view override in your template.
This line is not in the default view file in HikaShop.
You could rename the file templates/gk_storefront/html/com_hikashop/product/cart.php to something else via FTP to deactivate the override, and that would fix the warning. However, you'll loose the look of your cart module.
You could also turn off the "error reporting" and "debug" settings of the joomla configuration (which should be the case normally on a live website, for security reasons) and that would hide the warning.
However, the best would be to provide the warning to your template provider's support and check with them what they recommend.

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

- **[maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")**
- [![maurizio.dematteis@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/53419-maurizio-dematteis-gmail-com)

Less More

- Posts: 18
- Thank you received: 2
-
-

3 years 8 months ago [\#349623](#349623) by [maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")  Replied by *[maurizio.dematteis@gmail.com](/forum/user/53419-maurizio-dematteis-gmail-com "View maurizio.dematteis@gmail.com's Profile")* on topic *[Error PHP 8, Cart Module](/forum/25-install-update/905964-error-php-8-cart-module#349623 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.x -- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$cart&#95;id in /homepages/19/d950326389/htdocs/cms/joom4/templates/gk&#95;storefront/html/com&#95;hikashop/product/cart.php on line 132  Hello, i have an error message in the cart module.  Thank you and with best regards Maurizio  the code snippet:")*

Hello Nicolas,
i will do so and thank you for your quick reply.

Best Regards
Maurizio

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

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