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 March 29th, 2011, 06:21 PM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default Moving buy button

Hi Eric,

ID 30949

How would i go about moving the buy button in the product detail to just under the product image rather than the description?

http://rideonsurfshop.co.uk/store/me...7200196416448/
  #2  
Old March 29th, 2011, 06:28 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Did you try just placing the "Buy" code to underneath the picture code in your Views? Seems to work for me...

  #3  
Old March 29th, 2011, 06:53 PM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default

Hi Eric,

I think i have?

This is the code im looking at. I have highlited in red what im doing. I think its wrong as the button always ends up above the title. Sorry i am a novice at HTML and PHP.

<!-- 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>
<!-- Place Button Here-->
</div>
</div>
<div class="rc">
<h2><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h2>
<p class="desc">[product.description]</p>
<div>
[product.each_tag]<?php if($nn>1){echo ', ';}?><a href="[tag.link]"><?php echo str_replace("-"," ",$tag->name);?></a>[product.end]
</div>
<div class="prc">[product.currency mode="sign"][product.price]</div>
<div class="btns">
<a href="[product.url]" class="dfbutton dfblue dflarge dfrounded" title="Buy this product" target="_blank">Buy</a>
</div>

</div>
<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->
  #4  
Old March 29th, 2011, 08:27 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

I think you need this:
HTML Code:
<!-- 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">
        <a href="[product.url]" class="dfbutton dfblue dflarge dfrounded" title="Buy this product" target="_blank">Buy</a>
      </div>
    </div>
  </div>
  <div class="rc">
    <h2><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h2>
    <p class="desc">[product.description]</p>
    <div>
      [product.each_tag]<?php if($nn>1){echo ', ';}?><a href="[tag.link]"><?php echo str_replace("-"," ",$tag->name);?></a>[product.end]
    </div>
    <div class="prc">[product.currency mode="sign"][product.price]</div>
  </div>
  <div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->
  #5  
Old March 30th, 2011, 05:40 AM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default

Hi Eric,

Thanks for that

I installed the code you provided and it worked except the price was under the description.

I have sort of fixed this by moving the price code above the button as you can see below. However, the price isnt aligned centre with the button, how do i do this?

http://rideonsurfshop.co.uk/store/ba...7200196526370/

<!-- 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="prc">[product.currency mode="sign"][product.price]</div>
<div class="btns">
<a href="[product.url]" class="dfbutton dfblue dflarge dfrounded" title="Buy this product" target="_blank">Buy</a>
</div>
</div>
</div>
<div class="rc">
<h2><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h2>
<p class="desc">[product.description]</p>
<div>
[product.each_tag]<?php if($nn>1){echo ', ';}?><a href="[tag.link]"><?php echo str_replace("-"," ",$tag->name);?></a>[product.end]
</div>
</div>
<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->
  #6  
Old March 30th, 2011, 06:23 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

This should work:
HTML Code:
<!-- 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">
			<h2><a href="[product.url direct='0']" title="[product.name]" target="_blank">[product.name]</a></h2>
			<p class="desc">[product.description]</p>
		<div>
			[product.each_tag]<?php if($nn>1){echo ', ';}?><a href="[tag.link]"><?php echo str_replace("-"," ",$tag->name);?></a>[product.end]
		</div>
	</div>
	<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving a store? rexmtn Questions 1 March 5th, 2011 09:12 AM


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


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