Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why does osC hard link images?


elzmaddy

Recommended Posts

I'm just curious why osCommerce hard links the path to images using www.mydomain.com instead of using relative paths. I want to temporarily access my site by IP while my DNS information is updating, and I cannot see any images.

Link to comment
Share on other sites

Images in oscommerce are not hardcoded they use relative paths.

 

If you look at the code..

 

tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');

 

you will see it uses the setting from DIR_WS_IMAGES...

 

If you have set DIR_WS_IMAGES to be a url then the images will use full http links... if you leave it as default it will use /images/blah.gif

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...