Jump to content
blucollarguy

Multi_Vendor_Shipping new thread

Recommended Posts

In the Admin_Install notes for the MVS contribution, there is one line that says this:

 

###### admin/includes/classes/vendor_order_data.php(added directly to classes/order.php for PHP compatibility)######

 

Can someone tell me what that means?

 

Thank You!

Share this post


Link to post
Share on other sites

It means that a file that was in previous versions has been folded into another file. This is only of interest to people who are upgrading from a previous version, so they know that the old file can be deleted.

 

Regards

Jim


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

Share this post


Link to post
Share on other sites
It means that a file that was in previous versions has been folded into another file. This is only of interest to people who are upgrading from a previous version, so they know that the old file can be deleted.

 

Regards

Jim

 

Thank You so much! :thumbsup:

Share this post


Link to post
Share on other sites

In the Admin_install file for the MVS contribution, I also came across the following:

 

========================
Find Lines 26 thru 30
========================

              array('title' => BOX_HEADING_CATALOG,
                    'image' => 'catalog.gif',
                    'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
                    'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
                                        array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

 

I am supposed to find this code in the admin/index.php file and add another code after it. However, since I am using the newest version of osCommerce (and this contribution was written two years ago), my admin/index.php file does not contain this code. Should I look in another file, or is there a newer version of MVS (it didn't look like there was), or is there something else I should do?

Edited by God's Eternal Masterpiece

Share this post


Link to post
Share on other sites

The old admin/index.php was a splash page with a few links. I always replaced it with a redirect to a useful page. The new one does much the same, but is more automated. If you really want it to have a link to the Vendors section you'll have to write a module for it. You don't really need it, since the Vendors section is accessible from every other page in the Admin. You can safely ignore the instructions for admin/index.php.

 

Regards

Jim


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

Share this post


Link to post
Share on other sites
The old admin/index.php was a splash page with a few links. I always replaced it with a redirect to a useful page. The new one does much the same, but is more automated. If you really want it to have a link to the Vendors section you'll have to write a module for it. You don't really need it, since the Vendors section is accessible from every other page in the Admin. You can safely ignore the instructions for admin/index.php.

 

Regards

Jim

 

Once again, Thanks so much!

Share this post


Link to post
Share on other sites
In the Admin_install file for the MVS contribution, I also came across the following:

 

========================
Find Lines 26 thru 30
========================

              array('title' => BOX_HEADING_CATALOG,
                    'image' => 'catalog.gif',
                    'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
                    'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
                                        array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

 

I am supposed to find this code in the admin/index.php file and add another code after it. However, since I am using the newest version of osCommerce (and this contribution was written two years ago), my admin/index.php file does not contain this code. Should I look in another file, or is there a newer version of MVS (it didn't look like there was), or is there something else I should do?

 

I figured out a feasible answer to my own question. :D I edited the admin/includes/column_left.php file by adding

  require(DIR_WS_BOXES . 'vendors.php');

after the existing code which looks like this:

  require(DIR_WS_BOXES . 'configuration.php');
 require(DIR_WS_BOXES . 'catalog.php');

I now have the nifty little "Vendors" box on my administration panel.

Share this post


Link to post
Share on other sites

When I Admin -> Vendors and clicked on the "manage" button, my browser said that the following page:

 

"/catalog/admin/vendor_modules.php?set=shipping&vendors_id=1",

 

could not be found.

 

 

Are my shipping modules not set up correctly, or why am I getting this error?

Share this post


Link to post
Share on other sites

im wondering if anyone has updated install instructions for RC2a?

 

also im using the fancier invoice emails mod and account_history_info.php is readically different to the one in the v1.1 code

 

anyone aware of a workaround for this?

Share this post


Link to post
Share on other sites

My table rates are set up as follows:

 

50:6.50,75:11.25,100:12

 

However,

When I make a test order for eighty dollars, my shipping stills comes out as being 6.50. Can anyone help me with this problem, or tell where I may have gone wrong with something.

 

Thanks

Share this post


Link to post
Share on other sites

This is kindly related, close. but not exact. I have my problem I've been working on to try to get MVS1.1 to work for me. I'm running 2.2 - ms2. , PHP 4.4.7 Phpmyadmin 2.8.0.1.

 

I feel I almost have it but just one little problem.

 

Go to my Admin/Vendor_Management and you see:

 

Vendor Shipping Modules

 

You are currently managing XXXX

If you want to select another Vendor, go back to the Manager Page.

Vendor Modules

Sort Order

Action

BAXGlobal

 

 

Federal Express

 

 

First Item -- Plus

 

 

Flat Rate

 

 

Free Shipping

 

 

FedEx Freight

0

 

Per Item

 

AS CODE:

    </table>
<!-- //MVS  -->
                       You are currently managing <b>XXXX</b><br>
   If you want to select another Vendor, go
   <a href="http://xxx/oscommerce/admin/vendors.php">back to the 
   Manager Page.</a> 
   <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table3">
     <tr>
       <td valign="top">
       <table border="0" cellpadding="2" cellspacing="0" width="100%" id="table4">
         <tr class="dataTableHeadingRow">
           <td class="dataTableHeadingContent">Vendor Modules</td>
           <td class="dataTableHeadingContent" align="right">Sort Order</td>
           <td class="dataTableHeadingContent" align="right">Action </td>
         </tr>
         <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=bax&vendors_id=1'">
           <td class="dataTableContent">BAXGlobal</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <a href="http://arizonaenergy.org/oscommerce/admin/vendor_modules.php?module=bax&vendors_id=1">
           <img src="http://xxx.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a> </td>
         </tr>
         <tr class="dataTableRowOver" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=fedex1&vendors_id=1'">
           <td class="dataTableContent">Federal Express</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <a href="http://xxx.org/oscommerce/admin/vendor_modules.php?module=fedex1&vendors_id=1">
           <img src="http://arizonaenergy.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a> </td>
         </tr>
         <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=firstitemplus&vendors_id=1'">
           <td class="dataTableContent">First Item -- Plus</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <a href="http://xxx.org/oscommerce/admin/vendor_modules.php?module=firstitemplus&vendors_id=1">
           <img src="http://xxx.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a> </td>
         </tr>
         <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=flat&vendors_id=1'">
           <td class="dataTableContent">Flat Rate</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <a href="http://xxx.org/oscommerce/admin/vendor_modules.php?module=flat&vendors_id=1">
           <img src="http://xxx.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a> </td>
         </tr>
         <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
           <td class="dataTableContent">Free Shipping</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <img src="http://xxx.org/oscommerce/admin/images/icon_arrow_right.gif" alt="" border="0"> </td>
         </tr>
         <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=fxfreight&vendors_id=1'">
           <td class="dataTableContent">FedEx Freight</td>
           <td class="dataTableContent" align="right">0</td>
           <td class="dataTableContent" align="right">
           <a href="http://xxx.org/oscommerce/admin/vendor_modules.php?module=fxfreight&vendors_id=1">
           <img src="http://xxx.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a> </td>
         </tr>
         <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://xxx.org/oscommerce/admin/vendor_modules.php?module=item&vendors_id=1'">
           <td class="dataTableContent">Per Item</td>
           <td class="dataTableContent" align="right"> </td>
           <td class="dataTableContent" align="right">
           <a href="http://xxx.org/oscommerce/admin/vendor_modules.php?module=item&vendors_id=1">
           <img src="http://xxx.org/oscommerce/admin/images/icon_info.gif" alt="Info" title=" Info " border="0"></a></td>
         </tr>
       </table>
       </td>
     </tr>
   </table>
   <p> </td>
 </tr>
</table>

 

 

If you double click the Info Button, the arrow appears. But nothing else. Doesn't go anywhere.

Right click the info button and you get "/vendor_modules.php?module=bax&vendors_id=2".

This appears to be correct, when clicking additional lines it changes freight carrier and vendor correctly.

 

Go to My Webhost's ErrorLog and you see:

PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /XXXoscommerce/includes/classes/vendor_shipping.php on line 48
line 48 of includes/classes/vendor_shipping.php :
reset($modules_array);

 

 

 

line 48 of includes/classes/vendor_shipping.php :

reset($modules_array);

 

Goto vendor_shipping.php:

(Compare code : whole vendor_shipping.php is identical to the original. MVS..no changes!

 

New possible solution from forum:

Here's the next hurdle: 
Warning: reset(): Passed variable is not an array or object in /usr/home/sites/www.veedubdesign.com/web/testsite/catalog/includes/classes/vendor_shipping.php on line 48

this is at the checkout shipping screen, how can I remedy this?:
Add following code to:  includes/database_tables.php.
//MVS Start
define('TABLE_ORDERS_SHIPPING','orders_shipping');
define('TABLE_VENDORS', 'vendors');
define('TABLE_VENDOR_CONFIGURATION', 'vendor_configuration');
//MVS End

 

But this WAS ALREADY PROPERLY ENTERED in the later MVS edition downloaded.

 

Maybe this? MVS post 641:

 

This can happen if you don't have any shipping modules installed for a particular vendor. Each vendor needs to have at least one shipping module installed.
If you have at least one module installed for each vendor, then the system is not reading the database correctly, or possibly the Vendors admin is not setting the constants correctly. The vendor_configuration table should have values for the configuration_key field that look like MODULE_VENDOR_SHIPPING_INSTALLED_# (where # is the vendor ID number) for all vendors. If these values do not exist, check that you have installed all of the Admin files.

Regards
Jim
Tates, did you install the shipping modules? Even though they are included with the package, you still need to click on the Install button for each module you want to use with each vendor you have setup.
MVS only sets one vendor -- the default, ID #1. This is in the database install (mvs.sql.) You can create this one manually using the vendors page in the Admin or with your database management tool. If you do this, make certain that you set this vendor's ID to 1.

 

The SQL to install the default vendor is:

CODE

INSERT INTO `vendors` VALUES (1, 'Store Owner', 'My Store', '555-543-9988', '', '', 'owner@mystore.com', 'www.mvs.com', '', '2005-03-09 19:51:22', '2005-03-09 19:51:22', NULL, 1, 2, 'change', '889977 Astreet', 'Somewhere', 'MV', '223', '', '9999999', 0.00, 0.000, 0.00, 40.000, 0, 3);

 

I have quadruple checked all my admin installs and code updates. Cannot find anything. Only possible is that I have another mod involved and that is HeaderTags SEO (a couple of the passage changes involved both.). I carefully put the combined changes in order. (Perhaps incompatability?:

 

All 13 of my vendors are properly in database table. Can see that from Vendor Management in Admin. (see above).

 

Go to Mysqladmin -vendor

shows all vendors' information in table, as expected.

Go to Mysqladmin - vendor_configuration (from Webhost's tools)

vendor_configuration

"x" configuration_key - -> "browse" = "X" shows up as curser ("mouseover") goes over. (Not allowing a click.)

- - > "edit" = screen goes back to beginning ..the opening of vendor_configuration.

(Doesn't allow any editing.)

I am hoping here to ACTIVATE at least one shipping module for each of the vendors. Perhaps this will in turn active my admin/vendor/management module to allow further additions and editing?

 

Or I'm totally off base. ??

Any Sherlock's out there willing to help?

 

Thank you all for much incredible work getting all this (oscommerce and MV) together!! I know, because of you guys, I will end up with one beautiful quality website.

Thanks again!

Larry

Share this post


Link to post
Share on other sites

Hi

 

I 've added a new modue for French Shipping: Colissimo MVS

 

I m trying to build the International Version...

 

I need some help.

 

My Install function (at the end of the module) have to be like this:

 

	function install($vendors_id='1') {
		$vID = $vendors_id;
		//multi vendor add 'vendors_id' to field names and '" . $vID . "', to values
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, vendors_id) values ('Activer Colissimo international', 'MODULE_SHIPPING_INTERNATIONAL_STATUS_" . $vendors_id . "', 'True', 'Vous souhaitez activer l\'expédition via colissimo international? (0=non, 1=oui)', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 1 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_1_" . $vendors_id . "', 'DE,BE,NL', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 1 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_1_" . $vendors_id . "', '1:11.00,2:11.50,3:12.00,4:12.50,5:13.00,6:13.50,7:14.00,8:14.50,9:15.00,10:15.50,15:18.00,20:20.50,25:23.00,30:25.50', 'Tarifs Colissimo international pour les destinations de la Zone 1. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 2 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_2_" . $vendors_id . "', 'GB,IT,ES', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 2 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_2_" . $vendors_id . "', '1:13.30,2:13.90,3:14.50,4:12.50,5:13.00,6:13.50,7:14.00,8:14.50,9:15.00,10:15.50,15:18.00,20:20.50,25:23.00,30:25.50', 'Tarifs Colissimo international pour les destinations de la Zone 2. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 3 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_3_" . $vendors_id . "', 'AT,DK,IE,PT', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 3 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_3_" . $vendors_id . "', '1:13.70,2:14.80,3:15.90,4:17.00,5:18.10,6:19.20,7:20.30,8:21.40,9:22.50,10:23.60,15:29.10,20:34.60,25:40.10,30:45.60', 'Tarifs Colissimo international pour les destinations de la Zone 3. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 4 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_4_" . $vendors_id . "', 'FI,NO,SE,CH', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 4 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_4_" . $vendors_id . "', '1:17.70,2:18.70,3:19.70,4:20.70,5:21.70,6:22.70,7:23.70,8:24.70,9:25.70,10:26.70,15:31.70,20:36.70,25:41.70,30:46.70', 'Tarifs Colissimo international pour les destinations de la Zone 4. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 5 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_5_" . $vendors_id . "', 'GR,IS,PL', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 5 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_5_" . $vendors_id . "', '1:18.00,2:21.30,3:24.60,4:27.90,5:31.20,6:34.50,7:37.80,8:41.10,9:44.40,10:47.70,15:59.70,20:71.70,25:83.70,30:95.70', 'Tarifs Colissimo international pour les destinations de la Zone 5. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 6 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_6_" . $vendors_id . "', 'US,CA', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 6 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_6_" . $vendors_id . "', '1:22.00,2:29.00,3:36.00,4:43.00,5:50.00,6:57.00,7:64.00,8:71.00,9:78.00,10:85.00,15:110.00,20:135.00,25:160.00,30:185.00', 'Tarifs Colissimo international pour les destinations de la Zone 6. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added, vendors_id) values ('Shipping Zone', 'MODULE_SHIPPING_INTERNATIONAL_ZONE_" . $vendors_id . "', '0', 'If a zone is selected, only enable Store Pickup for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now(), '" . $vendors_id . "')");  
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Frais d\'emballage', 'MODULE_SHIPPING_INTERNATIONAL_HANDLING_" . $vendors_id . "', '0', 'Définir le cout fixe d\'emballage', '6', '0', now(), '" . $vendors_id . "')");	  
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added, vendors_id) values ('Code TVA', 'MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_" . $vendors_id . "', '0', 'Choisir le code TVA en fonction du taux', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Ordre de tri', 'MODULE_SHIPPING_INTERNATIONAL_SORT_ORDER_" . $vendors_id . "', '0', 'Définir l\'ordre d\'affichage', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Descriptif au choix', 'MODULE_SHIPPING_INTERNATIONAL_SHIP_TEXT_" . $vendors_id . "', 'Vous recevrez par mail votre numéro de suivi de colis', 'Le client pourra voir ce descriptif', '6', '0', now(), '" . $vendors_id . "')");	  
}

 

 

In order to have those lines... I get a code in my key function:

 

   function keys($vendors_id) {
  return array('MODULE_SHIPPING_INTERNATIONAL_STATUS_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_' . $i . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_COST_' . $i . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_ZONE_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_HANDLING_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_STORE_POSTCODE_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_SORT_ORDER_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_SHIP_TEXT_' . $vendors_id);

 

It doesn't work like this... I don't have any table in my Vendor Manager

 

it appears to be this:

. $i .

Where should it be placed to get the rights numbers...?

 

Then i'm trying to split table in my main function:

 

$dest_country = $order->delivery['country']['iso_code_2'];
  $error = false;
  for ($i = 1; $i <= $this->num_international; $i ++) {
  $countries_tables = constant('MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_' . $i . $vendors_id);
  $country = split("[,]", $countries_tables);

  if ( in_array($dest_country, $country ) ) {
  $dest_zone = $i;
  break;
}
  }


  if ($dest_country == 0) {
$this->quotes['error'] = MODULE_SHIPPING_INTERNATIONAL_INVALID_ZONE;
  }

  $international_cost = constant('MODULE_SHIPPING_INTERNATIONAL_COST_' . $vendors_id);



// International MVS End
	$international_table = split("[:,]" , $international_cost . $dest_zones);
	$shipping = -1;
	$size = sizeof($international_table);
	for ($i=0; $i<$size; $i+=2) {
	  if ($shipping_weight <= $international_table[$i]) {
		$shipping = $international_table[$i+1];
		$shipping_method = MODULE_SHIPPING_INTERNATIONAL_TEXT_WAY . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_INTERNATIONAL_TEXT_UNITS;





//MVS Start
	  $vendors_data_query = tep_db_query("select handling_charge
										  from " . TABLE_VENDORS . "
										  where vendors_id = '" . (int)$vendors_id . "'"
										);
	  $vendors_data = tep_db_fetch_array($vendors_data_query);

	  //Set handling to the handling per box times number of boxes, or handling charge if it is larger
	  $handling = $vendors_data['handling_charge'];

	  //Set handling to the module's handling charge if it is larger
	  $module_handling = constant('MODULE_SHIPPING_INTERNATIONAL_HANDLING_' . $vendors_id);
	  if ($module_handling > $handling) {
		$handling = $module_handling;
	  }
	  }
	  $shipping_cost = $shipping + $handling;

//MVS End


	}

  $this->quotes = array('id' => $this->code,
						'module' => MODULE_SHIPPING_INTERNATIONAL_TEXT_TITLE,
						'methods' => array(array('id' => $this->code,
												 'title' => $shipping_method,
												 'cost' => $shipping_cost)));

 

So, I can't split correctly if i don't have the good keys.

Maybe Jim could help me, or anyone else.

At the end, in order to check a simple syntax error, i let you see the complet code source:

 

<?php

/*

 $Id: international.php,v 1.0 05/02/2008 12:00:00 damdamletouffu $

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

 Copyright (c) 2008 osCommerce MS2.2

 Released under the GNU General Public License

 Premiere version pour Multi Vendor Shipping 1.1


*/
 class international {
var $code, $title, $description, $enabled, $icon, $vendors_id; //multi vendor

// class constructor
function international() {
//MVS
  $this->vendors_id = ($products['vendors_id'] <= 0) ? 1 : $products['vendors_id'];
  $this->code = 'international';
  $this->description = MODULE_SHIPPING_INTERNATIONAL_TEXT_DESCRIPTION;
  $this->title = MODULE_SHIPPING_INTERNATIONAL_TEXT_TITLE;
  $this->description = MODULE_SHIPPING_INTERNATIONAL_TEXT_DESCRIPTION;
  $this->icon = DIR_WS_ICONS . 'international.gif'; // ou shipping_laposte.gif au choix
		// CUSTOMIZE THIS SETTING FOR THE NUMBER OF international NEEDED
  $this->num_international = 6; //NBen je remplace 1 par 10
}
//MVS Start


			function zones($vendors_id='1') {
  if ( ($this->enabled == true) && ((int)constant('MODULE_SHIPPING_INTERNATIONAL_ZONE_' . $vendors_id) > 0) ) {
	$check_flag = false;
	$check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . (int)constant('MODULE_SHIPPING_INTERNATIONAL_ZONE_' . $vendors_id) . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
	while ($check = tep_db_fetch_array($check_query)) {
	  if ($check['zone_id'] < 1) {
		$check_flag = true;
		break;
	  } elseif ($check['zone_id'] == $order->delivery['zone_id']) {
		$check_flag = true;
		break;
	  } //if
	}//while

	if ($check_flag == false) {
	  $this->enabled = false;
	}//if
  }//if
					return $this->enabled;
}//function

			function sort_order($vendors_id='1') {
 $sort_order = @constant ('MODULE_SHIPPING_INTERNATIONAL_SORT_ORDER_' . $vendors_id);
   if (isset ($sort_order)) {
   $this->sort_order = $sort_order;
  } else {
	$this->sort_order = '-';
  }
					return $this->sort_order;
}

			function tax_class($vendors_id='1') {
  $this->tax_class = constant('MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_' . $vendors_id);
					return $this->tax_class;
}

			function enabled($vendors_id='1') {
  $this->enabled = false;
  $status = @constant('MODULE_SHIPPING_INTERNATIONAL_STATUS_' . $vendors_id);
					if (isset ($status) && $status != '') {
	$this->enabled = (($status == 'True') ? true : false);
  }
  return $this->enabled;
}

//Set the number of zones used for this vendor
			function num_zones($vendors_id='1') {

  $vendors_data_query = tep_db_query("select zones
									  from " . TABLE_VENDORS . "
									  where vendors_id = '" . (int)$vendors_id . "'"
									);
  $vendors_data = tep_db_fetch_array($vendors_data_query);
  $this->num_zones = $vendors_data['international'];
					return $this->num_zones;
}
//MVS End

//Get a quote
function quote($method = '', $module = '', $vendors_id = '1') {

  global $order, $cart, $shipping_weight, $shipping_num_boxes;
//MVS Start
//return an error if the module is not enabled for this vendor
  if ($this->enabled($vendors_id) < 1) {
	$this->quotes['error'] = MODULE_SHIPPING_ZONES_INVALID_ZONE;
	return $this->quotes;
  }
//MVS End


  $dest_country = $order->delivery['country']['iso_code_2'];
  $error = false;
  for ($i = 1; $i <= $this->num_international; $i ++) {
  $countries_tables = constant('MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_' . $i . $vendors_id);
  $country = split("[,]", $countries_tables);

  if ( in_array($dest_country, $country ) ) {
  $dest_zone = $i;
  break;
}
  }


  if ($dest_country == 0) {
$this->quotes['error'] = MODULE_SHIPPING_INTERNATIONAL_INVALID_ZONE;
  }

  $international_cost = constant('MODULE_SHIPPING_INTERNATIONAL_COST_' . $vendors_id);



// International MVS End
	$international_table = split("[:,]" , $international_cost . $dest_zones);
	$shipping = -1;
	$size = sizeof($international_table);
	for ($i=0; $i<$size; $i+=2) {
	  if ($shipping_weight <= $international_table[$i]) {
		$shipping = $international_table[$i+1];
		$shipping_method = MODULE_SHIPPING_INTERNATIONAL_TEXT_WAY . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_INTERNATIONAL_TEXT_UNITS;





//MVS Start
	  $vendors_data_query = tep_db_query("select handling_charge
										  from " . TABLE_VENDORS . "
										  where vendors_id = '" . (int)$vendors_id . "'"
										);
	  $vendors_data = tep_db_fetch_array($vendors_data_query);

	  //Set handling to the handling per box times number of boxes, or handling charge if it is larger
	  $handling = $vendors_data['handling_charge'];

	  //Set handling to the module's handling charge if it is larger
	  $module_handling = constant('MODULE_SHIPPING_INTERNATIONAL_HANDLING_' . $vendors_id);
	  if ($module_handling > $handling) {
		$handling = $module_handling;
	  }
	  }
	  $shipping_cost = $shipping + $handling;

//MVS End


	}

  $this->quotes = array('id' => $this->code,
						'module' => MODULE_SHIPPING_INTERNATIONAL_TEXT_TITLE,
						'methods' => array(array('id' => $this->code,
												 'title' => $shipping_method,
												 'cost' => $shipping_cost)));

if ($shipping = 0) {  
$shipping_cost = 350000;
return $this->quotes;
}								   

// Pas possible de livrer
if ($shipping_weight > 30) {
$this->quotes['error'] = MODULE_SHIPPING_INTERNATIONAL_TOO_HEAVY;
return $this->quotes;
 }



//$this->tax_class = constant('MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_' . $vendors_id);
  if ($this->tax_class($vendors_id) > 0) {
	   $this->quotes['tax'] = tep_get_tax_rate($this->tax_class($vendors_id), $order->delivery['country']['id'], $order->delivery['zone_id']);
  }

  if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_INTERNATIONAL_INVALID_ZONE;

  return $this->quotes;
}

function check($vendors_id='1') {
  if (!isset($this->_check)) {
	$check_query = tep_db_query("select configuration_value from " . TABLE_VENDOR_CONFIGURATION . " where vendors_id = '". $vendors_id ."' and configuration_key = 'MODULE_SHIPPING_INTERNATIONAL_STATUS_" . $vendors_id . "'");
	$this->_check = tep_db_num_rows($check_query);
  }
  return $this->_check;
}

function install($vendors_id='1') {
		$vID = $vendors_id;
		//multi vendor add 'vendors_id' to field names and '" . $vID . "', to values
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, vendors_id) values ('Activer Colissimo international', 'MODULE_SHIPPING_INTERNATIONAL_STATUS_" . $vendors_id . "', 'True', 'Vous souhaitez activer l\'expédition via colissimo international? (0=non, 1=oui)', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 1 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_1_" . $vendors_id . "', 'DE,BE,NL', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 1 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_1_" . $vendors_id . "', '1:11.00,2:11.50,3:12.00,4:12.50,5:13.00,6:13.50,7:14.00,8:14.50,9:15.00,10:15.50,15:18.00,20:20.50,25:23.00,30:25.50', 'Tarifs Colissimo international pour les destinations de la Zone 1. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 2 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_2_" . $vendors_id . "', 'GB,IT,ES', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 2 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_2_" . $vendors_id . "', '1:13.30,2:13.90,3:14.50,4:12.50,5:13.00,6:13.50,7:14.00,8:14.50,9:15.00,10:15.50,15:18.00,20:20.50,25:23.00,30:25.50', 'Tarifs Colissimo international pour les destinations de la Zone 2. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 3 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_3_" . $vendors_id . "', 'AT,DK,IE,PT', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 3 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_3_" . $vendors_id . "', '1:13.70,2:14.80,3:15.90,4:17.00,5:18.10,6:19.20,7:20.30,8:21.40,9:22.50,10:23.60,15:29.10,20:34.60,25:40.10,30:45.60', 'Tarifs Colissimo international pour les destinations de la Zone 3. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 4 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_4_" . $vendors_id . "', 'FI,NO,SE,CH', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 4 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_4_" . $vendors_id . "', '1:17.70,2:18.70,3:19.70,4:20.70,5:21.70,6:22.70,7:23.70,8:24.70,9:25.70,10:26.70,15:31.70,20:36.70,25:41.70,30:46.70', 'Tarifs Colissimo international pour les destinations de la Zone 4. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 5 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_5_" . $vendors_id . "', 'GR,IS,PL', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 5 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_5_" . $vendors_id . "', '1:18.00,2:21.30,3:24.60,4:27.90,5:31.20,6:34.50,7:37.80,8:41.10,9:44.40,10:47.70,15:59.70,20:71.70,25:83.70,30:95.70', 'Tarifs Colissimo international pour les destinations de la Zone 5. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 6 (pays)', 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_6_" . $vendors_id . "', 'US,CA', 'Insérer une virgule entre 2 codes ISO de pays qui font partie de la même zone', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('INTERNATIONAL Zone 6 (poids:tarifs)', 'MODULE_SHIPPING_INTERNATIONAL_COST_6_" . $vendors_id . "', '1:22.00,2:29.00,3:36.00,4:43.00,5:50.00,6:57.00,7:64.00,8:71.00,9:78.00,10:85.00,15:110.00,20:135.00,25:160.00,30:185.00', 'Tarifs Colissimo international pour les destinations de la Zone 6. ', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added, vendors_id) values ('Shipping Zone', 'MODULE_SHIPPING_INTERNATIONAL_ZONE_" . $vendors_id . "', '0', 'If a zone is selected, only enable Store Pickup for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now(), '" . $vendors_id . "')");  
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Frais d\'emballage', 'MODULE_SHIPPING_INTERNATIONAL_HANDLING_" . $vendors_id . "', '0', 'Définir le cout fixe d\'emballage', '6', '0', now(), '" . $vendors_id . "')");	  
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added, vendors_id) values ('Code TVA', 'MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_" . $vendors_id . "', '0', 'Choisir le code TVA en fonction du taux', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Ordre de tri', 'MODULE_SHIPPING_INTERNATIONAL_SORT_ORDER_" . $vendors_id . "', '0', 'Définir l\'ordre d\'affichage', '6', '0', now(), '" . $vendors_id . "')");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, vendors_id) values ('Descriptif au choix', 'MODULE_SHIPPING_INTERNATIONAL_SHIP_TEXT_" . $vendors_id . "', 'Vous recevrez par mail votre numéro de suivi de colis', 'Le client pourra voir ce descriptif', '6', '0', now(), '" . $vendors_id . "')");	  
}

function remove($vendors_id) {
  tep_db_query("delete from " . TABLE_VENDOR_CONFIGURATION . " where vendors_id = '". $vendors_id ."' and configuration_key in ('" . implode("', '", $this->keys($vendors_id)) . "')");
}

function keys($vendors_id) {
  return array('MODULE_SHIPPING_INTERNATIONAL_STATUS_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_COUNTRIES_' . $i . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_COST_' . $i . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_ZONE_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_HANDLING_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_TAX_CLASS_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_STORE_POSTCODE_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_SORT_ORDER_' . $vendors_id, 'MODULE_SHIPPING_INTERNATIONAL_SHIP_TEXT_' . $vendors_id);


//MVS End


}
 }
?>

 

Thanks

 

Damien

Share this post


Link to post
Share on other sites

Any Sherlock's out there willing to help?

 

 

I really would appreciate a little help here. Is there anyone who would be willing to lend a little competent help?

 

If I've wrongly posted this here. Sorry. I just don't know of a better place.

 

Thank you all again!

Larry

Share this post


Link to post
Share on other sites

Sorry for my previous reply.

 

In fact, I was wrong with all my module. I just have to get a modified zones module.

 

However, i'd like to know how to hardly write my default modules...

 

	 for ($i = 1; $i <= $this->num_zones($vendors_id); $i++) {
	$default_countries = '';
	if ($i == 1) {
	  $default_countries = 'US,CA';
	}

 

I 'd like to have my others input for different zones...

 

 

And how could i put my table prices above this?

 

	  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . $vendors_id . "', 'Zone " . $i ." Shipping Table', 'MODULE_SHIPPING_ZONES_COST_" . $vendors_id . "_" . $i . "', '3:8.50,7:10.50,99:20.00', 'Shipping rates to Zone " . $i . " destinations based on a group of maximum order weights. Example: 3:8.50,7:10.50,... Weights less than or equal to 3 would cost 8.50 for Zone " . $i . " destinations.', '6', '0', now())");

Share this post


Link to post
Share on other sites

HI I have a problem, after a clean install of 2.2rc2a ive uploaded mvs1.1 and get this error on one half of the product attributes page

 

Fatal error: Call to undefined function: tep_hide_session_id() in /share/storage/03/pr/printjunkie/htdocs/catalog/admin/includes/classes/split_page_results.php on line 80

 

im a bit stumped.

 

any help would be greatly appreciated.

 

cheers

Share this post


Link to post
Share on other sites

Hello,

 

I have been using MVS w/ UPS xml for well over a year now. It has flawlessly working for that entire time, up until last night. Suddenly, around 8pm CST checkout_shipping.php yielded nothing but a blank page. After scouring my code for all pages updated that day, I found nothing wrong with my code. Finally I started disabling my shipping modules 1 by 1 until checkout_shipping.php worked. When I disabled UPS XML everything came back to working order. I called UPS directly and asked them if perhaps my access key expired or something to that extent, they were not helpful at all and only told me they would call me back within 24 hours.

 

Has anyone else had an issue like this? I've read a couple different posts about checkout_shipping.php not working but they seem to be completely different issues than what I am having.

Share this post


Link to post
Share on other sites

figured it out, the USPXML.log file was > 2gb and couldnt be written to anymore, causing UPSXML to error

Share this post


Link to post
Share on other sites

Mark: tep_hide_session_id() is in includes/functions/html_output.php, (lines 272-280) and has been since 2.2rc1. The HTML output functions are critical to every page of osCommerce, so I'd be very surprised to find the entire file missing. Perhaps this file got overwritten by mistake? Please remember that MVS was written on 2.2MS2 code, so if you are using any later version of osCommerce, don't overwrite any files without checking first.

 

Charles: Thanks for letting us know. That's a good warning for everyone: don't leave logging turned on unless you are actually using it for debugging.

 

Regards

Jim


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

Share this post


Link to post
Share on other sites

Does anyone know how to add a line break in the confirmation email (the email you get when you place an order)?

 

I need to move the state/tax to a new line (below the ups shipping).....

 

United Parcel Service (XML) (1 pkg x 3 lbs total) (UPS Ground, 2008-05-08): $6.68 FL TAX 7.0%: $128.03

 

I looked inside the checkout_process page and couldn't find anything. My guess is that it is somewhere else...

Share this post


Link to post
Share on other sites

Hi, i have a little problem with MVS Shipestimator 2.1. We use the standard zones osc module.

When customer is logged out all works very nice and the estimator opens in the pinfo page and customer can estimate shipping costs.BUT if the customer is logged in and he wants to estimate shipping costs it shows up "product not found".

I have serval of contribs installed and this is the last one which make a little prob.

I know when we switch SEO URLS off the estimator works for logged in users too. Has maybe anyone a suggestion for this ? Can it be the seo_class.php ?

Usually we dont need the redirect in the products_ship_estimator.php if no one has a tip to manage this then can tell me maybe someone how to switch the redirect for logged in customers in the products_ship_estimator.php off.

Thanks for this nice contrib..

and sorry for the english

Share this post


Link to post
Share on other sites

Hi there,

 

I'm having a hell of a time getting this installed. It looks like this was written a while ago, so the files don't match up anymore.. Specifically, I'm stuck on the checkout_shipping.php file. I can't seem to figure out how the modifications should be applied to that file.

 

It may be that I'm not using the correct files either. Specifically, I'm using the MVS-1.1 distro with fixes for vendors.php, database_tables.php and categories.php.. Is that even remotely correct? There are so many files listed in this distro, I'm not sure where to start...

 

Thanks,

 

XenoPhage


XenoPhage

Share this post


Link to post
Share on other sites

Hi,

 

I've installed MVS and tried to complete an order using authorize.net. When i click the final button to finish the order the page gets stuck at https://secure.authorize.net/gateway/transact.dll and gives me a warning...

 

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in ......\includes\functions\database.php on line 132

 

Warning: Cannot modify header information - headers already sent by (output started at ......\includes\functions\database.php:132) in .......\includes\functions\general.php on line 29

 

HOWEVER, if i turn off mvs and use the regular ups xml the process runs smooth. Does anyone have any idea where i can look to fix the problem?

 

Thanks - Mike C.

Share this post


Link to post
Share on other sites
Mark: tep_hide_session_id() is in includes/functions/html_output.php, (lines 272-280) and has been since 2.2rc1. The HTML output functions are critical to every page of osCommerce, so I'd be very surprised to find the entire file missing. Perhaps this file got overwritten by mistake? Please remember that MVS was written on 2.2MS2 code, so if you are using any later version of osCommerce, don't overwrite any files without checking first.

 

Charles: Thanks for letting us know. That's a good warning for everyone: don't leave logging turned on unless you are actually using it for debugging.

 

Regards

Jim

Brilliant, i started again with 2.2rc1 and its running a treat.

 

Cheers! kymation

 

I do have one further issue, that i could do with some help on. I would like to add more details to the vendors auto email, info such as order break down, sub total and total, billing address and order date and time.

 

any help wud again be greatly accreiciated.

 

cheers

 

Mark

Share this post


Link to post
Share on other sites

Having a slight problem with the MVS 1.1 system

 

I have 2 vendor:-

Vender A

Shipping Module - Per Item

Vendor B

Shipping Module - Per Item

Shipping Module - Flate Rate

 

Customer orders 2 products, 1 with Vendor A and 1 with Vender B

 

The problem is if the customer select the Per Item shipping method for both products the order get doubled and messed up. ie created duplicate order with the same order ID and there is multiple products in the order.

 

I have also installed many other add-on so not sure if this is to do with MVS or not.

 

Any one have any idea?

Edited by Adam46

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×