product.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php shopp( 'storefront.breadcrumb' ); ?>
  2. <?php if ( shopp( 'product.found' ) ) : ?>
  3. <?php shopp( 'product.gallery', 'p_setting=gallery-previews&thumbsetting=gallery-thumbnails' ); ?>
  4. <h3><?php shopp( 'product.name' ); ?></h3>
  5. <p class="headline"><?php shopp( 'product.summary' ); ?></p>
  6. <?php shopp('product.schema'); ?>
  7. <?php if ( shopp( 'product.onsale' ) ) : ?>
  8. <h3 class="original price" ><?php shopp( 'product.price' ); ?></h3>
  9. <h3 class="sale price"><?php shopp( 'product.saleprice' ); ?></h3>
  10. <?php if ( shopp( 'product.has-savings' ) ): ?>
  11. <p class="savings"><?php _e( 'You save', 'Shopp' ); ?> <?php shopp( 'product.savings' ); ?> (<?php shopp( 'product.savings', 'show=%' ); ?>)!</p>
  12. <?php endif; ?>
  13. <?php else: ?>
  14. <h3 class="price"><?php shopp( 'product.price' ); ?></h3>
  15. <?php endif; ?>
  16. <?php if ( shopp( 'product.freeshipping' ) ) : ?>
  17. <p class="freeshipping"><?php _e( 'Free Shipping!', 'Shopp' ); ?></p>
  18. <?php endif; ?>
  19. <form action="<?php shopp( 'cart.url' ); ?>" method="post" class="shopp validate validation-alerts">
  20. <?php if ( shopp( 'product.has-variants' ) ) : ?>
  21. <ul class="variations">
  22. <?php shopp( 'product.variants', 'mode=multiple&label=true&defaults=' . __( 'Select an option', 'Shopp') . '&before_menu=<li>&after_menu=</li>' ); ?>
  23. </ul>
  24. <?php endif; ?>
  25. <?php if ( shopp( 'product.has-addons' ) ) : ?>
  26. <ul class="addons">
  27. <?php shopp( 'product.addons', 'mode=menu&label=true&defaults=' . __( 'Select an add-on', 'Shopp') . '&before_menu=<li>&after_menu=</li>' ); ?>
  28. </ul>
  29. <?php endif; ?>
  30. <p>
  31. <?php shopp( 'product.quantity', 'class=selectall&input=menu' ); ?>
  32. <?php shopp( 'product.addtocart' ); ?>
  33. </p>
  34. </form>
  35. <?php shopp( 'product.description' ); ?>
  36. <?php if ( shopp( 'product.has-specs' ) ) : ?>
  37. <dl class="details">
  38. <?php while ( shopp( 'product.specs' ) ) : ?>
  39. <dt><?php shopp( 'product.spec', 'name' ); ?>:</dt>
  40. <dd><?php shopp( 'product.spec', 'content' ); ?></dd>
  41. <?php endwhile; ?>
  42. </dl>
  43. <?php endif; ?>
  44. <?php else : ?>
  45. <h3><?php _e( 'Product Not Found', 'Shopp' ); ?></h3>
  46. <p><?php _e( 'Sorry! The product you requested is not found in our catalog!', 'Shopp' ); ?></p>
  47. <?php endif; ?>