Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Align "Add to Cart" & "Tell A Friend" on tpl_product_info_display

Align "Add to Cart" & "Tell A Friend" on tpl_product_info_display

Locked
This thread is locked. New replies are disabled.
22 Oct 2009, 1:17 PM
#1
compuweb avatar

compuweb

New Zenner

Join Date:
Aug 2009
Location:
Limerick, Ireland
Posts:
91
Plugin Contributions:
0

Post #1 by compuweb

hello All,

I would like to know if it is possible to horizontally align the "Add to Cart" and "Tell A Firend" buttons on the tpl_product_info_display page?

My page is http://www.safebaby.ie/index.php?main_page=product_info&cPath=1&products_id=1

Currently the "Tell A Friend" is on the next line and beneath "Add to Cart". I believe it would look much better on the same line.

If not, can I place it directly under the "Add to Cart" button?

22 Oct 2009, 4:08 PM
#2
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Post #2 by stiggy100

In terms of the second option you can do that in seconds by adding:

#productTellFriendLink {
float: left;
}

Hope this helps

Steve

Steve
Site Under Construction: adatglobal.com

22 Oct 2009, 4:17 PM
#3
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Post #3 by stiggy100

Too late to edit - but I of course meant by adding that to your stylesheet.

I think the first option requires a very small change in your php but I am not so sure, so I'll leave that to someone more experienced!

Steve

Steve
Site Under Construction: adatglobal.com

23 Oct 2009, 12:43 AM
#4
compuweb avatar

compuweb

New Zenner

Join Date:
Aug 2009
Location:
Limerick, Ireland
Posts:
91
Plugin Contributions:
0

Post #4 by compuweb

Thanks Stiggy, the code you supplied worked perfectly for aligning it left.

Would still like to move it up on to the same line as the "Add to Cart" button if anyone knows how to do this it would be great?

23 Oct 2009, 10:06 PM
#5
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Post #5 by stiggy100

To get them on the same line you I beleive will need to create a 'wrapper' and include both of these lines in it:

<!--bof Add to Cart Box -->
              <div id="cartAdd">
<input name="cart_quantity" value="1" type="hidden"><input name="products_id" value="1" type="hidden"><input src="includes/templates/sbtemplate1/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " type="image">          </div>
<!--eof Add to Cart Box--> <!--bof Tell a Friend button --> <div id="productTellFriendLink" class="buttonRow forward"><a href="http://www.safebaby.ie/index.php?main_page=tell_a_friend&products_id=1&zenid=bc43023c806ffcefc24a84c0697e702f"><img src="includes/templates/sbtemplate1/buttons/english/button_TellAFriend.gif" alt="Tell a Friend" title=" Tell a Friend " width="150" height="58"></a></div> <!--eof Tell a Friend button -->

This is found in your includes>templates>sbtemplate1>templates>product_info_display.php

Now I'm not proficient in PHP but I guess you could create it using a similar technique and coding to the wrappers above?

Apologies its not much help,

Steve

Steve
Site Under Construction: adatglobal.com

23 Oct 2009, 10:14 PM
#6
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Post #6 by stiggy100

Or Try

#productTellFriendLink {
position: relative;
bottom: 65px;

See if that holds up to interrogation???

Steve
Site Under Construction: adatglobal.com