OSC-Sevilla Posted September 13, 2011 Posted September 13, 2011 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... -
hughesca Posted September 13, 2011 Posted September 13, 2011 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
OSC-Sevilla Posted September 15, 2011 Author Posted September 15, 2011 All is setup perfectly... but no change from http://www.mysite.com/www.yahoo.co.uk ----------------------------------------
♥toyicebear Posted September 15, 2011 Posted September 15, 2011 Don't use the tep_href_link function for external urls ... just use an ordinary html link Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
OSC-Sevilla Posted September 15, 2011 Author Posted September 15, 2011 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>';
♥toyicebear Posted September 15, 2011 Posted September 15, 2011 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://" Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
OSC-Sevilla Posted September 16, 2011 Author Posted September 16, 2011 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>'; } ?>
bpmartinphotography Posted January 18, 2012 Posted January 18, 2012 I am having the same problem and can't decipher how to resolve the issue based on the last post. I have changed the product_info.php file portion to the one above but still get the http://www.mywebite.com/SUB_DOMAIN/www.grisanex.com/
OSC-Sevilla Posted January 23, 2012 Author Posted January 23, 2012 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>';
bpmartinphotography Posted January 25, 2012 Posted January 25, 2012 Should I replace the existing product_info portion with the above code?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.