Wildcardbi_RulePriceAttribute - Version 1.5

Version Notes

There are a few more features to come in the stable release.

Download this release

Release Info

Developer Magento Core Team
Extension Wildcardbi_RulePriceAttribute
Version 1.5
Comparing to
See all releases


Code changes from version 1.4 to 1.5

Files changed (20) hide show
  1. app/code/local/Wildcardbi/RulePriceAttribute/Model/Mysql4/Rule.php +4 -4
  2. app/code/local/Wildcardbi/RulePriceAttribute/etc/config.xml +1 -1
  3. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.1.php +3 -3
  4. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.2.php +3 -3
  5. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.3.php +3 -3
  6. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.5.php +3 -3
  7. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.6.php +3 -3
  8. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.7.php +3 -3
  9. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.1.php +3 -3
  10. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.4.php +3 -3
  11. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.5.php +10 -0
  12. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.2-1.0.3.php +3 -3
  13. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.3-1.0.4.php +3 -3
  14. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.4-1.0.5.php +3 -3
  15. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.5-1.0.6.php +3 -3
  16. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.6-1.0.7.php +3 -3
  17. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.7-1.1.php +3 -3
  18. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.1-1.4.php +3 -3
  19. app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.4-1.5.php +10 -0
  20. package.xml +4 -4
app/code/local/Wildcardbi/RulePriceAttribute/Model/Mysql4/Rule.php CHANGED
@@ -213,10 +213,10 @@ $read = $this->_getReadAdapter();
213
  $productPrice = $productPrice*(1-$amount/100);
214
  break;
215
  case 'by_attribute_percent':
216
- if(is_numeric($ruleData['attribute_to_select'])&&$ruleData['attribute_to_select']>0){
217
- $productPrice = $ruleData['attribute_to_select']*(1-$amount/100);
218
- }
219
- break;
220
  case 'to_attribute_percent':
221
  if(is_numeric($ruleData['attribute_to_select'])&&$ruleData['attribute_to_select']>0){
222
  $productPrice = $ruleData['attribute_to_select']*$amount/100;
213
  $productPrice = $productPrice*(1-$amount/100);
214
  break;
215
  case 'by_attribute_percent':
216
+ if(is_numeric($ruleData['attribute_to_select'])&&$ruleData['attribute_to_select']>0){
217
+ $productPrice = $productPrice - $ruleData['attribute_to_select']*($amount/100);
218
+ }
219
+ break;
220
  case 'to_attribute_percent':
221
  if(is_numeric($ruleData['attribute_to_select'])&&$ruleData['attribute_to_select']>0){
222
  $productPrice = $ruleData['attribute_to_select']*$amount/100;
app/code/local/Wildcardbi/RulePriceAttribute/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Wildcardbi_RulePriceAttribute>
5
- <version>1.4</version>
6
  </Wildcardbi_RulePriceAttribute>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Wildcardbi_RulePriceAttribute>
5
+ <version>1.5</version>
6
  </Wildcardbi_RulePriceAttribute>
7
  </modules>
8
  <global>
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.1.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.2.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.3.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.5.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.6.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.0.7.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.1.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.4.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-install-1.5.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
+ } catch (Exception $e) {
9
+ }
10
+ $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.2-1.0.3.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.3-1.0.4.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.4-1.0.5.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.5-1.0.6.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.6-1.0.7.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.0.7-1.1.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.1-1.4.php CHANGED
@@ -2,9 +2,9 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
- $installer->run("ALTER TABLE catalogrule ADD attribute_to_select smallint(5) DEFAULT NULL");
6
- $installer->run("ALTER TABLE catalogrule_product ADD attribute_to_select smallint(5) DEFAULT NULL");
7
- $installer->run("ALTER TABLE catalogrule_product MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
2
  $installer = $this;
3
  $installer->startSetup();
4
  try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
  } catch (Exception $e) {
9
  }
10
  $installer->endSetup();
app/code/local/Wildcardbi/RulePriceAttribute/sql/wildcardbi_rulepriceattribute_setup/mysql4-upgrade-1.4-1.5.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ try{
5
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule')} ADD attribute_to_select smallint(5) DEFAULT NULL");
6
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} ADD attribute_to_select smallint(5) DEFAULT NULL");
7
+ $installer->run("ALTER TABLE {$this->getTable('catalogrule_product')} MODIFY action_operator ENUM('to_fixed','to_percent','by_fixed','by_percent','by_attribute_percent','to_attribute_percent','to_attribute','add_attribute','sub_attribute')");
8
+ } catch (Exception $e) {
9
+ }
10
+ $installer->endSetup();
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wildcardbi_RulePriceAttribute</name>
4
- <version>1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>This extension allows you to create price rules such as wholesale pricing, distributor pricing without creating separate stores. It adds a high degree of dynamics to the price rules.</description>
11
  <notes>There are a few more features to come in the stable release.</notes>
12
  <authors><author><name>B ryan</name><user>auto-converted</user><email>ocsalesgroup@gmail.com</email></author></authors>
13
- <date>2010-08-12</date>
14
- <time>19:48:46</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Wildcardbi_RulePriceAttribute.xml" hash="f222ef4f271e09c598823dcfc129192e"/></dir></target><target name="magelocal"><dir name="Wildcardbi"><dir name="RulePriceAttribute"><dir name="Block"><dir name="Promo"><dir name="Catalog"><dir name="Edit"><dir name="Tab"><file name="Actions.php" hash="d6d5d0450890d76526ab6210d9385914"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="ad2ff6f69b493b8c09b634e7397c7b00"/></dir><dir name="Model"><dir name="Mysql4"><file name="Rule.php" hash="e1cfc36a4bae4b594d2db09a22786fc8"/></dir></dir><dir name="sql"><dir name="wildcardbi_rulepriceattribute_setup"><file name="mysql4-install-1.0.1.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.0.2.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.0.3.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.0.5.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.0.6.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.0.7.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.1.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-install-1.4.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.0.7-1.1.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/><file name="mysql4-upgrade-1.1-1.4.php" hash="cc0aae2732df639eefb6f3814d48bcf5"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wildcardbi_RulePriceAttribute</name>
4
+ <version>1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>This extension allows you to create price rules such as wholesale pricing, distributor pricing without creating separate stores. It adds a high degree of dynamics to the price rules.</description>
11
  <notes>There are a few more features to come in the stable release.</notes>
12
  <authors><author><name>B ryan</name><user>auto-converted</user><email>ocsalesgroup@gmail.com</email></author></authors>
13
+ <date>2011-03-04</date>
14
+ <time>19:35:18</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Wildcardbi_RulePriceAttribute.xml" hash="f222ef4f271e09c598823dcfc129192e"/></dir></target><target name="magelocal"><dir name="Wildcardbi"><dir name="RulePriceAttribute"><dir name="Block"><dir name="Promo"><dir name="Catalog"><dir name="Edit"><dir name="Tab"><file name="Actions.php" hash="d6d5d0450890d76526ab6210d9385914"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="c9a057525e086eb11a273eab69764e1a"/></dir><dir name="Model"><dir name="Mysql4"><file name="Rule.php" hash="02702a7229882d39c27c52c5a332eca5"/></dir></dir><dir name="sql"><dir name="wildcardbi_rulepriceattribute_setup"><file name="mysql4-install-1.0.1.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.0.2.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.0.3.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.0.5.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.0.6.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.0.7.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.1.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.4.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-install-1.5.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.0.7-1.1.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.1-1.4.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/><file name="mysql4-upgrade-1.4-1.5.php" hash="cb00d58cfe8a7dcd4b90846e08c2c4a5"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>