Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multi_Vendor_Shipping new thread


blucollarguy

Recommended Posts

I don't see any way around presenting separate shipments to the customer, else they won't be able to select their shipping preference for those shipments that offer them an option. It's probably also advisable to show them which items are in which shipment.

Link to comment
Share on other sites

  • 2 months later...

Hi,

In the my oscommerce installation, v2.3.4.1 CE, there are  only four shipping modules, flat, table, per item and zone rates in includes/modules/. After I installed this addon and enable the vendor shipping with upsxml, I cannot see upsxml shipping with checkout. Do I miss some in installation? 

Thank you for your help in advance!

Link to comment
Share on other sites

  • 1 month later...

Has anyone gotten MVS_BSv1.4.3 working on 2.3.4.1 BS Frozen? (as of 18/05/2018)
Can't for the life of me get it to give rates and here are the errors I am getting

Notice: Undefined variable: order_id in /includes/classes/order.php on line 287

Warning: reset() expects parameter 1 to be array, null given in /includes/classes/vendor_shipping.php on line 51

Notice: Undefined variable: vendors_id in /checkout_shipping.php on line 223

 

for what it is worth I have installed just flat rate and table shipping modules at this point

Edited by cigarsforless

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

in regards to my post above, please see here

pulling my hair out trying to get MVS_BSv1.4.3 to work on 2.3.4.1 BS Frozen (THE "official" stable BS release)

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

as Burt says

"Be aware that EDGE is basically my playground. 
It is subject to changes in all files and there is zero support for it.

If, as a shopowner, you want stable:  Go Frozen.
If, as a shopowner, you have a good developer or you are technically minded:  Go Edge."

 

SO... is there a working version of MVS for BS Frozen? or am I just an idiot who can no longer code?

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

Warning: reset() expects parameter 1 to be array, null given in /includes/classes/vendor_shipping.php on line 51

Find L51 and cast the object to an array.  

reset( $whatever );

to

reset( (array)$whatever );

That is a MASK for that problem, not a fix.  That Mask may introduce other problems.

 

Link to comment
Share on other sites

@burt

thanks for the suggestion but now error is
Fatal error: Only variables can be passed by reference in /home/xxx/xx.xxx.com/includes/classes/vendor_shipping.php on line 51

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

seems that for some reason the code is not detecting any of the installed vendor shipping modules and as a result returning an empty array

 

// Find all of the modules and instantiate the module classes
    public function __construct($module = '') {
      global $language, $PHP_SELF;

      $installed_modules_array = array();
			//Get the vendors_id for each vendor in the database
      $vendors_data_query = tep_db_query("select vendors_id from " . TABLE_VENDORS);
      while ($vendors_data = tep_db_fetch_array($vendors_data_query)) {
        $vendors_id = $vendors_data['vendors_id'];
        $installed_modules = @constant('MODULE_VENDOR_SHIPPING_INSTALLED_' . $vendors_id);

        if (isset ($installed_modules) && tep_not_null ($installed_modules)) {
          $modules_array = explode(';', $installed_modules);
          $this->modules[$vendors_id] = $modules_array;

          foreach ($modules_array as $module_name) {
            //if the module is not already in the array, add it in
            if (!in_array ($module_name, $installed_modules_array)) {
              $installed_modules_array[] = $module_name;
            }//if !in_array
          }//foreach
        }//if isset
      }//while

      $include_modules = array();
      if ( (is_string($module) && (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $modules_array))) ) {
          $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 
                                     'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));

// X 2-20-10 ADDED PRINTOUT CODE
	  } else {
//  LINE 51 BELOW THAT IS THROWING THE ERROR
          reset($modules_array); 
	      foreach ($installed_modules_array as $value) {
	          $class = substr($value, 0, strrpos($value, '.'));
	          $include_modules[] = array('class' => $class, 
                                         'file' => $value);
	      } //foreach
	  } //if tep_not_null

as well, not a single shipping quote is being returned?
MVS_BSv1.4.3  on stock 2.3.4.1 BS Frozen

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

First simple check would be your database config table to see if modules are indeed still in the config table. It could just be that the tabe has got messed up.

In admin run check tables an if needed run repair tables.

If still not seeing add-ons then uninstall them and try reinstalling.

 

 

Link to comment
Share on other sites

tables are good, config values are in vendor_configuration table correctly, uninstalling reinstalling shipping modules does nothing

I see $vendors_id='1' at the end of every function in the add on like below

