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

Upselling Product Modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2005, 06:29 PM
 
usiripakdi usiripakdi is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 47
 

Default Upselling Product Modification

I use this code that is posted on the forum

Code:
{* $Id: related_products.tpl,v 1.7 2003/11/26 10:27:05 mAKI Exp $ *} {if $product_links ne ""} {capture name=dialog} <table border=0 cellspacing=5 width="100%"> {section name=cat_num loop=$product_links} <tr class="ItemsList"> <td align=center valign=center> {include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=60} </td> <td colspan="4" align=top valign=top><hr size=1 noshade align=top> <table border=0 cellspacing=5 width="100%"> <tr class="ItemsList"> <td colspan="3" align=top valign=top> {$product_links[cat_num].product|escape} </td> </tr> <tr> <td colspan="2" valign=top> {if $product_links[cat_num].price ne 0} {if $product_links[cat_num].list_price gt 0 and $product_links[cat_num].price lt $product_links[cat_num].list_price} {math equation="100-(price/lprice)*100" price=$product_links[cat_num].price lprice=$product_links[cat_num].list_price format="%d" assign=discount} <font class=MarketPrice>{$lng.lbl_market_price}: <s>{include file="currency.tpl" value=$product_links[cat_num].list_price}</s></font> {/if} <font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$product_links[cat_num].price}</font> <font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product_links[cat_num].price}</font> {if $product_links[cat_num].list_price gt 0 and $product_links[cat_num].price lt $product_links[cat_num].list_price}, {$lng.lbl_save} {$discount}%{/if} {if $config.Taxes.use_vat eq "Y" and $product_links[cat_num].vat gt "0"}, {$lng.lbl_including_vat} {$product_links[cat_num].vat}%{/if} {else} <font class=ProductPrice>{$lng.lbl_enter_your_price}</font> {/if} </td> <td colspan="3" align="right" valign=center> {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$product_links[cat_num]} {/if} </td> </tr> </table> </td> </tr> {/section} </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}

then I notice that the "quantity" and "buy now" buttons is not perfectly align. I am trying to fix it but couldn't figure out where. Anyone see where?

Here is the link to my site
http://www.thaimediastore.com/product.php?productid=1&cat=1&page=1

Thanks
__________________
Siripakdi
Version 4.0.13
Reply With Quote
  #2  
Old 04-18-2005, 07:24 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

Is it this line line that is causing the problem


<td align=center valign=center>

Everything is "Center Aligned"

Quick test is to make this line the same as of the realted one to see if that straightens out the problem. Is so then then that line.

Jack Johnson : In Between Dreams
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #3  
Old 04-18-2005, 10:16 PM
 
usiripakdi usiripakdi is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 47
 

Default

I try that already. move to the right , left, but
it doesn't do anything.
__________________
Siripakdi
Version 4.0.13
Reply With Quote
  #4  
Old 04-19-2005, 07:26 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

If you have DreamWeaver, you could drop the code into it and look at the colums that are causing this and easily fix it.

At te moment I am on the road and not close to my pc (checking in on hotel pc) or I could drop the code into mine and look at it for you.

If you have it, try it.
__________________
vs 4.1.12
Reply With Quote
  #5  
Old 04-20-2005, 03:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Post moved. Please don't post requests in the Completed Custom Mods forum. As the title implies, it is for posting COMPLETED mods only. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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:12 AM.

   

 
X-Cart forums © 2001-2020