Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding new oscommerce image parameters


aharzand

Recommended Posts

Posted

I posted this two days ago but received no response so I am posting again. Any help is appreciated.

 

I am trying to add a second set of configurable variables for my images aside from the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT variables. I couldn't find these variables in my MySQL database using phpmyadmin. Does anyone know where I could find them or any easy way to add a second set of variables? Thanks!

Posted

they are there, you may need to sort them with phpmyadmin by the configuration_key to find them easily. There is a contribution that shows the configuration keys along with other info.

http://www.oscommerce.com/community/contributions,5040

 

To insert new entries you can use phpmyadmin click the sql tab then insert a configuration entry like the following

 

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('', 'Products Main Image Width', 'PRODUCT_IMAGE_WIDTH', '256', 'The products main image width', '4', '16', NULL, now(), NULL, NULL);
insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('', 'Products Main Image Height', 'PRODUCT_IMAGE_HEIGHT', '256', 'The products main image height', '4', '17', NULL, now(), NULL, NULL);

 

Then from the catalog end you can use the PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT

 

So you can use more sets doing like this.

Archived

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

×
×
  • Create New...