Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

move product url


Guest

Recommended Posts

Posted

Hello all,

I would like to move the product url link to just under the product name so it is more easily seen.

I have modified catalog/product_info.php as seen below. My insertion is colored in red. The mod works fine as long as there is a url associated with the product. If there is no url for that product then nothing shows up below the product name. I suspect this is because the syntax does not address the "else" half of the equation. I don't know much about scripting but would appreciate it if someone could show me how to further modify this so that the link shows up if there is one in the table and does not show if there isn't while still allowing the rest of the description to display.

 

<table cellspacing=0 cellpadding=0>

<tr><td height=15></td></tr>

<tr><td class=tx1><?=$products_name?></td></tr>

<tr><td height=5></td></tr>

<?php

}

 

if (tep_not_null($product_info['products_url'])) {

?>

<tr>

<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

 

<tr><td align=center><img src=images/m56.gif width=192 height=1></td></tr>

<tr><td height=5></td></tr>

<tr><td class=tx><b>Item #:</b>  <?= $products_id; ?></td></tr>

<tr><td height=5></td></tr>

<tr><td class=tx>

<?

if ($product_info['products_date_available'] > date('Y-m-d H:i:s'))

echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));

else

echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added']));

?>

 

</td></tr>

</table>

 

</td>

</tr>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...