A
A
AndyLarcin2015-09-17 14:00:52
Magento
AndyLarcin, 2015-09-17 14:00:52

Redirect from review page to product page by clicking on product image?

Good afternoon, I can’t solve the problem, do I need to redirect to the product page, from the review page by clicking on the product image?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Fedyuk, 2015-09-18
@AndyLarcin

Use the Mage_Catalog_Model_Product::getProductUrl()
method This method returns the product's web address.
An example of the application of this method can be seen , for example, in the standard product list template:

<a 
  href="<?php echo $_product->getProductUrl() ?>" 
  title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" 
  class="product-image"
><img 
    src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" 
    width="135" 
    height="135" 
    alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" 
/></a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question