Integramed Posted November 9, 2023 Share Posted November 9, 2023 Quiero ver que clientes han usado ciertos códigos de descuento y He visto en algunos posts en versiones anteriores que se podría hacer por consulta SQL, pero aún así me da error. Si me podéis ayudar. Gracias. Link to comment Share on other sites More sharing options...
ExpertoPrestaShop Posted November 9, 2023 Share Posted November 9, 2023 Esa información esta en la tabla order_cart_rule. Que error especifico te da la consulta SQL que creaste? Link to comment Share on other sites More sharing options...
Integramed Posted November 10, 2023 Author Share Posted November 10, 2023 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 More sharing options...
ExpertoPrestaShop Posted November 13, 2023 Share Posted November 13, 2023 A través de tu phpMyAdmin donde administras tu base de datos 🤔 Link to comment Share on other sites More sharing options...
Integramed Posted November 13, 2023 Author Share Posted November 13, 2023 2 minutes ago, ExpertoPrestaShop said: A través de tu phpMyAdmin donde administras tu base de datos 🤔 Vale, lo comentaré. No hay otra forma de hacerlo mediante consulta SQL? Link to comment Share on other sites More sharing options...
ExpertoPrestaShop Posted November 14, 2023 Share Posted November 14, 2023 Es exactamente igual mediante una Consulta SQL en el backoffice de la tienda. Link to comment Share on other sites More sharing options...
Integramed Posted November 15, 2023 Author Share Posted November 15, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now