Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products URL -


OSC-Sevilla

Recommended Posts

Posted

For unknow reasons the redirect to the products URL is not working and I see:

 

http://www.mywebite.com/SUB_DOMAIN/www.grisanex.com/

 

 

the code on the product_info page is as follows:

 

<?php

// PRODUCT URL

if ($product_info['products_url'] == true) {

 

echo '<a class="box_icon" target="_blank" href="' . tep_href_link($product_info['products_url']) . '">' . tep_image(DIR_WS_IMAGES . 'icons/web_icon.gif', TEXT_PRODUCT_MANUFCACTURERS_URL) . '</a><a target="_blank" href="' . tep_href_link($product_info['products_url']) . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>';

 

}

?>

 

-------------------------

 

Has anone had this issue - is it because the catalog folder is in www.mywebsite.com/SUB_DOMAIN/catalog????????

Is it because ethere is nor redirect?

??

??

 

------------

I would like to post pics but cannot upload any...

 

Any help would be great... -

Posted

You likely have your config file setup incorrectly as that's where it builds the URL structure. They are located in /catalog/includes/configure.php and catalog/<name of your admin directory>/includes/configure.php.

 

You may have to chmod them to 755 to edit them, but don't forget to put them back to 555.

 

Also, reviewing this thread may be helpful.

 

http://www.oscommerce.com/forums/topic/193738-a-guide-to-the-configurephp-files/

 

Peace,

Chris

Posted

Don't use the tep_href_link function for external urls ... just use an ordinary html link

Posted

NICK - how doI write this to comply with your comment??

 

 

echo '<a class="box_icon" target="_blank" href="' . tep_href_link($product_info['products_url']) . '">' . tep_image(DIR_WS_IMAGES . 'icons/web_icon.gif', TEXT_PRODUCT_MANUFCACTURERS_URL) . '</a><a target="_blank" href="' . tep_href_link($product_info['products_url']) . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>';

Posted

something like this:

 

<a target="_blank" href="' . $product_info['products_url'] . '">'

 

Depending on how you have entered the manufacturer url.... you might also have to add in a "http://"

Posted

SOLVED!!!

 

<?php

// PRODUCT URL

if ($product_info['products_url'] == true) {

echo '<a class="box_icon" target="_blank" href="http://' . $product_info['products_url'] . '">' . tep_image(DIR_WS_IMAGES . 'icons/web_icon.gif', TEXT_PRODUCT_MANUFCACTURERS_URL) . '</a><a target="_blank" href="http://' . $product_info['products_url'] . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>';

 

}

?>

  • 4 months later...
Posted

past this in to product_info.php to try.

 

echo '<a class="box_icon" target="_blank" href="http://' . $product_info['products_url'] . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL). '</a><a target="_blank" href="http://' . $product_info['products_url'] . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>';

Archived

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

×
×
  • Create New...