Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display dynamic price on static HTML pages?


votrechien

Recommended Posts

Posted

for a page to have dynamic content it has to be php.

 

there are additional issues http://www.oscommerce.com/forums/index.php?sho...c=330479&hl

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

As you may have guessed by your reference to static HTML pages, an HTML page is not processed by the server. The raw file is simply tossed over the wall to the browser, and that's that. If you need to look up prices in the database while outputting the page, you'll have to go with a scripting language such as PHP, Perl, ASP, etc. that is run on the server and builds the page. SHTML is in this family, but I don't think you can get it to read a database.

 

If your prices change slowly enough that you could get away with periodically updating a static HTML file, you could look into running a utility that does the price lookup and creates an HTML file. Run the utility on a regular basis ("cron" or "task scheduler") or whenever you update any prices.

Archived

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

×
×
  • Create New...