Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. [[msProducts?
  2. &parents=`5`
  3. &limit=`3`
  4. &tpl=`tpl.main-pw-new`
  5. &where=`{"Data.popular":"1"}`
  6. ]]
  7.  
  8. <!--======= product grid view =======-->
  9. <div class="single-grid-product grid-view-product ms2_product">
  10. <form method="post" class="ms2_form">
  11. <input type="hidden" name="id" value="{$id}">
  12. <input type="hidden" name="count" value="1">
  13. <input type="hidden" name="options" value="[]">
  14.  
  15. <div class="single-grid-product__image">
  16. {if $favorite?}
  17. <div class="single-grid-product__label">
  18. <span class="sale">АКЦИЯ</span>
  19. </div>
  20. {/if}
  21. <a href="{$id | url}">
  22. {if $thumb?}
  23. <img src="{$thumb}" class="mw-100 img-fluid" alt="{$pagetitle}" title="{$pagetitle}"/>
  24. {else}
  25. <img src="{'assets_url' | option}components/minishop2/img/web/ms2_small.png"
  26. srcset="{'assets_url' | option}components/minishop2/img/web/ms2_small@2x.png 2x"
  27. class="mw-100 img-fluid" alt="{$pagetitle}" title="{$pagetitle}"/>
  28. {/if}
  29. </a>
  30. </div>
  31. <div class="single-grid-product__content">
  32. <h3 class="single-grid-product__title"> <a href="{$id | url}">{$pagetitle}</a></h3>
  33. <p class="single-grid-product__price"><span class="discounted-price">{$price} грн.</span>
  34. {if $old_price?}
  35. <span class="main-price discounted">{$old_price} грн.</span>
  36. {/if}
  37. </p>
  38. <button class="cart-btn-mini" name="ms2_action" value="cart/add"> <i class="ion-bag"></i> ДОБАВИТЬ В КОРЗИНУ</button>
  39. </div>
  40. </form>
  41. </div>
  42. <!--======= End of product grid view =======-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement