feature/fix-link-to-products #58

Merged
krzysiej merged 2 commits from feature/fix-link-to-products into master 2026-01-28 08:33:51 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 6da4f4257e - Show all commits

View File

@@ -38,7 +38,7 @@ class ScrapeWebsite extends Command
$progress = new ProgressBar($output);
$countries = Country::all();
foreach($countries as $country) {
$output->writeln('Country name: ' . $country->countryName."\n");
$output->writeln('Country name: ' . $country->countryName);
$progress->start();
$products = $this->getProducts($country);
$progress->setMaxSteps(count($products));

View File

@@ -22,7 +22,7 @@
</ol>
</nav>
</td>
<td><a href='https://pl.ryobitools.eu/{{ product.url }}'>link</a></td>
<td><a href='https://{{ product.country.locale }}.ryobitools.eu{{ product.url }}'>link</a></td>
</tr>
<tr>
<td colspan="5">

View File

@@ -62,7 +62,7 @@
</ol>
</nav>
</td>
<td class="align-middle"><a href='https://pl.ryobitools.eu/{{ product.url }}'>link</a></td>
<td class="align-middle"><a href='https://{{ product.country.locale }}.ryobitools.eu{{ product.url }}'>link</a></td>
<td class="align-middle text-end">
{% if product.isDiscontinued() or product.priceCurrent == product.productStandardPrice %}
{{ product.priceLowest | format_currency(product.country.currency, {}, product.country.locale) }}