I solved it!
I added the description of product (or variation) to the upsell loop with JQuery.
<?php
woocommerce_product_loop_start();
foreach ( $upsells as $upsell ) :
$post_object = get_post( $upsell->get_id() );
$post_object->post_content="<p>".strip_tags($upsell->description)."</p>";
setup_postdata( $GLOBALS['post'] =& $post_object );
wc_get_template_part( 'content', 'product' ); ?>
<script type="text/javascript">
jQuery(".post-<?php echo $post_object->ID;?> .fusion-price-rating .price").before("<?php echo $post_object->post_content;?>");
</script>
<?php
endforeach;
woocommerce_product_loop_end(); ?>
-
This reply was modified 6 years, 9 months ago by digitos.
-
This reply was modified 6 years, 9 months ago by digitos.