Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tick To View Thumbnails


Guest

Recommended Posts

Hi,

As some of you may be aware i am setting up my oscommerce site.

 

What i would like to do is be able to have a checkbox that when unchecked doesnt display thumbnails for images and when is checked does show the thumbnails.

 

So far i have fiqured out that the key to doing this would be in the SQL database where there is a value that enables and disables the display of the thumbnails based on the value 1/0, this is located under Configuration_id=103

 

I am using the STS template system so it should be easy enough to insert a snippit of code and a checkbox into the design however my SQL skill are very limited and i dont know what sort of code i would need to change the Configuration_value of the Configuration_id=103 entry from 0 to 1 and would very much appreciate it if someone here could write me a script or point me in the right direction of how to code something that would do that

 

Thanks in advance

Kyle

Link to comment
Share on other sites

Ok, bad idea as this will change the interface for everyone not just the person browsing, any ideas on how to do this?

Link to comment
Share on other sites

Ok, bad idea as this will change the interface for everyone not just the person browsing, any ideas on how to do this?

 

The easiest way would be to set a session parameter and use this instead of the configuration parameter. So you don't have to piddle around with the database. Should be easy to do.

Link to comment
Share on other sites

The easiest way would be to set a session parameter and use this instead of the configuration parameter. So you don't have to piddle around with the database. Should be easy to do.

 

How would i go about doing this?

Link to comment
Share on other sites

I don't know how deep you are into OSC, but you can use the functions _sess_read and _sess_write to add the mentioned parameter. Should be pretty easy to do. Once it is set, you can refer to it at the different scripts.

Link to comment
Share on other sites

Ok, does anyone know script that needs to be hidden/omitted though, when i comment out the images part of the product_info.php then it replaces the image with buy now!

How do i prevent this from happening?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...