You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process promotions command is divided into three phases:
Mark the products we need to handle
Update the multiplier on products based on rules
Update the prices based on the computed multiplier
In phase 1 we set the multiplier to 1 on all products where multiplier != 1. We do this in a loop. This means we can successfully change the multiplier on some products and then the loop can throw an exception or deadlock or whatever. Now these products are in kind of a limbo because they won't be selected the next time the command runs (because it filters on multiplier != 1) and this in turn means that we can have products where the price isn't reset, i.e. phase 3 doesn't reset the prices because those products are not in the bulk of products being processed.
Basically what we need to run somehow is:
UPDATE sylius_channel_pricing SET price = original_price WHERE multiplier =1AND manually_discounted =0AND original_price is not null
The text was updated successfully, but these errors were encountered:
The process promotions command is divided into three phases:
In phase 1 we set the multiplier to 1 on all products where
multiplier != 1
. We do this in a loop. This means we can successfully change the multiplier on some products and then the loop can throw an exception or deadlock or whatever. Now these products are in kind of a limbo because they won't be selected the next time the command runs (because it filters onmultiplier != 1
) and this in turn means that we can have products where the price isn't reset, i.e. phase 3 doesn't reset the prices because those products are not in the bulk of products being processed.Basically what we need to run somehow is:
The text was updated successfully, but these errors were encountered: