Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Old January 14th, 2011, 05:35 AM
whkchan whkchan is offline
Join Date: Nov 2010
Posts: 17
Default buy button in product page


I was wondering if we wanted to change the button in the detailed product page to another image we want, how would we do that?

Old January 14th, 2011, 06:39 AM
patagonia patagonia is offline
Join Date: May 2009
Posts: 506

The current button is actually styled with css. You can change the button to any other color you want, by changing the button class in the code, to one of the ones listed here: (at the bottom are all the button colors).

If you go to factory -> choose your shp -> Views -> product detail -> default category, click on the image to edit the module template and you can see all the code there for the button:

PHP Code:
    <div class="btns">
a href="[product.url]" class="dfbutton dforange dflarge" title="Buy this product" target="_blank">Buy</a>
If you want to use an image, you can enter the html there for that.
Old January 14th, 2011, 07:47 AM
whkchan whkchan is offline
Join Date: Nov 2010
Posts: 17

thanks, but which line do I edit? for example if the image i want is at, where would i place this code?
Old January 14th, 2011, 08:36 AM
digitalcow digitalcow is offline
Join Date: Jun 2010
Posts: 494

if you have an html editor you can do it in there. Just delete the code for the current button and add your own. I did all my template editing in dreamweaver rather than by editing the css

Make sure you get the hyperlink correct or your button won't take people anywhere
Old January 14th, 2011, 09:12 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902

You will want something like this:
HTML Code:
<a href="[product.url]" title="Buy this product" target="_blank">
	<img src="" alt="Buy" />

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

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