//Find the cheapest shipping method for a specific vendor
    function cheapest($vendors_id='1') {
      if (is_array($this->modules[$vendors_id])) {
        $rates = array();

but I have no vendor with id 1

 

checkout shipping page throws out these errors at the top of the page

Notice: Undefined variable: order_id in /home/cigars/test.xxx.com/includes/classes/order.php on line 287

Warning: reset() expects parameter 1 to be array, null given in /home/cigars/test.xxx.com/includes/classes/vendor_shipping.php on line 52

Notice: Undefined variable: vendors_id in /home/cigars/test.xxx.com/checkout_shipping.php on line 223

 

what am I missing?

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

turn off vendors shipping and it give the flat rate result, but still shows the 1st error above about Undefined variable: order_id

turn on vendors shipping and same result, no rates, just errors

for what it is worth, as this is a new install, orders_shipping table is empty

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

hmmmmmm

 

where the quotes "should" be displayed I get these errors

Shipping Method


Notice: Undefined offset: 13 in /home/cigars/test.xxx.com/includes/classes/shopping_cart.php on line 377

Notice: Undefined index: weight in /home/cigars/test.xxx.com/includes/classes/shopping_cart.php on line 377

Notice: Undefined index: cost in /home/cigars/test.xxx.com/includes/classes/shopping_cart.php on line 378

Notice: Undefined index: qty in /home/cigars/test.xxx.com/includes/classes/shopping_cart.php on line 379

Notice: Undefined index: ship_cost in /home/cigars/test.xxx.com/includes/classes/shopping_cart.php on line 381

 

code referred to is

          // Add values to the output array
          $this->vendor_shipping[$vendors_id]['weight'] += ($quantity * $products_weight);
          $this->vendor_shipping[$vendors_id]['cost'] += tep_add_tax($products_price, $products_tax) * $quantity;
          $this->vendor_shipping[$vendors_id]['qty'] += $quantity;
// mod IndvShip
          $this->vendor_shipping[$vendors_id]['ship_cost'] += ($quantity * $products_ship_price);
          $this->vendor_shipping[$vendors_id]['products_id'][] = $products_id; //There can be more than one product
          $this->vendor_shipping[$vendors_id]['products_qty'][$products_id] = $quantity; // displays the number of each product being bought

1st error is referring to "Undefined offset: 13" but 13 is the $vendors_id value
perhaps I am wrong but all the issues seem to somehow come from the $vendors_id variable not being recognized correctly

getting close to pulling my hair out, time for a break and fresh eyes later.

for what it is worth, installed a fresh version of frozen, used a file compare program to find all changes in that and the MVS_BSv1.4.3 addon, installed limited shipping options and have never managed to get it to work as of yet

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

2 hours ago, cigarsforless said:

but I have no vendor with id 1

You must have a vendor with id=1. Fix that and try again

Regards

Jim

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

Link to comment
Share on other sites

thanks, will try that and let you know

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

sigh, no change after running sql to add vendor 1 to vendors table

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

Did you patch the filed or just upload the new files from the MVS distro? There may be file version differences between the MVS base and the Frozen version.

Regards

Jim

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

Link to comment
Share on other sites

patched the frozen version

uploaded the new files, and did a file by file compare on files to be changed.

did see some changes in frozen vs mvs distro but they relate to php 7.2 compatibilities such as  

          reset($products[$i]['attributes']);
          while (list($option, $value) = each($products[$i]['attributes'])) {

changes to

foreach($products[$i]['attributes'] as $option => $value) {

but I am running php 7.1 and sql 5.7

Edited by cigarsforless

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

Doh! turns out there was an edit in application_top.php that I missed somehow.
now works like a charm on frozen:biggrin:

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

Glad to hear you found the problem. I've been having computer problems and couldn't look at the files until now. You saved me another dive into that code.

Regards

Jim

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

Link to comment
Share on other sites

  • 9 months later...

does anyone have MVS working on Phoenix?
I have Dimitri's updated version working on Frozen,
mvs-for-v2-3-4-bs-edge
but wondering if there is anyone out there who has it installed on CE Phoenix
With the desire of "no core changes" in Phoenix, I wonder if this is doable.

Is anyone familiar enough with MVS willing to take on paid work to update this essential add-on to work with CE Phoenix?

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

On 12/11/2019 at 9:42 AM, cigarsforless said:

does anyone have MVS working on Phoenix?
I have Dimitri's updated version working on Frozen,
mvs-for-v2-3-4-bs-edge
but wondering if there is anyone out there who has it installed on CE Phoenix
With the desire of "no core changes" in Phoenix, I wonder if this is doable.

Is anyone familiar enough with MVS willing to take on paid work to update this essential add-on to work with CE Phoenix?

I don't believe this has been done yet, but I also would be interested in this... if and when I upgrade to Phoenix. 

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