This file contains 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
/** | |
* Set all WooCommerce orders to Processing | |
* Based on https://docs.woocommerce.com/document/automatically-complete-orders/ | |
*/ | |
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); | |
function custom_woocommerce_auto_complete_order( $order_id ) { | |
if ( ! $order_id ) { | |
return; | |
} |
This file contains 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
<?php | |
/* | |
* Change Variable Product Display Price to "From: ____" using minimum price | |
*/ | |
function 171013_variable_price_format( $price, $product ) { | |
$prefix = sprintf('%s: ', __('Starting Price:', '171013')); | |
$min_price_regular = $product->get_variation_regular_price( 'min', true ); |
This file contains 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
<?php | |
/** | |
* Change the number of Related Products per Page to 5 | |
*/ | |
add_filter( 'woocommerce_output_related_products_args', 'lf_related_products_args', 20 ); | |
function lf_related_products_args( $args ) { | |
$args['posts_per_page'] = 5; // 5 related products | |
$args['columns'] = 5; // arranged in 5 columns | |
return $args; |
This file contains 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
table.variations td#ed_wc_pa_choose-print-size .ed__variation__button__wrp { | |
max-width: 70px; | |
max-height: 70px; | |
display: inline-block; | |
float: left; | |
} | |
table.variations td#ed_wc_pa_choose-print-size .ed__variation__button__wrp label i { | |
font-size: 14px; | |
} |
This file contains 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
/* This CSS will change the max box width in the selector from 100px to 70px. Note that it changes both sets of boxes so they're the same size - if you want to leave the framing options the 100px size, then use the modified CSS sheet. */ | |
.ed__variation__button__wrp { | |
max-width: 70px; | |
max-height: 70px; | |
} | |
/* This command makes it so all of the 5 options for the sizes line up. */ | |
table.variations td#ed_wc_pa_choose-print-size .ed__variation__button__wrp { | |
display: inline-block; | |
float: left; | |
} |
This file contains 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
<?php | |
add_filter( 'woocommerce_product_tabs', 'remove_wc_reviews_tab', 98 ); | |
function remove_wc_reviews_tab($tabs) { | |
unset($tabs['reviews']); | |
return $tabs; | |
} |
This file contains 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
[parallax_hero heading_text="Coats and Sweatshirts" description_text="Bundle up with some awesome Woo apparel!" description_text_color="white" background_img="https://path-to.img" alignment="left" parallax="0" overlay_color="#96588a" overlay_opacity=".25" layout="fixed" full_height="0" style="border: 1em solid #e6e6e6;"] |
This file contains 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
body.home span.posted-on, body.single span.posted-on, body.blog span.posted-on { | |
display: none; | |
} | |
body.home aside.entry-meta, body.single aside.entry-meta, body.blog aside.entry-meta { | |
display: none; | |
} | |
body.home .hentry.type-post .entry-content, body.single .hentry.type-post .entry-content, body.blog .hentry.type-post .entry-content { | |
width: 100%; |
This file contains 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
small.woocommerce-password-hint { | |
display: none; | |
} |