We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69aa3b5 commit b167b96Copy full SHA for b167b96
src/Models/Product.php
@@ -174,7 +174,7 @@ public function tierPrices(): HasMany
174
public function getUnitPrice(int $quantity = 1, int $customerGroup = 0)
175
{
176
$tierPrice = $this->tierPrices()
177
- ->where(function($query) use ($customerGroup) {
+ ->where(function ($query) use ($customerGroup) {
178
$query->where('customer_group_id', $customerGroup)
179
->orWhere('all_groups', '1');
180
})
0 commit comments