20 <div
class=
"block" id=
"widget_viewed_item" data-sku=
"<?= /* @escapeNotVerified */ $item->getSku() ?>" style=
"display: none;">
21 <li
class=
"item product">
23 <?=
'<!-- ' .
$image .
'-->' ?>
24 <a href=
"<?= /* @escapeNotVerified */ $block->getProductUrl($item) ?>" class=
"product photo">
27 <div
class=
"product details">
28 <strong
class=
"product name"><a title=
"<?= $block->escapeHtml($item->getName()) ?>" href=
"<?= /* @escapeNotVerified */ $block->getProductUrl($item) ?>">
32 <?php echo
$block->getProductPriceHtml(
34 \
Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE,
35 \
Magento\Framework\Pricing\Render::ZONE_ITEM_LIST,
37 'price_id_suffix' =>
'-' .
$type 45 <div
class=
"product actions">
47 <?php
if (
$item->isSaleable()): ?>
48 <?php
if (
$item->getTypeInstance()->hasRequiredOptions(
$item)): ?>
49 <button
class=
"action tocart" data-
mage-init=
'{"redirectUrl": {"url": "<?= /* @escapeNotVerified */ $block->getAddToCartUrl($item) ?>"}}' type=
"button" title=
"<?= /* @escapeNotVerified */ __('Add to Cart') ?>">
50 <span><?=
__(
'Add to Cart') ?></span>
53 <?php $postDataHelper = $this->helper(
'Magento\Framework\Data\Helper\PostHelper');
56 <button
class=
"action tocart" 57 data-post=
'<?= /* @escapeNotVerified */ $postData ?>' 58 type=
"button" title=
"<?= /* @escapeNotVerified */ __('Add to Cart') ?>">
59 <span><?=
__(
'Add to Cart') ?></span>
63 <?php
if (
$item->getIsSalable()): ?>
64 <div
class=
"stock available"><span><?=
__(
'In stock') ?></span></div>
66 <div
class=
"stock unavailable"><span><?=
__(
'Out of stock') ?></span></div>
71 <div
class=
"secondary-addto-links" data-role=
"add-to-links">
72 <?php
if ($this->helper(
'Magento\Wishlist\Helper\Data')->isAllow()): ?>
73 <a href=
"#" data-post=
'<?= /* @escapeNotVerified */ $block->getAddToWishlistParams($item) ?>' class=
"action towishlist" data-action=
"add-to-wishlist" title=
"<?= /* @escapeNotVerified */ __('Add to Wish List') ?>">
74 <span><?=
__(
'Add to Wish List') ?></span>
77 <?php
if (
$block->getAddToCompareUrl()): ?>
79 $compareHelper = $this->helper(
'Magento\Catalog\Helper\Product\Compare');
81 <a href=
"#" class=
"action tocompare" 82 data-post=
'<?= /* @escapeNotVerified */ $compareHelper->getPostDataParams($item) ?>' 83 data-role=
"add-to-links" 84 title=
"<?= /* @escapeNotVerified */ __('Add to Compare') ?>">
85 <span><?=
__(
'Add to Compare') ?></span>
if( $form)() ?>< script > require(['jquery' mage mage