Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

MVS 1.2.3 with OSC 2.3 (SHIPPING MODULES)


23 replies to this topic

#1 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 02 April 2011, 20:57

I'm trying to install MVS to OSC 2.3. I think I got it installed, but with a few bugs. I'm wondering about the "includes/modules/vendors_shipping" directory. The regular shipping modules are stored in "includes/modules/shipping" and in admin the modules directory still says the default shipping directory. Should this be changed to vendors_shipping directory after patching
all the files in the instructions, or should I put the modded modules in the regular shipping directory?

I guess this would answer some other questions I have about some of the errors that I am getting. When I try to install the modded table shipping module I get the following error:

Warning: Missing argument 1 for table::keys(), called in
/home/www/example.com/admin/modules.php on line 155 and defined in
/home/www/example.com/includes/modules/shipping/table.php on line 224

Thanks in advance for the help!

All the best,

Clarence

#2 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 April 2011, 21:50

The MVS modules need to stay in the includes/modules/vendors_shipping directory. They are modified from the original modules, so they get their own directory. This allows MVS to be turned off if not needed or for testing.

Your error message is referring to the original module, not the MVS modified one. This tells me that you have MVS turned off in your Admin >> Configuration >> Shipping/Packaging >> Enable Vendor Shipping. If that is set to true, you have some missing file mods somewhere.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#3 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 02 April 2011, 22:48

View Postkymation, on 02 April 2011, 21:50, said:

The MVS modules need to stay in the includes/modules/vendors_shipping directory. They are modified from the original modules, so they get their own directory. This allows MVS to be turned off if not needed or for testing.

Your error message is referring to the original module, not the MVS modified one. This tells me that you have MVS turned off in your Admin >> Configuration >> Shipping/Packaging >> Enable Vendor Shipping. If that is set to true, you have some missing file mods somewhere.

Regards
Jim

Hey Jim, thanks for you fast reply and help with this.

I already had Vendor Shipping enabled, and the error was due to me putting the modded table module in the regular "shipping" directory. Thankfully, before I mod anything I always keep backups :-)

I just put back the original table file in the shipping directory, and put the modded table file in vendors_shipping. No errors on the admin side, but now during checkout, it won't get past checkout_shipping.php. I get "Error: You have not selected a shipping method for all groups of products. Please select one shipping method for each group of products below."

I sure hope I didn't miss any files to mod. When I installed I went over everything with a fine tooth come, considering the 134 files.

Do you have any suggestions on trouble shooting which mod files are missing, if in fact, any are missing? Also, in admin, under shipping modules, when Vender Shipping is enabled, I don't see the options for the new modules to install. Since, MVS 1.2.3 was intended for OSC 2.2 -- when clicking on Vendors tab in admin, the left column displays differently, too. Not sure if there should be any sub-links under the vendors tab in admins? I currently don't see any.

Thanks and all the best,

Clarence

#4 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 April 2011, 23:02

You will need to modify the admin/includes/boxes/vendors.php to make it work with 2.3.1. The file should look like this:

