diff --git a/plugins/awocoupon/awocoupon.script.php b/plugins/awocoupon/awocoupon.script.php index 24c01a9ece6bbd90a71a3c5695705064011402b5..53337914583e3809675c8c87dd650d9a94ef8686 100644 --- a/plugins/awocoupon/awocoupon.script.php +++ b/plugins/awocoupon/awocoupon.script.php @@ -53,7 +53,7 @@ class plgVmShipmentRulesAwoCouponInstallerScript public function install(JAdapterInstance $adapter) { // enabling plugin upon installation - $db =& JFactory::getDBO(); + $db = JFactory::getDBO(); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "'.$pluginname.'" and folder = "'.$plugintype.'"'); $db->query(); diff --git a/plugins/regexp/regexp.script.php b/plugins/regexp/regexp.script.php index 843e90e541db9f0941ce278c913c0d9149b239a8..cec084a64f55964967e502d1ab5e6f18157e4831 100644 --- a/plugins/regexp/regexp.script.php +++ b/plugins/regexp/regexp.script.php @@ -49,7 +49,7 @@ class plgVmShipmentRulesRegexpInstallerScript public function install(JAdapterInstance $adapter) { // enabling plugin upon installation - $db =& JFactory::getDBO(); + $db = JFactory::getDBO(); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "regexp" and folder = "vmshipmentrules"'); $db->query(); diff --git a/plugins/template/YOUR_PLUGIN_NAME.script.php b/plugins/template/YOUR_PLUGIN_NAME.script.php index 890789d5cdeac939559e148d78354a93d4605fd3..1764fddba9447715b104e502333428a918b2e6fc 100644 --- a/plugins/template/YOUR_PLUGIN_NAME.script.php +++ b/plugins/template/YOUR_PLUGIN_NAME.script.php @@ -49,7 +49,7 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAMEInstallerScript public function install(JAdapterInstance $adapter) { // enabling plugin upon installation - $db =& JFactory::getDBO(); + $db = JFactory::getDBO(); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "YOUR_PLUGIN_NAME" and folder = "vmshipmentrules"'); $db->query(); diff --git a/rules_shipping.script.php b/rules_shipping.script.php index d19e47166935b0e33acf16d9e7fe4b916fe0fe08..8fa5a539c7529f10e3587d7cf81f6d20d864acc0 100644 --- a/rules_shipping.script.php +++ b/rules_shipping.script.php @@ -46,7 +46,7 @@ class plgVmShipmentRules_ShippingInstallerScript public function install(JAdapterInstance $adapter) { // enabling plugin - $db =& JFactory::getDBO(); + $db = JFactory::getDBO(); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "rules_shipping" and folder = "vmshipment"'); $db->query(); diff --git a/rules_shipping_advanced.script.php b/rules_shipping_advanced.script.php index 9148256b5b93bb3b2b04ccd1e2361a8daa7449c2..56313277e1767aa77624022a164f91043190a80f 100644 --- a/rules_shipping_advanced.script.php +++ b/rules_shipping_advanced.script.php @@ -46,7 +46,7 @@ class plgVmShipmentRules_Shipping_AdvancedInstallerScript public function install(JAdapterInstance $adapter) { // enabling plugin - $db =& JFactory::getDBO(); + $db = JFactory::getDBO(); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "rules_shipping_advanced" and folder = "vmshipment"'); $db->query(); diff --git a/rules_shipping_base.php b/rules_shipping_base.php index 0c46df6953234e143361e3ae6115b9f9cc314751..00cbca5261eb84022af2ac2d10b1e06acd98c677 100644 --- a/rules_shipping_base.php +++ b/rules_shipping_base.php @@ -174,8 +174,6 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin { $values['shipment_name'] = $this->renderPluginName ($method); $values['rule_name'] = $method->rule_name; // $values['order_weight'] = $this->getOrderWeight ($cart, $method->weight_unit); -// $values['order_articles'] = $this->getOrderArticles ($cart); -// $values['order_products'] = $this->getOrderProducts ($cart); $values['shipment_weight_unit'] = $method->weight_unit; $values['shipment_cost'] = $method->cost; $values['tax_id'] = $method->tax_id;