Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manufacturer URL


Guest

Recommended Posts

Posted

How do I link the manufacturers image to link to the manufacturers url in index.php? At the moment it is clicking through to the home page.

Posted

index.php?manufacturers_id=1

 

Change the id number to the one of the manufacturer you want to link to.

Posted

@@toyicebear I am not sure how this helps. I am looking for the image to click through to the url. Here is an example:

 

http://www.womensbusinessclub.co.uk/index.php?manufacturers_id=14

 

On this page I want to advertiser image to click through to the advertiser url. This is set as the manufacturer image and manufacturer url but at the moment it does not go through to the manufacturer url but to the home page because of this code:

 

<?php echo ' <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $catimg, $catname, 785, 150, 'class=shadow1') . '</a>' . "\n"; ?>

 

 

So what I want to know is what do I put in the place of (FILENAME_DEFAULT, $cPath_new) to get it to go through to the manufacturer url

Posted

you have to edit index.php and add the manufacturer url to the query and then you can reference it again in the link.

Posted

<?php echo ' <a href="' . tep_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id']) . '">' . tep_image(DIR_WS_IMAGES . $catimg, $catname, 785, 150, 'class=shadow1') . '</a>' . "\n"; ?>

Posted

@@toyicebear Brilliant thank you so much for your help! Any idea how I can add a text field if I make the image square on the left to have a text field square on the right?

Archived

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

×
×
  • Create New...