Skip to main content

Article dans panier = Warning

More
13 years 10 months ago #77542 by DEVident
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 or Create an account to join the conversation.

More
13 years 10 months ago #77606 by Jerome
Bonsoir,

Merci d'éditer le fichier XXX/plugins/system/custom_quantity_tax/custom_quantity_tax.php de de remplacer la ligne 67 :
Code:
$price->unit_price->price_currency_id = $price->price_currency_id;
Par :
Code:
if(empty($price->unit_price)) $price->unit_price = new stdClass(); $price->unit_price->price_currency_id = $price->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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: DEVident

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77654 by DEVident
Bonjour, ça fonctionne beaucoup mieux maintenant.
Merci beaucoup Jérôme.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #78229 by DEVident
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 or Create an account to join the conversation.

More
13 years 10 months ago #78236 by Jerome
Hi,

Thanks again for the report.
Please add
Code:
if(empty($this->cart)) $this->cart = new stdClass();
Just before the line 213
Code:
$this->cart->cart_id=(int)$this->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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: DEVident

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #78237 by DEVident
Hi, thanks for the fix, it work perfectly.

Please Log in or Create an account to join the conversation.

Time to create page: 0.179 seconds
Powered by Kunena Forum