Skip to content

Commit

Permalink
refact: slugyfi
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Dec 24, 2024
1 parent 83c644d commit 1ce7877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Domains/Connectors/ESim/Services/ESimProductService.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ protected function mapVariant($destination, array $plans): array
];

$price = number_format($variantByPriceRange['public_price'], 2, '.', '');
$sku = $variant['sku'] . '-' . $variantByPriceRange['days'];
$sku = Str::simpleSlug($variant['sku'] . '-' . $variantByPriceRange['days']);
$sourceId = $variant['id'] . '-' . $variantByPriceRange['days'];

$productVariants[] = [
'name' => $variantName . ' ' . $variantByPriceRange['days'],
'description' => $variantName . ' ' . $variantByPriceRange['days'],
Expand Down

0 comments on commit 1ce7877

Please sign in to comment.