File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55use JustBetter \CustomerPricing \Model \CustomerPricing ;
66use JustBetter \CustomerPricing \Model \ResourceModel \CustomerPricing \Collection ;
77use Psr \Log \LoggerInterface ;
8+ use Zend_Db_Select ;
89
910class CustomerPrice
1011{
@@ -16,8 +17,12 @@ public function __construct(
1617
1718 public function getCustomerPrice (int $ productId , int $ customerId , int $ quantity = 1 ): ?float
1819 {
19- $ customerPrices = $ this ->customerPricingCollection
20+ $ this ->customerPricingCollection
2021 ->clear ()
22+ ->getSelect ()
23+ ->reset (Zend_Db_Select::WHERE );
24+
25+ $ customerPrices = $ this ->customerPricingCollection
2126 ->addFieldToFilter ('product_id ' , ['eq ' => $ productId ])
2227 ->addFieldToFilter ('customer_id ' , ['eq ' => $ customerId ])
2328 ->load ()
You can’t perform that action at this time.
0 commit comments