2

I want to show one product on home page. The product should be shows same as on product view, not like list view.

I can get name and sku of product in above code but I don't know how to show custom options of product.

<?php

$obj = Mage::getModel('catalog/product');
$product_id = 8;
$_product = $obj->load($product_id);

echo $_product->getName();

?>

You can see the image what I want. That I can see the one product on home page.

enter image description here

Could you help me?

1
  • post some code you're working with. Commented Dec 16, 2014 at 14:38

1 Answer 1

2

The easiest way to use product page as home page is to set System->Configuration->General->Web->default Pages->Default Web URL to "catalog/product/view/id/8", here 8 is product ID. Note, that you will have to similar pages, so add canonical url to product page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.