Tag Archives: Ubercart

Drupal – Delete all orders in Ubercart

I have created so many testing orders in the Ubercart during the development. So before i migrate the site to production, i have to clear all the testing orders. This could be done by deleting the order one by one through the View orders page.

But i got more than 100 testing orders and obviously the above method is not clever enough. Continue reading Drupal – Delete all orders in Ubercart

Drupal – Add Extra Countries for Ubercart

By default, the Ubercart module provided a list of countries where you can add or remove them in Adminster -> Store administration -> Configuration -> Country settings.

If you cannot find the countries u need, there is an additional list of countries in the Ubercart website. Add them to your Drupal site as follow. Continue reading Drupal – Add Extra Countries for Ubercart

Drupal – Fix Ubercart Error Messages

If you get a bunch of error messages after installing Ubercart as follow

  • # Notice: Undefined index: #element_validate in summarize_form() (line 27 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).
  • # Notice: Undefined index: #type in summarize_element() (line 84 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).
  • # Notice: Undefined index: #type in summarize_element() (line 124 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).

No worry, these messages could be removed after modifying the error reporting setting in the php.ini. Continue reading Drupal – Fix Ubercart Error Messages

Drupal – Ubercart Localization

Localization with Ubercart is somehow a bit difficult. Assume we have 2 languages, English and Traditional Chinese, installed. For a particular product, there will be one node representing the English one and the other node representing the Traditional Chinese one. If you add the English node into the cart, it will not be translated in the cart and checkout page. In other words, they are treated as 2 different products.

The following example can localize the Product content type even in the cart and checkout page. and it is based on the work by Stewart Adam. Please refer to for the post – Translating or internationalizing an Ubercart store: Common problems & solutions more information.

1. Create a custom module and add the following hook implementation in the .module file. Continue reading Drupal – Ubercart Localization

Drupal – Build an Online Store with Ubercart

The Ubercart module is a complete E-Commerce suite which turn your Drupal website into an online store. It is a very big module which contains a lot of features. In this article, i will try to show you those basics but actually i am not intimate with it very well.

Before you start, it is recommended that Imagecache, CCK Image field and Views are installed. This allows our store product image showing to the customers.

1. Download and install the Ubercart – core features. Continue reading Drupal – Build an Online Store with Ubercart