Hi!
in my eshop i have basic price of product (for example: 100$).
using this price, i calculate via RULES a new product price for: partners (for example: 110$), simple users (for example: 150$) and distributors (for example: 130$).
but, there are a problem. i'll try to explain...
you are simple user: you buy one product: your item price is: 150$. your order final price is: 150$.
but, as admin, instead of see your order final price as 150$,i see it as 100$.
how can i solve it?
thank you and sorry for my english
Comments
Comment #1
mr.baileysDo you mean to say that the price is incorrect when ordering while logged in as administrator, or when viewing an existing order for another user as administrator?
In any case, could you export and share your rule(s) for the "calculating the sell price of a product" event, and maybe a screenshot of the incorrect order?
Comment #2
rszrama commentedYeah, we really need to see the Rule - it sounds like you aren't actually using the Line Item specific actions on your pricing rule to manipulate the sell price of the product per user. If you're just using "Set a data value" it won't log the change in the price components array that is summed up to determine the order total.
Comment #3
dgastudio commentedsorry, changing the module.
so, i'll explain again with more details
basic price.
rule for calculate new price.
after create new order, everything seems fine.
but after apply CUSTOM STATUS to this order, the price is reseted to basic price instead of being calculated by rule.
Comment #4
sreynen commentedPlease provide an export of the rule. I'm not aware of any direct connection between status and price.
Comment #5
sreynen commentedAlso, please try just re-saving the order without adjusting the status. I suspect that will reset the price as well, in which case this has nothing to do with the status.
Comment #6
dgastudio commentedrule export:
Comment #7
dgastudio commentedcreated new order.
total price: 293 980 BYR.
default status: pending
changing status to: processing
total price: 293 980 BYR.
changing status to : sended (my custom status)
the total price has been changed to 235 980 BYR (this is default price)
Comment #8
sreynen commentedI imported that rule, created an order with the price increased by the rule, and re-saved the order in a custom status. The price didn't change for me. Do you have any other rules adjusting prices? There's nothing about this custom status module that deals with prices, so I'm not sure what would be causing this.
Comment #9
sreynen commentedIt may also help to see a screenshot of your custom status edit page, so I can test with the same status.
Comment #10
dgastudio commentedi have the next rules for price management.
Unset the price of disabled products in the cart
Override price with price table ()
Price for non partners (u have seen it)
Calculate price for partner from NO BELARUS (is setting price to 0 if user is not from Belarus)
ok, let see..
changing status to any default
0 ms Reacting on event Before save commerce order.
6.344 ms Evaluating conditions of rule Change manager for order. [edit]
7.908 ms The condition entity_has_field evaluated to TRUE [edit]
8.053 ms The condition entity_has_field evaluated to TRUE [edit]
11.737 ms The condition data_is evaluated to TRUE [edit]
11.746 ms AND evaluated to FALSE.
11.764 ms Finished reacting on event Before save commerce order.
the price is correct
now, will try to change the status to custom one...
0 ms Reacting on event Before save commerce order.
6.304 ms Evaluating conditions of rule Change manager for order. [edit]
7.739 ms The condition entity_has_field evaluated to TRUE [edit]
7.873 ms The condition entity_has_field evaluated to TRUE [edit]
11.43 ms The condition data_is evaluated to TRUE [edit]
11.439 ms AND evaluated to FALSE.
11.453 ms Finished reacting on event Before save commerce order.
0 ms Reacting on event Calculating the sell price of a product.
6.33 ms Evaluating conditions of rule Price for non partners. [edit]
8.751 ms The condition user_has_role evaluated to TRUE [edit]
8.76 ms AND evaluated to FALSE.
8.789 ms Evaluating conditions of rule Calculate price for partner from NO BELARUS. [edit]
8.988 ms The condition user_has_role evaluated to TRUE [edit]
12.2 ms The condition data_is evaluated to TRUE [edit]
12.208 ms AND evaluated to FALSE.
12.295 ms Evaluating conditions of rule Unset the price of disabled products in the cart. [edit]
12.476 ms The condition data_is_empty evaluated to FALSE [edit]
29.179 ms The condition entity_has_field evaluated to TRUE [edit]
30.007 ms The condition data_is evaluated to FALSE [edit]
30.016 ms AND evaluated to FALSE.
30.036 ms Finished reacting on event Calculating the sell price of a product.
0 ms Reacting on event Before save commerce order.
0.229 ms Evaluating conditions of rule Change manager for order. [edit]
0.493 ms The condition entity_has_field evaluated to TRUE [edit]
0.621 ms The condition entity_has_field evaluated to TRUE [edit]
1.389 ms The condition data_is evaluated to TRUE [edit]
1.398 ms AND evaluated to FALSE.
1.412 ms Finished reacting on event Before save commerce order.
really strange.
Comment #11
dgastudio commentedmy custom status (sended)

Comment #12
dgastudio commenteduhm, now seems works fine...
i have unset checkbox to "Cart" in custom status options..
that it means???
Comment #13
sreynen commentedI think this is the problem. Whoever is changing the status has role #4, and they are the current user. I think you want to change "site:current-user" to "commerce-line-item:order:owner". That fixed the problem for me now that I'm able to reproduce it by setting my user to role #4. I'm not sure why this didn't happen on other order statuses, unless you were changing that with a different user. In any case, changing the user selection to the order owner should fix it.
I believe this has nothing to do with the status, so I'm moving it back to the Commerce queue where people with similar issues can more easily find it.