Skip to content

Instantly share code, notes, and snippets.

@rickgregory
Created June 13, 2016 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickgregory/96170cf60cadae74bd5b5c2243d7447e to your computer and use it in GitHub Desktop.
Save rickgregory/96170cf60cadae74bd5b5c2243d7447e to your computer and use it in GitHub Desktop.
<?php shopp('collection.description'); ?>
<?php if ( shopp( 'collection.hasproducts' ) ) : ?>
<div class="category">
<?php shopp( 'storefront.breadcrumb', array( 'separator' => '&nbsp;&raquo; ' ) ); ?>
<ul class="products">
<?php while( shopp( 'collection.products' ) ) : ?>
<li class="product<?php if ( shopp('collection.row') ) echo ' first'; ?>" itemscope itemtype="http://schema.org/Product">
<div class="frame">
<a href="<?php shopp( 'product.url' ); ?>" itemprop="url"><?php shopp( 'product','coverimage', 'setting=category-thumb-lg&crop=true&itemprop=image' ); ?></a>
<div class="details">
<h4 class="name">
<a href="<?php shopp( 'product.url' ); ?>"><span itemprop="name"><?php shopp( 'product.name' ); ?></span></a>
</h4>
<p class="price" itemscope itemtype="http://schema.org/Offer"><span itemprop="price"><?php shopp( 'product.saleprice', 'starting=' . __( 'from', 'Shopp' ) ); ?></span></p>
<?php if ( shopp( 'product.has-savings' ) ) : ?>
<p class="savings"><?php _e( 'Save ', 'Shopp' ); ?><?php shopp( 'product.savings', 'show=percent' ); ?></p>
<?php endif; ?>
<div class="listview">
<p><span itemprop="description"><?php shopp( 'product.summary' ); ?></span></p>
</div>
</div>
</div>
</li>
<?php endwhile; ?>
</ul>
<div class="alignright">
<?php shopp( 'collection.pagination', 'show=10' ); ?>
</div>
</div>
<?php else : ?>
<?php if ( ! shopp('storefront.is-landing') ) shopp( 'storefront.breadcrumb' ); ?>
<p class="notice"><?php _e( 'No products were found.', 'Shopp' ); ?></p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment