X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Upselling Product Modification (https://forum.x-cart.com/showthread.php?t=13483)

usiripakdi 04-18-2005 06:29 PM

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

Lingerieblowout 04-18-2005 07:24 PM

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

usiripakdi 04-18-2005 10:16 PM

I try that already. move to the right , left, but
it doesn't do anything.

markwhoo 04-19-2005 07:26 PM

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.

balinor 04-20-2005 03:05 AM

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! :)


All times are GMT -8. The time now is 10:08 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.