SHARE
TWEET

Untitled

a guest Sep 21st, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ul class="grid grid--uniform sameheight">
  2.     {{#each products as |product|}}
  3.         <li class="
  4.             {{#if product.custom_fields }}
  5.                 {{#each product.custom_fields as |product_field| }}
  6.                     {{#if product_field.name '==' 'category_preview' }}
  7.                         {{#if product_field.value '==' 'wide' }}
  8.                             grid__item small--one-whole medium-up--one-half half-grid
  9.                         {{/if}}
  10.                     {{/if}}
  11.                 {{/each}}
  12.             {{else}}
  13.                 grid__item small--one-half medium-up--one-quarter
  14.             {{/if}}
  15.         ">
  16.             {{>components/products/card-custom settings=../settings show_compare=../show_compare show_rating=../settings.show_product_rating theme_settings=../theme_settings customer=../customer event=../event position=(add @index 1)}}
  17.         </li>
  18.     {{/each}}
  19. </ul>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top