feature/fix-link-to-products #58
@@ -38,7 +38,7 @@ class ScrapeWebsite extends Command
|
|||||||
$progress = new ProgressBar($output);
|
$progress = new ProgressBar($output);
|
||||||
$countries = Country::all();
|
$countries = Country::all();
|
||||||
foreach($countries as $country) {
|
foreach($countries as $country) {
|
||||||
$output->writeln('Country name: ' . $country->countryName."\n");
|
$output->writeln('Country name: ' . $country->countryName);
|
||||||
$progress->start();
|
$progress->start();
|
||||||
$products = $this->getProducts($country);
|
$products = $this->getProducts($country);
|
||||||
$progress->setMaxSteps(count($products));
|
$progress->setMaxSteps(count($products));
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
</td>
|
</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>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
</td>
|
</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">
|
<td class="align-middle text-end">
|
||||||
{% if product.isDiscontinued() or product.priceCurrent == product.productStandardPrice %}
|
{% if product.isDiscontinued() or product.priceCurrent == product.productStandardPrice %}
|
||||||
{{ product.priceLowest | format_currency(product.country.currency, {}, product.country.locale) }}
|
{{ product.priceLowest | format_currency(product.country.currency, {}, product.country.locale) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user