0
votes

I have a problem with the price rules in magento version 1.5.1. I have a rule that defines the discount according to an attribute of the product , called fascia_sconto . I had a series of products that had an attribute that defined a discount of 20 % , but now I need to change the discount to be able to cancel it and put another on the same products .

I changed that attribute using store manager for magento , changing all the products concerned , putting the attribute in the rule that defines a discount to 0 , and then I applied this rule , thinking now that the discount was applied . But I have not noticed any change. Then I emptied the cache, reindexed everything, but nothing yet , there is always the old discount. But the mystery of all mysteries: if I go to a product of which I have modified the attribute, and save it , magically the rule, for that product, of course, is applied , then the item on the frontend has no discount . I have to resave 1,600 products , so I can’t certainly lose a whole day one by one to save all the products to make the rule active .

I also tried to make a rule for it , which should overwrite the previous one. I set a rule that defined a discount of 18 % on those products , putting between actions, “Stop processing more rules “ to “ yes”, so that the previous rule was no longer calculated , but that this was directly applied . But nothing , magento continues to calculate the discount starting with the rule of 20 (which no longer exists all over for those products , since I changed the attribute ) and then apply an additional discount of 18% on discount price! I’m not understanding anything, would you be able to kindly give me a hand ? Where was I wrong?

I hope I was clear enough, and I really hope you grow to be of help .

PS: I’m sorry for my bad English, but it’s not my primary language

1
I have resolved. I set the old rule to Priority 2, and the new rule to priority 0. This should mean it will use the new rule instead of the old rule. And now is working fine. So the problem was of configuring the rule with the correct priority. Thanks however @Malachy. My headeach is over, for now - echo89

1 Answers

0
votes

Applying price rules based on product attribute changes can be very difficult. I am sypmathetic to your cause.

It might not work but you are welcome to follow carefully my (paranoid) process for applying sale promotion rules:

  • (change any product attributes relating to the sales rules)
  • Re-index everything
  • Refresh the caches
  • 'Save and apply' the rule to apply it to the fresh indexes
  • Re-index again
  • Refresh the caches again