Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

query on javascript section in suppliers html page


abra123cadabra

Recommended Posts

Posted

Hi @ll,

 

hope you can help me on this one. It's not really osC related but I would need this to run my osC shop with greater ease.

 

I have a supplier who has only his online catalog (each product on a separate page). To keep track of changes to the product prices I would like to set up a routine (ie. on a php or html page on my server) which fetches the prices for a given product.

 

As far as I could figure out, the product details are stored in a non-dynamic html page in a javascript section which looks like this:

 

var product = new classProduct();
product.price=3.19;

 

Is there a way to do something like this?

 

open url xyz.html
get product.price
document.write product.price

Or would I need to go another way? There are approx. 3500 products to check on a regular basis and anything that keeps me from physically opening all these pages is much appreciated.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Archived

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

×
×
  • Create New...