Compare commits
2 Commits
5696f23f3d
...
6556ba0f88
| Author | SHA1 | Date | |
|---|---|---|---|
| 6556ba0f88 | |||
| 6da4f4257e |
@@ -112,7 +112,7 @@ class Migrate extends Command
|
||||
'productsUrl' => 'https://uk.ryobitools.eu/api/product-listing/get-products',
|
||||
'cultureCode' => 'en-GB',
|
||||
'currency' => 'GBP',
|
||||
'locale' => 'en',
|
||||
'locale' => 'uk',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user