WooCommerce - excelling eCommerce
[resolved] Related products (3 posts)

  1. RapBatLe
    Posted 2 years ago #

    <?php woocommerce_get_template_part( 'content', 'product' ); ?>
    this function dispay related products. I put also this at home page,where all products are displayed. If i do something in this code the changes makes at home page and at page with single products,but i hope to display at single product page only images of products with out prices and buttons. Can i make this?


  2. RapBatLe
    Posted 2 years ago #

    thanks but i doing this issue. it's simple...

    <a href="<?php the_permalink(); ?>">
    <div style="float: left; margin:0 10px;"> <?php do_action( 'woocommerce_before_shop_loop_item_title' ); ?></div>
  3. Roy Ho
    Posted 2 years ago #

    What you can do is make a duplicate of the content-product.php file and name it content-homepage-product.php...etc and you make the call to it like so: woocommerce_get_template_part( 'content', 'homepage-product' );

    This way you can have different HTML for your single view page and on your homepage.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic