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