You are here:  » Clickable images


Clickable images

Submitted by marco@flapper on Fri, 2011-09-16 11:38 in

Hi,
I ried to make the images clickable but I'm not really succesfull.

Could you take a look at it?

I got to this at settings main:

<div class='pto_product'>
%IF_IMAGE%
<a href='%PRICE_LINKS%'><img class='pto_product_image' src='%IMAGE_URL%' /></a>
%ENDIF_IMAGE%
%IF_DESCRIPTION%
<p>%DESCRIPTION%</p>
%ENDIF_DESCRIPTION%
%IF_USEINTERACTION%
%IF_REVIEW%
<p><a href='%PRODUCT_URL%'>Show All Prices</a></p>
%ELSE_REVIEW%
%IF_REVIEW_COUNT%
<p>%RATING% <a href='%REVIEW_URL%'>%REVIEW_COUNT% Reviews</a></p>
%ELSE_REVIEW_COUNT%
<p><a href='%REVIEW_URL%'>Review This Product</a></p>
%ENDIF_REVIEW_COUNT%
%ENDIF_REVIEW%
%ENDIF_USEINTERACTION%
<p><strong>Best Price:</strong> %PRICE% from %PRICE_LINKS%</p>
</div>

Submitted by support on Fri, 2011-09-16 11:57

Hi Marco,

%PRICE_LINKS% is a more comprehensive HTML block, to make the image clickable, use what you have but %PRODUCT_URL% instead e.g.

<a href='%PRODUCT_URL%'><img class='pto_product_image' src='%IMAGE_URL%' /></a>

Cheers,
David.

Submitted by marco@flapper on Fri, 2011-09-16 12:06

Hi,
I tried %PRODUCT_URL% but results in the following link: http://www.mywebsitename.com/%PRODUCT_URL%

%BUY_URL% works. But what if there are more merchants/prices for a product? To what price/merchant leads %BUY_URL% in this case?

Submitted by support on Fri, 2011-09-16 12:09

Sorry Marco, %BUY_URL% is the one to use (%PRODUCT_URL% is the link back to the product page from the reviews page).

The link is to the cheapest / first merchant shown in the price comparison table...

Cheers,
David.

Submitted by marco@flapper on Fri, 2011-09-16 12:21

thanks

Submitted by marco@flapper on Tue, 2011-09-20 08:09

Hi,
I'm trying to get the search results images working. So I changed this in the settings of the plugin (Search Results-Each):

%IF_IMAGE%
<img src='%IMAGE_URL%' /><br />
%ENDIF_IMAGE%
<code>
%IF_IMAGE%
<a href='%BUY_URL%'><img src='%IMAGE_URL%' /></a><br />
%ENDIF_IMAGE%

But this generates the following links:
http://www.mywebsitename.com/%BUY_URL%

Submitted by support on Tue, 2011-09-20 08:16

Hi Marco,

%BUY_URL% isn't in scope within Search Results > Each so in place of that, use %PRODUCT_URL% which will be the link to the product price comparison page...

Cheers,
David.

Submitted by marco@flapper on Tue, 2011-09-20 08:22

Ah, thanks.