Skip to content

Commit

Permalink
Preload base prices on Product Variant page (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
adevade authored Sep 11, 2024
1 parent 412b31e commit fc20edb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function mapVariantPermutations($fillMissing = true): void
)]
)->toArray();

$variants = $this->record->variants->load('values.option')->map(function ($variant) {
$variants = $this->record->variants->load(['basePrices.currency', 'basePrices.priceable', 'values.option'])->map(function ($variant) {
return [
'id' => $variant->id,
'sku' => $variant->sku,
Expand Down

0 comments on commit fc20edb

Please sign in to comment.