Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zen Cart Mod to Oscommerce


tmcca

Recommended Posts

I have a question on this line to change to oscommerce:

$check = $db->Execute("select zipcodezone from " . TABLE_ZIPCODEZONE . " where '" . $zipcode_prefix . "' BETWEEN zipcode_start and zipcode_end");

        while (!$check->EOF) {

			$dest_zone = $check->fields['zipcodezone'];

		  $check->MoveNext();

          }



//		echo $dest_zone;

I am guessing changing this to:

$check_query = tep_db_query("select zipcodezone from " . TABLE_ZIPCODEZONE . " where '" . $zipcode_prefix . "' BETWEEN zipcode_start and zipcode_end");

        while ($check = tep_db_fetch_array($check_query)) {

			$dest_zone = $check->fields['zipcodezone'];

		   }



//		echo $dest_zone;

 

Link to comment
Share on other sites

There isn't a table named zipcodezone (TABLE_ZIPCODEZONE) in oscommerce unless you added it. Not will this line work:

$check->fields['zipcodezone'];

The above might need to be

$dest_zone = $check['zipcodezone'];

Many of the addons used by packages like Zen Cart are due to original oscommerce addons so you may want to see if there is an addon or whatever it is you are needing.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...