Article dans panier = Warning

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #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_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.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #77606

Bonsoir,

Merci d'éditer le fichier XXX/plugins/system/custom_quantity_tax/custom_quantity_tax.php de de remplacer la ligne 67 :

			$price->unit_price->price_currency_id = $price->price_currency_id;
Par :
			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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: DEVident

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

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #77654

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

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

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #78229

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.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #78236

Hi,

Thanks again for the report.
Please add

		if(empty($this->cart))
			$this->cart = new stdClass();
Just before the line 213
		$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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: DEVident

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

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #78237

Hi, thanks for the fix, it work perfectly.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum