Skip to content

Commit

Permalink
https://github.com/cabinetsbay/site/issues/146
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 7, 2024
1 parent f7c5822 commit e3a91ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions view/frontend/templates/home.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ use Magento\Framework\View\Element\Template as B;
<?php if (count($cc)) : ?>
<?= df_cms_block('home-page-popular-kitchen') ?>
<ul> <?php
foreach ($cc as $popularProduct) {
/** @var C $popularProduct */
foreach ($cc as $c) {
/** @var C $c */
print '<li>';
print '<a href="' . $popularProduct->getUrl() . '">';
print '<div>' . $popularProduct->getName() . '</div>';
if($popularProduct->getData('cb_kitchen_set') != '') {
print '<div class="size-price"><b>' . $popularProduct->getData('cb_kitchen_set') . '</b>' . $popularProduct->getData('cb_kitchen_price') . '</div>';
print '<a href="' . $c->getUrl() . '">';
print '<div>' . $c->getName() . '</div>';
if ($c->getData('cb_kitchen_set') != '') {
print '<div class="size-price"><b>' . $c->getData('cb_kitchen_set') . '</b>' . $c->getData('cb_kitchen_price') . '</div>';
}
try {
print '<img src="' . $popularProduct->getImageUrl() . '" border="0" />';
print '<img src="' . $c->getImageUrl() . '" border="0" />';
} catch (E $e) {}
print '</a>';
print '<div><a href="' . $popularProduct->getUrl()
. '">Shop cabinets</a><a href="'.$popularProduct->getData('cb_door_sample_link').'">Order sample</a></div>';
print '<div><a href="' . $c->getUrl()
. '">Shop cabinets</a><a href="' . $c->getData('cb_door_sample_link').'">Order sample</a></div>';
print '</li>';
}
print '</ul>';
Expand Down

0 comments on commit e3a91ec

Please sign in to comment.