cancel
Showing results for 
Search instead for 
Did you mean: 

Set homepage to product view

SOLVED

Set homepage to product view

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Set homepage to product view

catalog/product/view/id

 

found it

View solution in original post

2 REPLIES 2

Re: Set homepage to product view

catalog/product/view/id

 

found it

Re: Set homepage to product view

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