Custom price
#116
-
|
i made quite the custom shop using cargo as backend one of the main problems i now have if i add a new line item it takes the sale_price as price eg if my variant or product costs $450 and there is a sale_price of $338 it will set that as unit_price not the 107 official price do i need to change the priceHook in serviceProvider somehow? |
Beta Was this translation helpful? Give feedback.
Answered by
Oleafeon
Jan 21, 2026
Replies: 1 comment
-
|
Okay i figured it out with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Oleafeon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay i figured it out with
CalculateLineItems::priceHook(function ($cart, $lineItem) {