Merge branch 'master' of github.com:woothemes/woocommerce
This commit is contained in:
commit
e0f6d5dfe0
|
@ -190,6 +190,10 @@ if ( ! class_exists( 'ShareYourCartWooCommerce', false ) ) {
|
|||
return $post_id;
|
||||
}
|
||||
|
||||
public function showCheckoutButton() {
|
||||
echo $this->getButton();
|
||||
}
|
||||
|
||||
/**
|
||||
* getButtonCallbackURL function.
|
||||
*
|
||||
|
|
|
@ -193,6 +193,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - created an icon font for the star ratings to improve consistency
|
||||
* Tweak - woocommerce_show_page_title filter
|
||||
* Tweak - wrapper / css tweaks for TwentyThirteen compatibility
|
||||
* Tweak - Added filters for controlling cross-sell display
|
||||
* Localisation - NZ States
|
||||
|
||||
= 2.0.5 - 26/03/2013 =
|
||||
|
|
|
@ -22,7 +22,7 @@ $meta_query[] = $woocommerce->query->stock_status_meta_query();
|
|||
$args = array(
|
||||
'post_type' => 'product',
|
||||
'ignore_sticky_posts' => 1,
|
||||
'posts_per_page' => 2,
|
||||
'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', 2 ),
|
||||
'no_found_rows' => 1,
|
||||
'orderby' => 'rand',
|
||||
'post__in' => $crosssells,
|
||||
|
@ -31,7 +31,7 @@ $args = array(
|
|||
|
||||
$products = new WP_Query( $args );
|
||||
|
||||
$woocommerce_loop['columns'] = 2;
|
||||
$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', 2 );
|
||||
|
||||
if ( $products->have_posts() ) : ?>
|
||||
|
||||
|
@ -53,4 +53,4 @@ if ( $products->have_posts() ) : ?>
|
|||
|
||||
<?php endif;
|
||||
|
||||
wp_reset_query();
|
||||
wp_reset_query();
|
Loading…
Reference in New Issue