Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images wont load


patmoses

Recommended Posts

Ok I am trying to put all my product images into a seperate folder in /images/ called photos . Here is what I added in:

 

In configure.php

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_PROD_IMG', DIR_WS_IMAGES . 'photos/'); < - Thats what I added

 

Then to test it out in the product_info.php I changed:

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'])

To

<?php echo '<a href="' . tep_href_link(DIR_WS_PROD_IMAGE . $product_info['products_image'])

 

I thought that it would work but when I run it in my browser I get this type of html output and no picture:

<a href="http://photos.tctimes.net/DIR_WS_PROD_IMAGEthn_06758.JPG"

 

Anyone have any ideas on what I could be doing wrong?

Link to comment
Share on other sites

<?php echo '<a href="' . tep_href_link(DIR_WS_PROD_IMAGE . $product_info['products_image'])

 

Should be:

<?php echo '<a href="' . tep_href_link(DIR_WS_PROD_IMG . $product_info['products_image'])

Per your definition...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...