Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Variable SMALL_IMAGE_WIDTH


linux.chat

Recommended Posts

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

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

  • 2 months later...

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

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

Archived

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

×
×
  • Create New...