Jump to content

¿Cómo filtrar pedidos por código de descuento usado?


Integramed

Recommended Posts

Estaba usando esta consulta: SELECT ps_orders.*, ps_order_cart_rule.* FROM ps_orders, ps_order_cart_rule WHERE ps_orders.id_order = ps_order_cart_rule.id_order AND ps_order_cart_rule.id_order_cart_rule = ID del vale descuento

 

Y me da este error: 

Type error: Argument 1 passed to PrestaShop\PrestaShop\Adapter\SqlManager\SqlQueryValidator::getWhereKeywordError() must be of the type array, bool given, called in /var/www/vhosts/integramed.es/httpdocs/src/Adapter/SqlManager/SqlQueryValidator.php on line 92

[Symfony\Component\Debug\Exception\FatalThrowableError 0]

 

Me puedes decir como acceder a esa tabla que me comentas?

 

Gracias,

Link to comment
Share on other sites

19 hours ago, ExpertoPrestaShop said:

Es exactamente igual mediante una Consulta SQL en el backoffice de la tienda.

Si pero me refiero a que si puedo usar algo como SELECT ps_orders.*, ps_order_cart_rule.* FROM ps_orders, ps_order_cart_rule WHERE ps_orders.id_order = ps_order_cart_rule.id_order AND ps_order_cart_rule.id_order_cart_rule = ID del vale descuento

 

Ya que esa consulta me da error.

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...