monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

call getPrice only if channelPrice is not null #127

Closed Louzet closed 1 year ago

Louzet commented 2 years ago

Method $channelPrice = $variant->getChannelPricingForChannel($channel); return a channelPricingInterface or null. Then we must check the value of $channelPricing before calling the method $channelPricing->getPrice()

maximehuran commented 1 year ago

Thank you @Louzet 🚀