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
    
  
  
    
  | add_action( 'after_setup_theme', 'remove_pglb_theme_support', 100 ); | |
| function remove_pglb_theme_support() { | |
| remove_theme_support( 'wc-product-gallery-lightbox' ); | |
| } | 
  
    
      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
    
  
  
    
  | add_action( 'woocommerce_checkout_before_order_review', 'wc_custom_add_checkout_notice', 11 ); | |
| function wc_custom_add_checkout_notice() { | |
| wc_print_notice( __( 'your notice message here', 'woocommerce' ), 'notice' ); | |
| } | 
  
    
      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
    
  
  
    
  | add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' ); | |
| function wc_remove_link_on_thumbnails( $html ) { | |
| return strip_tags( $html,'<img>' ); | |
| } | |
| //Did this help? Donate me some BTC: 1BEsm8VMkYhSFJ92cvUYwxCtsfsB2rBfiG | 
  
    
      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
    
  
  
    
  | add_filter( 'woocommerce_admin_order_date_format', 'custom_post_date_column_time' ); | |
| function custom_post_date_column_time( $format ) { | |
| return __( 'Y-m-d H:i:s A', 'woocommerce' ); | |
| } | 
  
    
      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
    
  
  
    
  | function hide_shipping_when_free_is_available( $rates, $package ) { | |
| $new_rates = array(); | |
| foreach ( $rates as $rate_id => $rate ) { | |
| // Only modify rates if free_shipping is present. | |
| if ( 'free_shipping' === $rate->method_id ) { | |
| $new_rates[ $rate_id ] = $rate; | |
| break; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | add_action( 'after_setup_theme', 'yourtheme_setup' ); | |
| function yourtheme_setup() { | |
| add_theme_support( 'wc-product-gallery-zoom' ); | |
| add_theme_support( 'wc-product-gallery-lightbox' ); | |
| add_theme_support( 'wc-product-gallery-slider' ); | |
| } | 
  
    
      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
    
  
  
    
  | add_action( 'woocommerce_after_shop_loop_item', 'rs_show_dimensions', 9 ); | |
| function rs_show_dimensions() { | |
| global $product; | |
| $dimensions = wc_format_dimensions($product->get_dimensions(false)); | |
| if ( $product->has_dimensions() ) { | |
| echo '<div class="product-meta"><span class="product-meta-label">Dimensions: </span>' . $dimensions . '</div>'; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | add_action( 'woocommerce_after_shop_loop_item', 'rs_show_weights', 9 ); | |
| function rs_show_weights() { | |
| global $product; | |
| $weight = $product->get_weight(); | |
| if ( $product->has_weight() ) { | |
| echo '<div class="product-meta"><span class="product-meta-label">Weight: </span>' . $weight . get_option('woocommerce_weight_unit') . '</div></br>'; | |
| } | 
  
    
      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
    
  
  
    
  | add_action( 'woocommerce_cart_calculate_fees','wc_add_surcharge' ); | |
| function wc_add_surcharge() { | |
| global $woocommerce; | |
| if ( is_admin() && ! defined( 'DOING_AJAX' ) ) | |
| return; | |
| $county = array('US'); | |
| // change the $fee to set the surcharge to a value to suit | |
| $fee = 1.00; | 
  
    
      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
    
  
  
    
  | add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 ); | |
| function remove_add_to_cart_buttons() { | |
| // replace a_category and another_category with the slugs of the categories you'd like to have the button removed from | |
| if( is_product_category( array( 'a_category', 'another_category'))) { | |
| remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); | |
| } | |
| } | |
| // Did this help? Donate me some BTC: 1BEsm8VMkYhSFJ92cvUYwxCtsfsB2rBfiG |