Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DIR_WS_IMAGES path works but shouldn't ?


colm.mcgettrick@gmail.com

Recommended Posts

Posted

Hi.

 

I realise this ia a rather basic question, and much of it I have already answered myself, but there are a few instances within the

catalogue admin/includes/configure.php file of which I am unsure how it works .

 

First I should say , well done people , if everything installed as nicely as OSC, I would not be writting this email.

however I obtained an addon for OSC , which does not install as happily, and my only avenue to resolve the issue is to examine the OSC config files

and how and why they work.

 

1/ location of configure.pgp file catalog/admin/includes/configure.php

2/ locationof images folder catalog/admin/images/

3/ location of other images folder catalog/images/

 

One line form the configure.php file reads

 

define ('DIR_WS_IMAGES', 'image/'); and this works fine

 

what I find confusing is that, should there notw be a ../image/ or a /image/ instead of just the image/ which works fine.

 

particularly considering that the DIR_WS_* requires a virtual/URL / relative path,

 

Your interpretation of this line would be much appreciated,

 

If there is any additional information on the config file variable apart form the ODC installation manual. pleas el me know

 

thanks

 

Colm

Posted

I believe that as a design feature, ( deliberately to confuse people or so it seems) there are 2 configuration files both with the same name but in different places.

 

catalog/admin/includes and /catalog/includes

 

Admin functions/pages tend to use constants from the first file and shop pages from the second.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

define ('DIR_WS_IMAGES', 'image/'); and this works fine

 

Well it shouldn't because it's

 

define('DIR_WS_IMAGES', 'images/');

 

Both in catalog/includes and catalog/admin/includes

 

Help may be easier if you outline the error

Archived

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

×
×
  • Create New...