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

#   Article dans panier = Warning

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 11 months ago [\#77542](#77542) by [DEVident](/forum/user/11795-devident "View DEVident's Profile")  *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#77542 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")* was created by *[DEVident](/forum/user/11795-devident "View DEVident's Profile")*

Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:

Warning: Creating default object from empty value in XXX/plugins/system/custom_quantity_tax/custom_quantity_tax.php on line 67

Merci d'avance pour votre aide.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzU5NDktYXJ0aWNsZS1kYW5zLXBhbmllci13YXJuaW5nP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77606](#77606) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#77606 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")*

Bonsoir,

Merci d'éditer le fichier *XXX/plugins/system/custom\_quantity\_tax/custom\_quantity\_tax.php* de de remplacer la ligne 67 : Code:

$price-&gt;unit_price-&gt;price_currency_id = $price-&gt;price_currency_id;

Par : Code:

if(empty($price-&gt;unit_price)) $price-&gt;unit_price = new stdClass(); $price-&gt;unit_price-&gt;price_currency_id = $price-&gt;price_currency_id;

Cette modification sera incluse dans la prochaine version d'HikaShop.

Merci d'avoir signalé ce problème.
Cordialement,

---

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

The following user(s) said Thank You: [DEVident](/forum/user/11795-devident "View DEVident's Profile")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 11 months ago [\#77654](#77654) by [DEVident](/forum/user/11795-devident "View DEVident's Profile")  Replied by *[DEVident](/forum/user/11795-devident "View DEVident's Profile")* on topic *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#77654 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")*

Bonjour, ça fonctionne beaucoup mieux maintenant.
Merci beaucoup Jérôme.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 11 months ago [\#78229](#78229) by [DEVident](/forum/user/11795-devident "View DEVident's Profile")  Replied by *[DEVident](/forum/user/11795-devident "View DEVident's Profile")* on topic *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#78229 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")*

Bonsoir, j'ai encore un warning dans le module panier, voici la ligne:

Warning: Creating default object from empty value in XXX/administrator/components/com_hikashop/classes/cart.php on line 213

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNzU5NDktYXJ0aWNsZS1kYW5zLXBhbmllci13YXJuaW5nP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78236](#78236) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#78236 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")*

Hi,

Thanks again for the report.
Please add Code:

if(empty($this-&gt;cart)) $this-&gt;cart = new stdClass();

Just before the line 213 Code:

$this-&gt;cart-&gt;cart_id=(int)$this-&gt;save($cart);

This modification would be include in the next mini-release (the next time we would update the HikaShop package).

Regards,

---

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

The following user(s) said Thank You: [DEVident](/forum/user/11795-devident "View DEVident's Profile")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 11 months ago [\#78237](#78237) by [DEVident](/forum/user/11795-devident "View DEVident's Profile")  Replied by *[DEVident](/forum/user/11795-devident "View DEVident's Profile")* on topic *[Article dans panier = Warning](/forum/5-support-en-francais-french-support-/75949-article-dans-panier-warning#78237 "Bonsoir, j'ai des warnings qui apparaissent lorsque je mets un article dans le panier, voici le message:  Warning: Creating default object from empty value in XXX/plugins/system/custom&#95;quantity&#95;tax/custom&#95;quantity&#95;tax.php on line 67  Merci d'avance pour votre aide.")*

Hi, thanks for the fix, it work perfectly.

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

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