From 3a8a7eab0479b5b3cdf65d0af3a6b8d3bb9197af Mon Sep 17 00:00:00 2001 From: Christian Dangl Date: Fri, 27 Dec 2024 11:18:36 +0100 Subject: [PATCH] product numbers with length 24 --- CHANGELOG.md | 1 + src/Service/Generator/ProductGenerator.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb4722b..8441fbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. ### Changed - Support for Shopware 6.6.9.0 +- Product Numbers are now generated with a length of 24 instead of 16 to avoid conflicts with existing products. ### Fixed diff --git a/src/Service/Generator/ProductGenerator.php b/src/Service/Generator/ProductGenerator.php index 45a9095..de742a6 100644 --- a/src/Service/Generator/ProductGenerator.php +++ b/src/Service/Generator/ProductGenerator.php @@ -141,7 +141,7 @@ public function generate(string $keywords, int $maxCount, string $category, stri $prompt .= 'Every resulting line should be in the order and sort provided below:' . PHP_EOL; $prompt .= PHP_EOL; $prompt .= 'product count.' . PHP_EOL; - $prompt .= 'product number code. should be 16 unique random alphanumeric.' . PHP_EOL; + $prompt .= 'product number code. should be 24 unique random alphanumeric.' . PHP_EOL; $prompt .= 'name of the product.' . PHP_EOL; $prompt .= 'description (about ' . $descriptionLength . ' characters).' . PHP_EOL; $prompt .= 'price value (no currency just number).' . PHP_EOL;