Hi, Merry Xmas,
I have a multistore setup and have one store that has only one product and I want the homepage to be that of the product view page. I cant figure out how to set this up. I have tried to set the homepage to call the block catalog/product_view with the template and product id but that didn't work and tried to set the homepage path on the config settings but I am not stuck.
Can anyone shed any light it would be much appreciated.
Solved! Go to Solution.
Add this code in the header file and replace the id value(149) with your product id.
<?php
if($this->getIsHomePage()) {?>
<script>
$(document).ready(function(){
var url='<?php echo $this->getUrl()?>catalog/product/view/id/149';
window.location.href = url;
})
</script>
<?php }?>