Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enhansed Vendors 1.2


Kassie

Recommended Posts

I am getting a parse error that will not allow the admin to load. I really need this contrib, ao any help would be appreciated.

 

The Error: Parse error: parse error, unexpected T_FUNCTION in /home/content/c/w/e/cwellman002/html/store/catalog/admin/includes/functions/general.php on line 1325

 

this is what's on that line: function tep_get_vendors_terms_choices() {

 

 

This is the whole code for general.php:

 

// vendors add in

function tep_get_vendors_terms_choices() {

 

$vendors_terms_query = tep_db_query("select vendors_terms_id, vendors_terms from " . TABLE_VENDORS_TERMS . " order by vendors_terms");

$vendors_list_terms_count = mysql_num_rows($vendors_terms_query);

if ($vendors_list_terms_count == 0) { $vendors_list_array[] = array('id' => '0', 'text' => 'No Terms Available'); } else {

$vendors_terms_array[] = array('id' => '0', 'text' => 'Select Terms');

while ($vendors_list_terms = tep_db_fetch_array($vendors_terms_query)) {

$vendors_terms_array[] = array('id' => $vendors_list_terms['vendors_terms_id'], 'text' => $vendors_list_terms['vendors_terms']);

}

return $vendors_terms_array;

} }

 

function tep_get_vendors() {

 

$vendors_list_query = tep_db_query("select vendors_id, vendors_name from " . TABLE_VENDORS . " order by vendors_name");

$vendors_list_query_count = mysql_num_rows($vendors_list_query);

if ($vendors_list_query_count == 0) { $vendors_list_array[] = array('id' => '0', 'text' => 'No Vendors Available'); } else {

$vendors_list_array[] = array('id' => '0', 'text' => 'Select Vendor');

while ($vendors_list = tep_db_fetch_array($vendors_list_query)) {

$vendors_list_array[] = array('id' => $vendors_list['vendors_id'], 'text' => $vendors_list['vendors_name']);

} }

 

return $vendors_list_array;

}

 

function tep_output_display_vendors($vend_prod_id){

 

global $cPath;

 

$ven_list = '';

// $current_vendors_query = tep_db_query("select v.vendors_id, v.vendors_name from " . TABLE_VENDORS . " v, " . TABLE_PRODUCTS_TO_VENDORS . " vp where vp.products_id = '" . $vend_prod_id . "' and v.vendors_id = vp.vendors_id");

$current_vendors_query = tep_db_query("select v.vendors_id, v.vendors_name from " . TABLE_VENDORS . " v, " . TABLE_PRODUCTS_TO_VENDORS . " vp where vp.products_id = '" . $vend_prod_id . "' and v.vendors_id = vp.vendors_id order by vp.vendors_cost");

while ($current_vend_list = tep_db_fetch_array($current_vendors_query)) {

 

 

$current_vendors_price_query = mysql_result(tep_db_query("select vendors_cost from " . TABLE_PRODUCTS_TO_VENDORS . " where vendors_id = '" . $current_vend_list['vendors_id'] . "' and products_id = '" . $vend_prod_id . "'"), 0);

$current_vendors_model_query = mysql_result(tep_db_query("select vendors_model from " . TABLE_PRODUCTS_TO_VENDORS . " where vendors_id = '" . $current_vend_list['vendors_id'] . "' and products_id = '" . $vend_prod_id . "'"), 0);

$current_vendors_name_query = mysql_result(tep_db_query("select vendors_name from " . TABLE_PRODUCTS_TO_VENDORS . " where vendors_id = '" . $current_vend_list['vendors_id'] . "' and products_id = '" . $vend_prod_id . "'"), 0);

 

// $current_vendors_price_query['vendors_cost']

// $ven_list .= " ".$current_vend_list['vendors_name']. " " . $current_vendors_price_query ."<br>";

$ven_list .= " <a href=" . FILENAME_CATEGORIES . "?cPath=" . $cPath . "&pID=" . $vend_prod_id . "&vID=" . $current_vend_list['vendors_id'] . "&action=editvendor>".$current_vend_list['vendors_name']. " " . $current_vendors_price_query . " <br>   " . $current_vendors_model_query . " " . $current_vendors_name_query . "</a><br>";

}

return $ven_list;

}

 

function tep_output_display_vendors_checkbox($vend_prod_id){

global $pID;

global $cPath;

 

$ven_list = '';

 

$current_vendors_query = tep_db_query("select v.vendors_id, v.vendors_name from " . TABLE_VENDORS . " v, " . TABLE_PRODUCTS_TO_VENDORS . " vp where vp.products_id = '" . $vend_prod_id . "' and v.vendors_id = vp.vendors_id");

while ($current_vend_list = tep_db_fetch_array($current_vendors_query)) {

$ven_list .= "<a href=" . FILENAME_CATEGORIES . "?cPath=" . $cPath . "&action=editvendor&pID=" . $pID . "&vID=" . $current_vend_list['vendors_id'] . ">";

 

$ven_list .= tep_draw_checkbox_field('vnid[]', $current_vend_list['vendors_id'])." ".$current_vend_list['vendors_name']."<br>";

 

$ven_list .= '</a>';

 

 

}

return $ven_list;

}

 

 

function tep_get_vendor_terms($terms_id) {

$vendor_query = tep_db_query("select vendors_terms from " . TABLE_VENDORS_TERMS . " where vendors_terms_id = '" . (int)$terms_id . "'");

$vendor = tep_db_fetch_array($vendor_query);

 

return $vendor['vendors_terms'];

}

 

// end vendors mod

 

 

Any Help would be appreciated!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...