Add a "read more" button to the popups over the thumbnails in list view

Hello,

I have JM Dicento installed here -- http://shop.redwoodfoods.eu/ and absolutely love it.

One of the questions I have been asked is whether it is possible to add a "read more" to the green area which appears when you hover over a thumbnail?

I would like to copy the "add to cart" button and have it next to that button saying "read more" -- this should link through to the product description.

Is this possible?

Many thanks to anyone who can point me in the right direction!

Darragh

Attachment 23446

3 answers

Profile photo of Saguaros 0.00 $tone September 19, 2012
Public

Greetings Darragh,

You could do that by making a bit change in code of this JM Product extension.

Goto file: \app\design\frontend\default\jm_dicentotemplate\j oomlart\jmproducts\list.phtml, line 56, there is a div like:

Code:

<div class="actions">
<?php if($_product->isSaleable()){ ?>
<button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')">
<span><span><?php echo $this->helper("catalog")->__('Add to Cart') ?></span></span>
</button>
<?php } else { ?>
<div class="out-of-stock"><?php echo $this->helper("catalog")->__('Out of stock') ?></div>
<?php } ?>
<button class="form-button" onclick="setLocation('<?php echo $_product->getProductURL() ?>')">
<span><span><?php echo $this->__("Read more") ?></span></span>
</button>
</div>

Add read more button like above.

Then flush magento cache

#1
Profile photo of Saguaros 0.00 $tone September 19, 2012
Public

Greetings Darragh,

You could do that by making a bit change in code of this JM Product extension.

Goto file: \app\design\frontend\default\jm_dicentotemplate\j oomlart\jmproducts\list.phtml, line 56, there is a div like:

Code:

<div class="actions">
<?php if($_product->isSaleable()){ ?>
<button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')">
<span><span><?php echo $this->helper("catalog")->__('Add to Cart') ?></span></span>
</button>
<?php } else { ?>
<div class="out-of-stock"><?php echo $this->helper("catalog")->__('Out of stock') ?></div>
<?php } ?>
<button class="form-button" onclick="setLocation('<?php echo $_product->getProductURL() ?>')">
<span><span><?php echo $this->__("Read more") ?></span></span>
</button>
</div>

Add read more button like above.

Then flush magento cache

#2

This question is now closed

Written By

Comments