Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured products contribution


sinryder

Recommended Posts

hello guys,

the code below is from my includes/module/featured.php file

 

<a href="?manufacturers_id=<?echo $featured_products['manufacturers_id']?>" style="text-decoration:underline"><?
$manuInfo = tep_db_fetch_array(tep_db_query("SELECT * FROM ".TABLE_MANUFACTURERS." WHERE manufacturers_id='".$featured_products['manufacturers_id']."'"));
echo $manuInfo['manufacturers_name'];
?></a>
<div class="productName"><a href="<?echo tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $featured_products['manufacturers_id'] . '&products_id=' . $featured_products['products_id'])?>" style="color:gray;text-decoration:none"><?echo $featured_products['products_name']?></a></div>
<div><?echo $lc_text?></div>

 

right now , it shows manufacturer name and product name,

like this

 

Manufacturer name (link to manufacturer)

product name (link to products info page)

 

if you click on the "manufacturer name" It will take you to a link like this

> mysite.com/test/index.php?manufacturers_id=1

and if you click on the "product name" it will take you to

> mysite.com/test/product_info.php?manufacturers_id=1&products_id=40

 

what i want is to change the manufacturer link so if someone click the "manufacturer name" it will take you to this link > mysite.com/test/product_info.php?manufacturers_id=1&products_id=40

 

i tried to chagne the above code my self, But it didnt work.

 

 

thankx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...