@@ -264,17 +192,8 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
returnself::randomString($alphabet,$len);
}
/* Extract the country information from the given ID */
// static function getCountryFromID ($country_id) {
// $db = JFactory::getDBO();
// $query = 'SELECT * FROM `#__virtuemart_countries` WHERE `virtuemart_country_id` = ' . (int)$country_id;
// $db->setQuery($query);
// return $db->loadObject();
// }
/* Type 0 means order number, type 1 means invoice number, type 2 means customer number, 3 means order password */
/* replace the variables in the given format. $type indicates the type of number, currently only 'ordernumber', because WooCommerce does not support invoices or customer numbers. We might allow the shop owner to customize the order password, though. */
functionreplace_fields($fmt,$type,$order){
// First, replace all randomXXX[n] fields. This needs to be done with a regexp and a callback: