Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multi_Vendor_Shipping new thread


blucollarguy

Recommended Posts

The one that you posted on the previous page is

$Id: application_top.php,v 1.1.4.2 2002/06/19 14:14:02 mdima Exp $

?????

 

Regards

Jim

 

that was (catalog)/includes/languages/english.php

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

that was (catalog)/includes/languages/english.php

It says that it's application_top.php. Looks like one, too, if you consider that it's MS1.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

ok in my (catalog)/includes/application_top.php is

 

$Id: application_top.php,v 1.280 2003/07/12 09:38:07 hpdl Exp $

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

tep_get_country_list is a standard part of osCommerce: includes/functions/html_output.php, Line 288. What have you people been getting into lately? The Twilight Zone?

 

Regards

Jim

 

I didn't do anything to this file. I see where line 288 calls the list, but can't understand why it isn't functioning.

 

Could I have made an error when modifying the vendors.php file?

 

Kurt

Link to comment
Share on other sites

ok in my (catalog)/includes/application_top.php is

 

$Id: application_top.php,v 1.280 2003/07/12 09:38:07 hpdl Exp $

And that one matches the stock osCommerce MS2, but your admin application_top does not. It looks like some of your files have been replaced with obsolete copies, possibly by some other contribution. I don't know where these came from, but they are the most likely source of your errors. You need to look through all of your files and find out which ones have been modified (other than by MVS, of course.)

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

And that one matches the stock osCommerce MS2, but your admin application_top does not. It looks like some of your files have been replaced with obsolete copies, possibly by some other contribution. I don't know where these came from, but they are the most likely source of your errors. You need to look through all of your files and find out which ones have been modified (other than by MVS, of course.)

 

Regards

Jim

 

 

then why my admin application_ top matches with yours?

 

here is my admin/includes/application_top.php code

 

