Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Custom Buttons (/showthread.php?t=4312)

macfink April 8th, 2011 05:53 AM

Custom Buttons
 
Hi Eric,

I have tried to add my custom buttons. However, due to me being a novice, i'm doing something which is messing things up.

Below is the code with the default buttons, highlited in red is the code i need to change

<!-- Single Product -->
<div class="sp">
<div class="lc">
<div class="thmb">
<a href="[product.url direct='0']" title="[product.name]" target="_blank">
[product.image tag='1']
</a>
<div class="btns">
<div>[product.currency mode="sign"][product.price]</div>
<a href="[product.url]" class="dfbutton dfblue dflarge dfrounded" title="Buy this product" target="_blank">Buy</a>
</div>
</div>
</div>
<div class="rc">
<h3><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h3>
<p class="desc">[product.description cut='75 words']</p>
<div>
</div>
</div>
<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->

This is what i have changed it to which messes with the CSS i think. I know what i'm doing is incorrect, but what is it?

<!-- Single Product -->
<div class="sp">
<div class="lc">
<div class="thmb">
<a href="[product.url direct='0']" title="[product.name]" target="_blank">
[product.image tag='1']
</a>
<div class="btns">
<div>[product.currency mode="sign"][product.price]</div>
<a href="[product.url]"><img src="http://www.freakfish.co.uk/images/button_buy_now_large.jpg" title="Buy this product" target="_blank">Buy</a>
</div>
</div>
</div>
<div class="rc">
<h3><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h3>
<p class="desc">[product.description cut='75 words']</p>
<div>
</div>
</div>
<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->

Eric April 8th, 2011 08:13 AM

There is no image at this URL:

http://www.freakfish.co.uk/images/bu..._now_large.jpg

macfink April 8th, 2011 09:20 AM

Sorry

<a href="[product.url]"><img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.jpg" title="Buy this product" target="_blank">Buy</a>

Eric April 8th, 2011 09:25 AM

Hi

This should do the trick:

HTML Code:

<a href="[product.url]" title="Buy this product">
        <img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.jpg" alt="Buy this product" target="_blank" />
</a>

Eric

macfink April 8th, 2011 10:25 AM

That worked great

http://rideonsurfshop.co.uk/store/sn...7200197925771/

I'm trying to update the category buttons now.

http://rideonsurfshop.co.uk/store/ca.../snorkel-sets/

The detail button is only showing, here's the code.

<a href="[product.link]" title="View details of [product.name]"><img src="http://www.rideonsurfshop.co.uk/images/button_details.gif"></a>
<a href="[product.url direct='0']" title="Buy [product.name]"<img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.gif" alt="Buy this product"></a>

My dodgy code again? lol

Eric April 8th, 2011 10:30 AM

You are missing a closing ">" on the second <a> tag.

macfink April 8th, 2011 10:41 AM

Sorry if im being thick again

Isnt it closed off?

<a href="[product.url direct='0']" title="Buy [product.name]"<img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.gif" alt="Buy this product"></a>

Eric April 8th, 2011 10:42 AM

Quote:

Originally Posted by macfink (Post 19785)
Sorry if im being thick again

Isnt it closed off?

<a href="[product.url direct='0']" title="Buy [product.name]"<img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.gif" alt="Buy this product"></a>

<a href="[product.url direct='0']" title="Buy [product.name]"><img src="http://www.rideonsurfshop.co.uk/images/button_buy_now_large.gif" alt="Buy this product"></a>

macfink April 8th, 2011 10:47 AM

Cheers Eric as ever, most appreciated.

I really admire you, putting up with me sometimes! :)

Thanks again


All times are GMT -5. The time now is 12:54 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.