Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Display dynamic price on static HTML pages?


Recommended Posts

Hi All,


I want to create a simple HTML page on my website that shows the prices for different products. Is there a way I can enter some kind of code that will look up this price automatically from OScommerce?


For example, on the following page, I don't want to have to manually enter the prices for these products: http://northstaranchors.com/products/anchors/index.html


Thanks in advance!

Link to comment
Share on other sites

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



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




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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


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

  • Create New...