Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP ME


HITMAN1972

Recommended Posts

Posted

WHAT DOES THIS MEAN? I CAN'T GET PRICE BREAK TO WORK. WHAT IS THE FIRST INSTANCE?

 

Find the first instance of the following code and delete:

 

 

 

$specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");

 

if (tep_db_num_rows ($specials_query)) {

 

$specials = tep_db_fetch_array($specials_query);

 

$products_price = $specials['specials_new_products_price'];

 

}

Posted

First instance means the first time it occurs. It suggests that the code you are looking for occurs more than once in the file, but, you are only supposed to change the first one.

 

Go to the top of the file in your editor, search for the code, change it, don't change any subsequent versions further down in the file.

 

ed

Posted

I would also suggest that you do not delete it - just comment it out.

 

Just put "/*" at the start and "*/" at the end (without the quotes).

 

That way it is easily repaired if you need to change it back.

There are 10 types of people in the world. Those who understand binary and those who do not.

 

To understand Recursion, first one must understand Recursion.

Archived

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

×
×
  • Create New...