Reputation: 325
I am trying to build a custom jquery slider in the Product page meaning the view.phtml in Magento 1.7.0.2
The code below is working and It fetches me the Related Products
<?php $related_prods = $_product->getRelatedProductIds(); ?>
<?php foreach($related_prods as $related): ?>
<?php $_rel = Mage::getModel('catalog/product')->load($related); ?>
<?php echo $_rel->getName(); ?>
<img src="<?php echo $_rel->getImageUrl(); ?>"/>
<?php endforeach; ?>
I would like to include this code with a horizontal jquery slider but I haven't found something yet.
Does anyone has a horizontal jquery slider to include the php code above?
Upvotes: 0
Views: 3888
Reputation: 8819
You can also follow this http://www.magentocommerce.com/boards/viewthread/33684/#t190949 to make related product working.
Upvotes: 1
Reputation: 1869
There is free extension available in market. try this extention page on magento connect
http://www.magentocommerce.com/magento-connect/related-product-slider-5017.html
Upvotes: 0