Отображение цен по магазинам и мультипросмотр товаров на сайтах

This commit is contained in:
Konstantin
2026-05-30 13:43:04 +03:00
parent 8e919ba1d3
commit f6197986f2
3 changed files with 44 additions and 13 deletions
@@ -204,13 +204,22 @@
<tr>
<td class="text-left">{{ store.name }}</td>
<td class="text-left">
<input type="text" name="product_prices[{{ store.store_id }}][price]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price }}" class="form-control" />
<div class="input-group">
<input type="text" name="product_prices[{{ store.store_id }}][price]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price }}" class="form-control" />
<span class="input-group-addon">{{ store.symbol }}</span>
</div>
</td>
<td class="text-left">
<input type="text" name="product_prices[{{ store.store_id }}][price_2]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price_2 }}" class="form-control" />
<div class="input-group">
<input type="text" name="product_prices[{{ store.store_id }}][price_2]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price_2 }}" class="form-control" />
<span class="input-group-addon">{{ store.symbol }}</span>
</div>
</td>
<td class="text-left">
<input type="text" name="product_prices[{{ store.store_id }}][price_3]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price_3 }}" class="form-control" />
<div class="input-group">
<input type="text" name="product_prices[{{ store.store_id }}][price_3]" value="{{ product_prices[store.store_id] ? product_prices[store.store_id].price_3 }}" class="form-control" />
<span class="input-group-addon">{{ store.symbol }}</span>
</div>
</td>
</tr>
{% endfor %}
@@ -207,8 +207,15 @@
</td>
<td class="text-left">{{ product.noindex }}</td>
<td class="text-right">
<a target="_blank" href="{{ product.href_shop }}" data-toggle="tooltip" title="{{ button_shop }}" class="btn btn-success"><i class="fa fa-eye"></i></a>
<a href="{{ product.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a>
<div class="btn-group">
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right">
{% for store in stores %}
<li><a href="{{ store.url }}index.php?route=product/product&product_id={{ product.product_id }}" target="_blank">{{ store.name }}</a></li>
{% endfor %}
</ul>
</div>
<a href="{{ product.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary btn-sm"><i class="fa fa-pencil"></i></a>
</td>
</tr>
{% endfor %}