Quick changes, no time to explain!
authorLaury GvR <laury@gaslightmedia.com>
Thu, 21 Apr 2016 18:58:17 +0000 (14:58 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 21 Apr 2016 18:58:17 +0000 (14:58 -0400)
css/app.css
functions.php
parts/shop-sidebar.php
scss/plugins/_woocommerce.scss
woocommerce/single-product/add-to-cart/variable.php
woocommerce/single-product/price.php

index a562369..32601c6 100644 (file)
@@ -7055,18 +7055,18 @@ main.woocommerce, div.woocommerce {
       width: 40%; }
       main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom {
         display: block;
-        height: 180px;
+        height: 220px;
         overflow: hidden;
         border: 1px solid lightgrey;
         border-radius: 2px; }
       main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image {
-        min-height: 180px;
+        min-height: 220px;
         width: 100%; }
       @media only screen and (max-width: 40em) {
         main.woocommerce .main.woo-single-product #content .type-product .images, div.woocommerce .main.woo-single-product #content .type-product .images {
           width: 100%; } }
       main.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id, div.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id {
-        height: 180px; }
+        height: 220px; }
     main.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary, div.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary {
       width: 60%; }
       @media only screen and (max-width: 40em) {
index 8df2679..d28b9bc 100644 (file)
@@ -163,8 +163,8 @@ add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_add
 remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 10 );
 add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_link_close', 30 );
 
-remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
-add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 );
+//remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
+//add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 );
 
 // Change number of thumbnails per row to 4
 add_filter ( 'woocommerce_product_thumbnails_columns', 'four_thumb_cols' );
index 23f2f34..e51165e 100644 (file)
@@ -1,5 +1,52 @@
                 
                 <div class="sidebar shop-sidebar">
+<!--                    <h1>Test</h1>-->
+                    <?php
+//
+//                        $taxonomy     = 'product_cat';
+//                        $orderby      = 'name';  
+//                        $show_count   = 0;      // 1 for yes, 0 for no
+//                        $pad_counts   = 0;      // 1 for yes, 0 for no
+//                        $hierarchical = 1;      // 1 for yes, 0 for no  
+//                        $title        = '';  
+//                        $empty        = 0;
+//
+//                        $args = array(
+//                               'taxonomy'     => $taxonomy,
+//                               'orderby'      => $orderby,
+//                               'show_count'   => $show_count,
+//                               'pad_counts'   => $pad_counts,
+//                               'hierarchical' => $hierarchical,
+//                               'title_li'     => $title,
+//                               'hide_empty'   => $empty
+//                        );
+//                       $all_categories = get_categories( $args );
+//                       foreach ($all_categories as $cat) {
+//                          if($cat->category_parent == 0) {
+//                              $category_id = $cat->term_id;       
+//                              echo '<br /><a href="'. get_term_link($cat->slug, 'product_cat') .'">'. $cat->name .'</a>';
+//
+//                              $args2 = array(
+//                                      'taxonomy'     => $taxonomy,
+//                                      'child_of'     => 0,
+//                                      'parent'       => $category_id,
+//                                      'orderby'      => $orderby,
+//                                      'show_count'   => $show_count,
+//                                      'pad_counts'   => $pad_counts,
+//                                      'hierarchical' => $hierarchical,
+//                                      'title_li'     => $title,
+//                                      'hide_empty'   => $empty
+//                              );
+//                              $sub_cats = get_categories( $args2 );
+//                              if($sub_cats) {
+//                                  foreach($sub_cats as $sub_category) {
+//                                      echo  $sub_category->name ;
+//                                  }   
+//                              }
+//                          }       
+//                      }
+                      ?>
+                    
                     <a href="<?php echo esc_url( get_permalink( woocommerce_get_page_id( 'shop' ) ) ); ?>">
                         <h1>Products</h1>
                     </a>
index 106a28a..06ea37d 100644 (file)
@@ -729,13 +729,13 @@ div.woocommerce {
             .images {
                 .woocommerce-main-image.zoom {
                     display: block;
-                    height:180px;
+                    height:220px;
                     overflow: hidden;
                     border: 1px solid lightgrey;
                     border-radius: 2px;
                 }
                 .woocommerce-main-image.zoom .wp-post-image {
-                    min-height: 180px;
+                    min-height: 220px;
                     width: 100%;
                 }
                 width: 40%;
@@ -743,7 +743,7 @@ div.woocommerce {
                     width: 100%;
                 }
                 #wpb_wiz_img_id {
-                    height: 180px;
+                    height: 220px;
                 }
                 
             }
index 3c6d747..7b9bc20 100644 (file)
@@ -46,11 +46,11 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
                     <?php $variations_ob = ob_get_clean(); $variations_arr[wc_attribute_label($attribute_name)] = $variations_ob; endforeach;
 
                 foreach ($variations_arr as $name => $ob) {
-                    $article = "a ";
-                    if (ctype_alpha($name) && preg_match('/^[aeiou]/i', $name)) {
-                        $article = "an ";
-                    }
-                    echo str_ireplace('choose an option', 'Choose '.$article.$name, $ob );
+//                    $article = "a ";
+//                    if (ctype_alpha($name) && preg_match('/^[aeiou]/i', $name)) {
+//                        $article = "an ";
+//                    }
+                    echo str_ireplace('choose an option', 'Select '.$name, $ob );
                 } ?>
 
             </tbody>
index d1f16bf..e7e2bd1 100644 (file)
@@ -24,7 +24,7 @@ global $product;
 ?>
 <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
 
-       <?php if( $product->is_type( 'simple' ) ){ ?><p class="price"><?php echo $product->get_price_html(); ?></p><?php } ?>
+       <?php // if( $product->is_type( 'simple' ) ){ ?><p class="price"><?php echo $product->get_price_html(); ?></p><?php // } ?>
 
        <meta itemprop="price" content="<?php echo esc_attr( $product->get_price() ); ?>" />
        <meta itemprop="priceCurrency" content="<?php echo esc_attr( get_woocommerce_currency() ); ?>" />