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
I did that, because I needed to apply a rule that will add extra fee based on the total weight of items per supplier in the cart. It actually works fine for single products (quantity "1" in cart), but if I increase the quantity of an item in the cart, the total weight per supplier seems not to increase as expected, and the extra fee stays the same.
For example, I set up a rule to add extra fee of "10" if total weight is greater than 4 for a subselection of items in cart matching ALL of these conditions: supplier is "X". I have 2 different items in the cart, each "2.5 kg". Each item has "X" as supplier. The extra fee of "10" is added in cart/checkout. If I remove one of the items, the extra fee is removed (total weight for items with supplier "X" is now "2.5 kg").
However, if I remove one of the items, but I increase the quantity of the one item left, I would expect the total weight to become "5", and the extra fee should appear. However, that does not happen. Even if I increase the quantity for that item to "10", the weight remains "2.5 kg", and the extra fee never appears.
I am sorry for the long description of the problem. I am not sure if the problem is with your extension or with the way I added "weight" to Subselect.php. I would be happy to hear a suggestion on the issue, though.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I installed your extension (nicely done by the way).
Additionally, in ./app/code/local/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php, I changed:
to
I did that, because I needed to apply a rule that will add extra fee based on the total weight of items per supplier in the cart. It actually works fine for single products (quantity "1" in cart), but if I increase the quantity of an item in the cart, the total weight per supplier seems not to increase as expected, and the extra fee stays the same.
For example, I set up a rule to add extra fee of "10" if total weight is greater than 4 for a subselection of items in cart matching ALL of these conditions: supplier is "X". I have 2 different items in the cart, each "2.5 kg". Each item has "X" as supplier. The extra fee of "10" is added in cart/checkout. If I remove one of the items, the extra fee is removed (total weight for items with supplier "X" is now "2.5 kg").
However, if I remove one of the items, but I increase the quantity of the one item left, I would expect the total weight to become "5", and the extra fee should appear. However, that does not happen. Even if I increase the quantity for that item to "10", the weight remains "2.5 kg", and the extra fee never appears.
I am sorry for the long description of the problem. I am not sure if the problem is with your extension or with the way I added "weight" to Subselect.php. I would be happy to hear a suggestion on the issue, though.
Thanks.
The text was updated successfully, but these errors were encountered: