This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {%- assign option_index = 'option1' -%} | |
| {%- assign image_matrix = '[ ' -%} | |
| {%- assign image_grid__default = '' -%} | |
| {% for option in product.options_with_values %} | |
| {%- assign option_lowercase = option | downcase -%} | |
| {% if option.name == 'color' %} | |
| {% capture option_index %}option{{ forloop.index }}{% endcapture %} | |
| {% break %} | |
| {% endif %} | |
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php global $post; ?> | |
| <?php if ( have_posts() ) : ?> | |
| <?php while ( have_posts() ) : the_post(); ?> | |
| <?php if( $post instanceof SearchWPTermResult ) : ?> | |
| <div class="searchwp-live-search-result"> | |
| <p><a href="<?php echo $post->link; ?>"> | |
| <?php echo $post->name; ?> (<?php echo $post->taxonomy; ?>) » | |
| </a></p> | |
| </div> | |
| <?php else : setup_postdata( $post ); ?> |