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
  #1  
Old January 14th, 2011, 05:35 AM
whkchan whkchan is offline
 
Join Date: Nov 2010
Posts: 17
Default buy button in product page

Hello,

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?

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

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:
http://www.datafeedr.com/docs/item/172 (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>
    </
div
If you want to use an image, you can enter the html there for that.
  #3  
Old January 14th, 2011, 07:47 AM
whkchan whkchan is offline
 
Join Date: Nov 2010
Posts: 17
Default

thanks, but which line do I edit? for example if the image i want is at www.url.com/images/newbutton.gif, where would i place this code?
  #4  
Old January 14th, 2011, 08:36 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

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
  #5  
Old January 14th, 2011, 09:12 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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


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 04:01 PM.


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