?php
/*
 $Id: application_top.php,v 1.162 2003/07/12 09:39:03 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Start the clock for the page parse time log
 define('PAGE_PARSE_START_TIME', microtime());

// Set the level of error reporting
 error_reporting(E_ALL & ~E_NOTICE);

// Check if register_globals is enabled.
// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.
 if (function_exists('ini_get')) {
ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.');
 }

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

// Include application configuration parameters
 require('includes/configure.php');

// Define the project version
 define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

// set php_self in the local scope
 $PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);

// Used in the "Backup Manager" to compress backups
 define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
 define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
 define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');
 define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');

// include the list of project filenames
 require(DIR_WS_INCLUDES . 'filenames.php');

// include the list of project database tables
 require(DIR_WS_INCLUDES . 'database_tables.php');

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

// Define how do we update currency exchange rates
// Possible values are 'oanda' 'xe' or ''
 define('CURRENCY_SERVER_PRIMARY', 'oanda');
 define('CURRENCY_SERVER_BACKUP', 'xe');

// include the database functions
 require(DIR_WS_FUNCTIONS . 'database.php');

// make a connection to the database... now
 tep_db_connect() or die('Unable to connect to database server!');

// set application wide parameters
 $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);
 while ($configuration = tep_db_fetch_array($configuration_query)) {
define($configuration['cfgKey'], $configuration['cfgValue']);
 }

// define our general functions used application-wide
 require(DIR_WS_FUNCTIONS . 'general.php');
 require(DIR_WS_FUNCTIONS . 'html_output.php');

// initialize the logger class
 require(DIR_WS_CLASSES . 'logger.php');

// include shopping cart class
 require(DIR_WS_CLASSES . 'shopping_cart.php');

// some code to solve compatibility issues
 require(DIR_WS_FUNCTIONS . 'compatibility.php');

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class
 if (!function_exists('session_start')) {
define('PHP_SESSION_NAME', 'osCAdminID');
define('PHP_SESSION_PATH', '/');
define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

include(DIR_WS_CLASSES . 'sessions.php');
 }

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

// set the session name and save path
 tep_session_name('osCAdminID');
 tep_session_save_path(SESSION_WRITE_DIRECTORY);

// set the session cookie parameters
  if (function_exists('session_set_cookie_params')) {
session_set_cookie_params(0, DIR_WS_ADMIN);
 } elseif (function_exists('ini_set')) {
ini_set('session.cookie_lifetime', '0');
ini_set('session.cookie_path', DIR_WS_ADMIN);
 }

// lets start our session
 tep_session_start();

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
if (!tep_session_is_registered('language')) {
  tep_session_register('language');
  tep_session_register('languages_id');
}

include(DIR_WS_CLASSES . 'language.php');
$lng = new language();

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
  $lng->set_language($HTTP_GET_VARS['language']);
} else {
  $lng->get_browser_language();
}

$language = $lng->language['directory'];
$languages_id = $lng->language['id'];
 }

// include the language translations
 require(DIR_WS_LANGUAGES . $language . '.php');
 $current_page = basename($PHP_SELF);
 if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $language . '/' . $current_page);
 }

// define our localization functions
 require(DIR_WS_FUNCTIONS . 'localization.php');

// Include validation functions (right now only email address)
 require(DIR_WS_FUNCTIONS . 'validations.php');

// setup our boxes
 require(DIR_WS_CLASSES . 'table_block.php');
 require(DIR_WS_CLASSES . 'box.php');

// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// split-page-results
 require(DIR_WS_CLASSES . 'split_page_results.php');

// entry/item info classes
 require(DIR_WS_CLASSES . 'object_info.php');

// email classes
 require(DIR_WS_CLASSES . 'mime.php');
 require(DIR_WS_CLASSES . 'email.php');

// file uploading class
 require(DIR_WS_CLASSES . 'upload.php');

// calculate category path
 if (isset($HTTP_GET_VARS['cPath'])) {
$cPath = $HTTP_GET_VARS['cPath'];
 } else {
$cPath = '';
 }

 if (tep_not_null($cPath)) {
$cPath_array = tep_parse_category_path($cPath);
$cPath = implode('_', $cPath_array);
$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
 } else {
$current_category_id = 0;
 }

// default open navigation box
 if (!tep_session_is_registered('selected_box')) {
tep_session_register('selected_box');
$selected_box = 'configuration';
 }

 if (isset($HTTP_GET_VARS['selected_box'])) {
$selected_box = $HTTP_GET_VARS['selected_box'];
 }

// the following cache blocks are used in the Tools->Cache section
// ('language' in the filename is automatically replaced by available languages)
 $cache_blocks = array(array('title' => TEXT_CACHE_CATEGORIES, 'code' => 'categories', 'file' => 'categories_box-language.cache', 'multiple' => true),
					array('title' => TEXT_CACHE_MANUFACTURERS, 'code' => 'manufacturers', 'file' => 'manufacturers_box-language.cache', 'multiple' => true),
					array('title' => TEXT_CACHE_ALSO_PURCHASED, 'code' => 'also_purchased', 'file' => 'also_purchased-language.cache', 'multiple' => true)
				   );

// check if a default currency is set
 if (!defined('DEFAULT_CURRENCY')) {
$messageStack->add(ERROR_NO_DEFAULT_CURRENCY_DEFINED, 'error');
 }

// check if a default language is set
 if (!defined('DEFAULT_LANGUAGE')) {
$messageStack->add(ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error');
 }

 if (function_exists('ini_get') && ((bool)ini_get('file_uploads') == false) ) {
$messageStack->add(WARNING_FILE_UPLOADS_DISABLED, 'warning');
 }
?>

Edited by mtechama

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

I didn't do anything to this file. I see where line 288 calls the list, but can't understand why it isn't functioning.

 

Could I have made an error when modifying the vendors.php file?

 

Kurt

So the function is there?

so you say this is in the file:

  ////
// Creates a pull-down list of countries
function tep_get_country_list($name, $selected = '', $parameters = '') {
  $countries = tep_get_countries();

  return tep_draw_pull_down_menu($name, $countries, $selected, $parameters);
}

 

That is strange.

 

I think Jim might be right, you guys have come from the Twilight Zone to mess with us!

 

Craig :o :lol:

Happy Coding!

Craig Garrison Sr

Anything worth having, is worth working for.

Multi Vendor Shipping V1.1 Demo Catalog

3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout.

Multi Vendor Shipping V1.1 Demo Admin

login: [email protected]

pass: mvs_demo

MVS Thread:

Multi-Vendor Shipping

My contribs:

Download Multi Vendor Shipping V1.1

Vendor Email

Vendor Info in easypopulate

EZ Price Updater

And more to come!

Link to comment
Share on other sites

So the function is there?

so you say this is in the file:

  ////
// Creates a pull-down list of countries
function tep_get_country_list($name, $selected = '', $parameters = '') {
  $countries = tep_get_countries();

  return tep_draw_pull_down_menu($name, $countries, $selected, $parameters);
}

 

That is strange.

 

I think Jim might be right, you guys have come from the Twilight Zone to mess with us!

 

Craig :o :lol:

 

Honestly, I'm not trying to play with you guys. I'm just as baffled. Most of my problems started when I had someone install Easy Populate (which still doesn't work properly). I can send you copies of any file you want. I just need this to work cause I have multiple dropshippers and I need to be able to charge different shipping costs based on these dropshippers.

 

Kurt

Link to comment
Share on other sites

That doesn't match the one that you posted on the previous page. Which one is real?

 

Regards

Jim

 

Ok my fualt that is the one after I uploaded the MVS folder of admin/includes/application_top.php that is modified of Multi Vendor Shipping

Edited by mtechama

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Ok my fualt that is the one after I uploaded the MVS folder of admin/includes/application_top.php that is modified of Multi Vendor Shipping

The one from the MVS distribution says:

  $Id: application_top.php,v 1.162 2003/07/12 09:39:03 hpdl Exp $

 Modified for MVS V1.0 2006/03/25 JCK/CWG

Did you download MVS from here?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

No what I downloaded was this Multi Vendor Shipping(osc)0-8.zip

 

 

So I guess I downloaded the wrong file I guess

Edited by mtechama

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

No what I downloaded was this Multi Vendor Shipping(osc)0-8.zip

That's the problem then. What you got is ancient code that (as far as I know) never worked properly. Go use that link that I gave you and get the up-to-date code.

 

No wonder things were so weird. I was thinking that I need to add a couple of layers to my tinfoil hat.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

No wonder things were so weird. I was thinking that I need to add a couple of layers to my tinfoil hat.

 

No one is telling you that you don't need some additional layers. BTW, have your tooth fillings been playing the Beach Boys lately???

 

Kurt

Link to comment
Share on other sites

this MVS isn't what I really need its more send items to your suppliers

Edited by mtechama

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

No one is telling you that you don't need some additional layers. BTW, have your tooth fillings been playing the Beach Boys lately???

 

Kurt

Worse than that -- I'm picking up the local Talk Radio station.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

please give me at lease 30 minutes so I can show what I want...............

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Ok here is what I am talking about but first lets do the Gifts first.

 

 

SKU34172 - GUARDIAN ANGEL WITH CHILDREN CANDSTICK Cost $19.95

SKU2308- 30 LIGHTED WHITE TULIP FLOWERS Cost $59.95

 

add them together comes up $79.95 plus $10.00 for S&H becuase its under $100.00 If they order over $100 its 10% for S&H of the total order

 

now the computers......................

 

Motherboard $69.95

Western Digital 80GB (8MB Buffer) 7200rpm Hard Drive $62.99

if you add them together $132.94 and that is 20% for S&H of the total order and they are not for Venders

Edited by mtechama

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Ok here is what I am talking about but first lets do the Gifts first.

SKU34172 - GUARDIAN ANGEL WITH CHILDREN CANDSTICK Cost $19.95

SKU2308- 30 LIGHTED WHITE TULIP FLOWERS Cost $59.95

 

add them together comes up $79.95 plus $10.00 for S&H becuase its under $100.00 If they order over $100 its 10% for S&H

 

now the computers......................

 

Motherboard $69.95

Western Digital 80GB (8MB Buffer) 7200rpm Hard Drive $62.99

if you add them together $132.94 and that is 20% for S&H and they are not for Venders

MVS will do what you want. It will do more, but it will definitely do what you want. I don't know of any other contribution that will do this for you.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Then where do I enter the shipping that I want?

 

and do I need to do anything in the Vedors Costs?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

ok in my Admin in my shipping module i'm still getting this error:

 

Warning: main(/home/content/m/t/e/mtechamatest/html/catalog/includes/languages/english/modules/shipping/old check out code mltship.php): failed to open stream: No such file or directory in /home/content/m/t/e/mtechamatest/html/catalog/admin/modules.php on line 128

 

Warning: main(/home/content/m/t/e/mtechamatest/html/catalog/includes/languages/english/modules/shipping/old check out code mltship.php): failed to open stream: No such file or directory in /home/content/m/t/e/mtechamatest/html/catalog/admin/modules.php on line 128

 

Warning: main(): Failed opening '/home/content/m/t/e/mtechamatest/html/catalog/includes/languages/english/modules/shipping/old check out code mltship.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/m/t/e/mtechamatest/html/catalog/admin/modules.php on line 128

 

Fatal error: Cannot redeclare class mltship in /home/content/m/t/e/mtechamatest/html/catalog/includes/modules/shipping/old check out code mltship.php on line 12

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Then where do I enter the shipping that I want?

 

and do I need to do anything in the Vedors Costs?

Admin > Vendors, select the vendor, then Manage, then install the shipping module that you need. You'll need to modify the Table module with the other contribution that I mentioned before doing this. And read the Readme file in the MVS distribution carefully; it has good instructions for setting everything up.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Admin > Vendors, select the vendor, then Manage, then install the shipping module that you need. You'll need to modify the Table module with the other contribution that I mentioned before doing this. And read the Readme file in the MVS distribution carefully; it has good instructions for setting everything up.

 

Regards

Jim

 

 

Ok I fixed the Shipping Module

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

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...