Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

JavaScript/osCommerce Gurus - pls help!!!


Guest

Recommended Posts

  • 2 months later...

jd_wgd, did you ever find a solution for this? I've got the same Javascript error, but I didn't rename any directories. Somebody else who had this problem found that they had mixed case "spiffycal" and "spiffyCal", but I've checked it 27 times and see no problem. :o

"Buy the ticket, take the ride..." -HST

Link to comment
Share on other sites

The line where the error occurs is

 

$sql_data_array = array_merge($sql_data_array, $insert_sql_data);

tep_db_perform(TABLE_PRODUCTS, $sql_data_array);

$products_id = tep_db_insert_id();

 

 

On checking the Products table, all records for products_date_available are null. If I put 2004-05-31 into products_date_available, this shows in my catalog:

 

"This product will be in stock on Monday 31 May, 2004."

 

So that's working. But a blank space still shows next to "Date Available" in admin.

"Buy the ticket, take the ride..." -HST

Link to comment
Share on other sites

  • 2 weeks later...

I have the same problem, javasript calendar is not showing up in admin categories.php. Only blank space next to "Date Available"

Has somebody find a solution for this?

 

I get errors:

 

Line: 209

Char: 1

Error: 'dateAvailable' is null or not an object

Code: 0

 

Line: 142

Char: 3

Error 'ctlSpiffyCalendarBox' is undefined

Code: 0

 

Line: 946

Char: 56

Error Unterminated string constant

Code: 0

 

I haven't done any changes to these files...

 

I took the error message from IE 6 but it don't work on Mozilla or Netscape either

Link to comment
Share on other sites

  • 2 weeks later...

Seems so, that you have forgotten to update library-linking pathes after moving your directory.

 

Look at these lines.

 

<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="coffee-includes/stylesheet.css">
<script language="javascript" src="coffee-includes/general.js"></script>

 

;)

Link to comment
Share on other sites

  • 2 weeks later...

oh yeah, oh yeah :lol: Finally got it. Don't give up, the problems are in spiffyCal_v2_1.js. Don't ask me why, but I actually had code changes in spiffyCal_v2_1.js: instances of ">" instead of "<" (and vice versa), and a few other things. Get a copy of Beyond Compare, find an original copy of spiffyCal_v2_1.js, and see what your current file looks like against the original. While you're at it, check calendarcode.js. Pretty freaky.

"Buy the ticket, take the ride..." -HST

Link to comment
Share on other sites

  • 1 year later...
oh yeah, oh yeah :lol: Finally got it. Don't give up, the problems are in spiffyCal_v2_1.js. Don't ask me why, but I actually had code changes in spiffyCal_v2_1.js: instances of ">" instead of "<" (and vice versa), and a few other things. Get a copy of Beyond Compare, find an original copy of spiffyCal_v2_1.js, and see what your current file looks like against the original. While you're at it, check calendarcode.js. Pretty freaky.

Hi, now I have the same problem as you had.

Could you tell me more about how to resolve it!

Thanks a lot for all our community members. It's amazing that we are together and we have opportunity to help each oher.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...