Hello Johanna,
Please provide site url where we can see it in action?
Regards,
Dima
Thread Starter
Johanna
(@johannacharpentier)
I have it only in local server for now… is there another way I could provide more details to help?
Thread Starter
Johanna
(@johannacharpentier)
I wonder if there is an issue with the php code in woocommmerce/cart/cross-sells.php ?
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product, $woocommerce_loop;
if ( ! $crosssells = WC()->cart->get_cross_sells() ) {
return;
}
$args = array(
'post_type' => 'product',
'ignore_sticky_posts' => 1,
'no_found_rows' => 1,
'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', $posts_per_page ),
'orderby' => $orderby,
'post__in' => $crosssells,
'meta_query' => WC()->query->get_meta_query()
);
$products = new WP_Query( $args );
$woocommerce_loop['name'] = 'cross-sells';
$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', $columns );
if ( $products->have_posts() ) : ?>
<div class="cross-sells">
<h2><?php _e( 'You may be interested in…', 'woocommerce' ) ?></h2>
<?php woocommerce_product_loop_start(); ?>
<?php while ( $products->have_posts() ) : $products->the_post(); ?>
<?php wc_get_template_part( 'content', 'product' ); ?>
<?php endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
</div>
<?php endif;
wp_reset_query();
Thread Starter
Johanna
(@johannacharpentier)
Actually, I think it’s an compatibility issue with WP 4.7 which I updated this morning. Shall I downgrade or will an update to the plugin be released soon ?
Plugin Author
RazyRx
(@razyrx)
Hi,
Please try to change “Style” option in plugin settings(Admin Panel->WooCommerce->Cart Suggestions) and check how it works with different styles.
Regards,
Oleg
I’m having this same problem.
The only thing that appears is the Suggestions Title but absolutely no product information will appear, not title, description, price or image. I’ve tried all the different style options.
Any suggestions?