linux.chat Posted November 26, 2008 Share Posted November 26, 2008 Hello, I'm a (french) "newbi" in OS commerce. - I want to know where is the file contains every variables like "SMALL_IMAGE_WIDTH" ? - Is it possible to invert width and height if the picture is in landscape or not ? And how ? Thanks for your answers. Link to comment Share on other sites More sharing options...
Black Jack 21 Posted November 26, 2008 Share Posted November 26, 2008 Hello, I'm a (french) "newbi" in OS commerce. - I want to know where is the file contains every variables like "SMALL_IMAGE_WIDTH" ? - Is it possible to invert width and height if the picture is in landscape or not ? And how ? Thanks for your answers. 1. It's stored in the database, depending on your configuration. Look at admin/configuration/images. BJ Link to comment Share on other sites More sharing options...
linux.chat Posted November 26, 2008 Author Share Posted November 26, 2008 I thought that these variables were in a file. That's why I don't find theme ;-) Thank you very much Link to comment Share on other sites More sharing options...
Guest Posted February 6, 2009 Share Posted February 6, 2009 Can I just ask though... ....where is the code that actually gets the values from the database, and makes them available as the constants SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT? I am well aware of where the values are managed and updated in the database via the administrative section of the site, but where is the code that makes these constants available to the catalog? Cheers, Paul Link to comment Share on other sites More sharing options...
germ Posted February 6, 2009 Share Posted February 6, 2009 Looks to me like this does it (in /catalog/includes/application_top.php) // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.