Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Product Page Design Layout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-31-2008, 10:44 AM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default Product Page Design Layout

Hi,
Wondering if anyone could help me out - I don't know much beyond HTML, so I'm struggling with how to get this to work:

I'd like the "buy now" button to be on the same line as the Product Title. Can't seem to find the right code to change this. Does anyone have any suggestions?






This is the code I'm using (from customer/main/products.tpl)

Quote:

<td class="prod_desc">
<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}"><font class="ProductTitle">{$products[product].product}</font></a>
{if $products[product].product_type eq "C"}
{include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&amp;cat=`$cat`&amp;page=`$navigation_p age`"}
{else}
<div id="buy"><a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}"><img src="{$ImagesDir}/buy_now.gif" width="64" height="20" alt="Buy Now"></a></div>

{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
<br />
{$lng.lbl_sku}: {$products[product].productcode}
{/if}
<br />
<br />
{$products[product].descr|truncate:300:"...":true}
<br />


Thanks very much!
__________________
4.1.8
Reply With Quote
  #2  
Old 07-31-2008, 12:20 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Product Page Design Layout

This may or may not work depending on your css settings:

Code:
<td class="prod_desc"> {if $products[product].product_type eq "C"} <a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}"><font class="ProductTitle">{$products[product].product}</font></a> {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&amp;cat=`$cat`&amp;page=`$navigation_p age`"} {else} <div id="buy"><a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}"><font class="ProductTitle">{$products[product].product}</font></a> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}"><img src="{$ImagesDir}/buy_now.gif" width="64" height="20" alt="Buy Now"></a></div> {if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""} <br /> {$lng.lbl_sku}: {$products[product].productcode} {/if} <br /> <br /> {$products[product].descr|truncate:300:"...":true} <br />
Reply With Quote
  #3  
Old 08-07-2008, 11:50 AM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default Re: Product Page Design Layout

Hi,
Thanks for the advice - with your pointing me in the right direction I was able to get it looking like this:

http://www.highmowingseeds.com/imgs/beans.jpg

One more thing - any clue on how I can get the Product Title to be Left justified instead of right? For some the justification changed when I changed the code with the one that was suggested. Thanks so much!
__________________
4.1.8
Reply With Quote
  #4  
Old 08-09-2008, 10:35 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Product Page Design Layout

Try adding this to your 'buy' class:

Code:
text-align: left;
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 -8. The time now is 11:20 AM.

   

 
X-Cart forums © 2001-2020