Contact Us

6ta. Avenida 2-48 zona 13, Guatemala, Guatemala.

T +(502) 2458-4464 • Email: info@pixtig.com

Write us :)

Quote
Your budget in US Dollars ($)
Current Website (if you have one)
I want to be part of your team
Inquiry
Can you help us?

Blog

We are passionate about Drupal and obsessed with adding significant content to the web. We design, we program, we develop, we comunicate, we teach and blogging.

admin's picture

Borrar todas las ordenes de commerce

By: 
admin
Tags: 
Ecommerce
Drupal 7

Antes de mover nuestro commerce a produccion sera necesario elimitar todas las ordenes de prueba y para ello se puede utilizar el siguiente script.

Código: 
<?php
drupal_set_time_limit(0);
 
$order_ids = db_select('commerce_order', 'o')
->fields('o', array('order_id'))
->execute()->fetchCol();
 
commerce_order_delete_multiple($order_ids);
?>