Julien
AAlokai
•Created by Julien on 12/6/2023 in #🙋|general-help
Add SearchProduct params or variables
Unfortunately i'm using a custom query.
My problem is, how to pass dynamically customerGroupId to the query.
Is it possible to add variables to useProduct composable ?
6 replies
AAlokai
•Created by Julien on 12/6/2023 in #🙋|general-help
Add SearchProduct params or variables
Hi !,Sure, actually i'm using composable useProduct to get my product details, but i'd like to get price depending on the customerGroupId of the customer.
So i'd like to pass it through my query to use it in my price fragment:
fragment Price on ProductVariant {
price(currency: $currency, country: $country, channelId: $channelId, customerGroupId: $customerGroupId) {
...DefaultProductPrice
}
}
but actually can't pass this params on useProduct composable.
Maybe it's not the good way to do it 🙂
6 replies