Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onCheckProductStock event don't take price.official #938

Open
damsfx opened this issue Jun 13, 2022 · 0 comments
Open

onCheckProductStock event don't take price.official #938

damsfx opened this issue Jun 13, 2022 · 0 comments

Comments

@damsfx
Copy link
Contributor

damsfx commented Jun 13, 2022

I'm having a group that has a discount amount customersGroup.

When I display a product in the frontend, the price is displayed with its discount, and the old price in red.
Then, when the onCheckProductStock event is triggered, the price's partial is refreshed

'.mall-product__price' => $this->renderPartial($this->alias . '::price', $data),
)
but the old price no longer appears.
In the price's partial, price is set with {% set price = price|default(item.price()) %}

At the windows load :
a OFFLINE\Mall\Models\ProductPrice model is used with official property.

At the onCheckProductStock event :
a OFFLINE\Mall\Models\Price model is used with no (set to null) official property.

Can somebody confirm this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant