Support » Plugin: WooCommerce » [Plugin: WooCommerce – excelling eCommerce] Related products

  • Resolved RapBatLe

    (@rapbatle)


    <?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?

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter RapBatLe

    (@rapbatle)

    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>
    </a>

    Plugin Contributor royho

    (@royho)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Related products’ is closed to new replies.