Why not just use the product_page shortcode?
In the page content:
[product_page id="31"]
In code in the home page template:
<?php echo do_shortcode('[product_page id="31"]'); ?>
Why not just use the product_page shortcode?
In the page content:
[product_page id="31"]
In code in the home page template:
<?php echo do_shortcode('[product_page id="31"]'); ?>