<?php
/*
  $Id: vendors.php $
  $Loc: /catalog/admin/includes/boxes/ $
  $Mod: MVS V1.3 2010/02/28 Kymation $

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

  Copyright © 2011 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_VENDORS,
    'apps' => array(
      array(
        'code' => FILENAME_VENDORS,
        'title' => BOX_VENDORS,
        'link' => tep_href_link(FILENAME_VENDORS)
      ),
      array(
        'code' => FILENAME_PRODS_VENDORS,
        'title' => BOX_VENDORS_REPORTS_PROD,
        'link' => tep_href_link(FILENAME_PRODS_VENDORS)
      ),
      array(
        'code' => FILENAME_ORDERS_VENDORS,
        'title' => BOX_VENDORS_ORDERS,
        'link' => tep_href_link(FILENAME_ORDERS_VENDORS)
      ),
      array(
        'code' => FILENAME_MOVE_VENDORS,
        'title' => BOX_MOVE_VENDOR_PRODS,
        'link' => tep_href_link(FILENAME_MOVE_VENDORS)
      )
    )
  );
?>
You need to use the Vendor Manager to install shipping modules for each vendor. See the usage.txt file in the MVS distribution for instructions.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#5 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 03 April 2011, 00:51

Thanks Jim!

I went ahead and updated the vendors box and it now displays correctly :-) I then installed the table module to a vendor, assigned a product to a vendor, tested a product from that vendor, but still did not get past checkout_shipping.php.

For some reason, the shipping table options for that vendor is not being displayed on checkout_shipping.php either. :huh:

Does anything need to be modded in the checkout_shipping.php (OSC 2.3) file to make it pass that stage and display the shipping rate properly for the vendor?

Thanks,

Clarence

#6 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 03 April 2011, 01:12

Yes, checkout_skipping.php has several changes for MVS. I recommend comparing your file to the version in the MVS distribution. The MVS changes are marked.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#7 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 03 April 2011, 02:49

Perfect!!

Don't know how I missed modding the checkout_shipping.php the first time... I just updated it and it led me to discover other mods that I somehow missed. I also need to update the "new files" distributed with the MVS 1.2.3 to fix some display issues with OSC 2.3 (removing the table structures and replacing with divs...).

I'll keep updating till perfect and report back here when I update all the files.

I really appreciate your help Jim :D

Have a great night!

Clarence

#8 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 03 April 2011, 08:19

It's a success!

Just passed all stages of checkout :lol:

Just working on the display of checkout_shipping.php right now...

Also, need to mod how the e-mail is displayed to the manufacturer.

You are a life saver! Many thanks Jim :)

All the best,

Clarence

#9 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 05 April 2011, 20:19

Hi Jim,

By chance, do you have the vendor_shipping module updated for OSC 2.3?

I am working through how it displays through checkout_shipping.php, and was just curious if you have already worked on that part of it yet.

Thanks,

Clarence

#10 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 05 April 2011, 20:33

I have, but that page has some other mods on it as well. Give me a chance to get MVS separated out. I'm in the middle of recovering a crashed site right now.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#11 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 06 April 2011, 20:32

View Postkymation, on 05 April 2011, 20:33, said:

I have, but that page has some other mods on it as well. Give me a chance to get MVS separated out. I'm in the middle of recovering a crashed site right now.

Regards
Jim

Thanks Jim, I got the display working okay, but something is happening with the display with a friend of mine viewing it overseas... I would like to PM you the screenshots to see if you know what is going on.

It deals specifically with displaying the shipping options on Checkout_shipping.php. The shipping seems to be hidden from my friend overseas, but is displayed for me. Just wanted to get you thoughts on it, if you have time to look.

Thanks,

Clarence

#12 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 06 April 2011, 21:04

Email them to me if you want. Have you checked Zones? If you are using Zone settings on a shipping module, anyone outside that zone will not see that module's quotes.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#13 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 06 April 2011, 21:25

View Postkymation, on 06 April 2011, 21:04, said:

Email them to me if you want. Have you checked Zones? If you are using Zone settings on a shipping module, anyone outside that zone will not see that module's quotes.

Regards
Jim

Makes perfect sense... It's outside of the shipping zone. Going to have my friend set up a new test account to test the shipping module within the shipping zone.

Thanks so much for all of your great help with this. Sometimes I get lost working, as I call it, "inside the forrest," and it's nice to have an objective view from someone "who can see into the forrest." :thumbsup:

Will report back on the forum with the results, 99.9% confident that that is the issue B)

All the best,

Clarence

#14 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 06 April 2011, 21:54

I often have trouble seeing the forest because there are too many trees around here. Nice to know I'm not the only one.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#15 crojack

  • Community Member
  • 4 posts
  • Real Name:Jack

Posted 12 April 2011, 02:03

Hi,
I am using OSC 2.3.1 and having same problem with paypal express overriding free shipping.


I tried to replace the code in the express.php
______________________________________________________

// select cheapest shipping method
$shipping = $shipping_modules->cheapest();
$shipping = $shipping['id'];
}
}
}

if (strpos($shipping, '_')) {
list($module, $method) = explode('_', $shipping);

if ( is_object($$module) || ($shipping == 'free_free') ) {
if ($shipping == 'free_free') {
$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
$quote[0]['methods'][0]['cost'] = '0';
} else {
$quote = $shipping_modules->quote($method, $module);
}

if (isset($quote['error'])) {
tep_session_unregister('shipping');

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
} else {
if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
$shipping = array('id' => $shipping,
'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
'cost' => $quote[0]['methods'][0]['cost']);
}
}
}
}

With this:

// load the selected shipping module
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($shipping);

require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
_________________________________________________________________________________

With this solution,I get the following:
Parse error: syntax error, unexpected T_ELSE in /home/namadisk/public_html/ext/modules/payment/paypal/express.php on line 472




_________________________________________________________________________
Is there anything that one can change in this code to make it work--

// select cheapest shipping method
$shipping = $shipping_modules->cheapest();
$shipping = $shipping['id'];
}
}
}

if (strpos($shipping, '_')) {
list($module, $method) = explode('_', $shipping);

if ( is_object($$module) || ($shipping == 'free_free') ) {
if ($shipping == 'free_free') {
$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
$quote[0]['methods'][0]['cost'] = '0';
} else {
$quote = $shipping_modules->quote($method, $module);
}

if (isset($quote['error'])) {
tep_session_unregister('shipping');

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
} else {
if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
$shipping = array('id' => $shipping,
'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
'cost' => $quote[0]['methods'][0]['cost']);
}
}
}
}
___________________________________________________________________________________________________

Please help !!!!!

Best Regards

#16 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 12 April 2011, 02:44

There are some posts in the MVS support thread about modifying Paypal for MVS. Did you look there?

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#17 crojack

  • Community Member
  • 4 posts
  • Real Name:Jack

Posted 14 April 2011, 00:28

View Postkymation, on 12 April 2011, 02:44, said:

There are some posts in the MVS support thread about modifying Paypal for MVS. Did you look there?

Regards
Jim


Thanks for replaying Jim

I have given MVS installation to someone else hopefully it works out fine.
In meantime I have found free shipping contribution per category and that appears to be working fine with PayPal.

Many Thanks

Best Regards

Jack

#18 jondonley

  • Community Member
  • 1 posts
  • Real Name:Jon Donley

Posted 20 April 2011, 18:30

OK, I'm totally new to oscommerce, but am looking at it specifically for the functionality described by this module. The problems is that in looking at the instructions described above, and in the "readme" file, I'm not seeing the directory structure described at all. I have installed osCommerce Online Merchant v2.3.1, and it describes itself as properly installed.

Can someone tell me why I'm not seeing the CATALOG directory?

#19 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 April 2011, 18:32

As always on this forum, "catalog" refers to the directory that you have osCommerce installed in. Only you know what that directory is actually named.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#20 osc_custom

  • Community Member
  • 12 posts
  • Real Name:Clarence

Posted 02 May 2011, 07:52

Just wanted to report back that I got the shipping zones all sorted out from my last post, thanks to kymation. I'm working now on getting the vendor name(s) to appear on the customer's confirmation e-mail. Any idea on the best way to do this through checkout_process.php?

Thanks,

Clarence