added features header to features output, adding term name to product output
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 14:04:02 +0000 (09:04 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 14:04:02 +0000 (09:04 -0500)
views/list_products.php
views/product_detail.php

index 0e62fc0..b2366e6 100644 (file)
@@ -6,7 +6,9 @@
        echo category_description($cat_id);
        $cat_children = get_term_children($cat_id, MICHSCI_CATEGORY_NAME);
     ?>
+          <?php $term = get_term($cat_id, MICHSCI_CATEGORY_NAME); ?>
      <?php if($_COOKIE['subcat'] == "subcat"){ ?>
+        <?php echo $term->name; ?>
         <?php foreach($cat_children as $cats){
             $term = get_term($cats, MICHSCI_CATEGORY_NAME); ?>
             <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
@@ -14,9 +16,7 @@
                 <div class="prodImgGrid small-12 columns"><a href="<?php echo $product->href; ?>">
                      <img id="catImg" src="<?php echo z_taxonomy_image_url($cats, array(320, 285)); ?>" class="image wp-post-image no-display" alt=" "  title="<?php echo $term->name; ?>" itemprop="image">
                 </div>
-<!--                <div class="subCatGrid small-12 columns">
-                    <a href="<?php echo $cat->href . $term->term_id; ?>"><?php echo $term->name; ?></a>
-                </div>-->
+
                 <div class="prodTitleGrid small-12 columns">
                     <a href="<?php echo $cat->href . $term->term_id; ?>"><strong><?php echo $term->name; ?></strong></a>
                 </div>
index 82e7b92..1f4dadc 100644 (file)
@@ -19,8 +19,9 @@ $relatives = wp_get_post_terms($product->ID, 'michsci_category', $args);
     <div class="productImage small-12 medium-4 columns">
            <?php echo get_the_post_thumbnail($product->ID, 'large'); ?>
     </div>
-    <div class="productImage small-12 medium-4 columns">
+    <div class="features small-12 medium-4 columns">
          <?php
+         echo '<h2> Features </h2>';
             $key_value = get_post_custom_values('miproduct_features', $product->ID); 
             foreach($key_value as $key=>$value){
                 $shortcode_output = do_shortcode($value);