Jump to content

Erreur lors de creation de commande en BO


Recommended Posts

Bonjour,

 

En voulant créer une commande via le BO, je mertrouveavec une page blanche à la validation.

 

L'erreur qui ressort  : Fatal error: Call to a member function getProducts() on a non-object in /var/www/vhosts/xxxxxxxxx.com/httpdocs/classes/CartRule.php on line 634

 

Dans CartRule.php le code concerné est :

foreach ($context->cart->getProducts() as $product)
					$eligibleProductsList[] = (int)$product['id_product'].'-'.(int)$product['id_product_attribute'];
				if (!count($eligibleProductsList))
					return (!$display_error) ? false : Tools::displayError('You cannot use this voucher in an empty cart');

Je ne comprends pas l'erreur.

 

Merci d'avance pour votre aide

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...