Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom php page


afrosimon

Recommended Posts

Posted

Hello!

 

I'm currently working on an old osCommerce website. I'm not really sure of the version, I've read quite a few time, like here : http://www.clubosc.com/how-to-know-what-version-of-oscommerce-you-are-using.html , that it can be found in the application_top.php file, but it's not there, so I'm inclined to think it's an older version of osCommerce. The thing is, I'm not able to create a page with custom PHP code. I'm not exactly sure of the internal workings of osCommerce but any code found directly in an information page isn't executed. So I tried to find another way by copying the index.php, replacing the $sContentClass var with the name of the corresponding file, and I tried to imitate the behavior of the information.php file, in a way I still name and give value to all the variable used in the file, but with my custom content... But all of this wierd and probably sub-optimal code simply give me the home page. Plus, I guess there's a easier way to proceed?

Posted

Simon,

 

What are you trying to do with the custom page ? Knowing what the intended use is will help us determine the best course of action.

 

 

Chris

Posted

Thanks for the fast response! The page query a custom MySQL table I created, and list the content. Nothing too fancy, but nothing related to the kind of functionality osCommerce offer. On a website I developed some time ago, with Joomla!, for the same kind of page, I had used a "custom php page" module, is there an equivalent in osCommerce?

Archived

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

×
×
  • Create New...