test
foreach ($products as $i): ?>
(string) $i['id'],
'name' => htmlspecialchars($i['name']),
'price' => $i['price'],
'category' => htmlspecialchars($i->category['name']),
'position' => count($listEcommerce) + 1,
];
if ($i['price_full'] > $i['price']) {
$listEcommerceItem['discount'] = $i['price_full'] - $i['price'];
}
$listEcommerce[] = $listEcommerceItem;
?>
endforeach; ?>
foreach ($sale as $i): ?>
endforeach; ?>
БУТИКИ
СМОТРЕТЬ ВСЕ
БЛОГ
ВСЕ НОВОСТИ