Jump to content
blucollarguy

Multi_Vendor_Shipping new thread

Recommended Posts

After server migration MVS no longer works. When I click "Checkout" it hangs for a while then finally my browser says "You have chosen to open checkout_shipping.php, how should firefox handle this file?". Typically this error is related to an incorrect configure.php, however I've triple-checked that file. When I disable MVS in the admin side then the checkout works fine. The new server is a slightly newer version of PHP, other than this it's very similar to the old host. Did I forget something simple? Everything else in the shop seems to work. Thanks in advance for any input!

 

Sam

Share this post


Link to post
Share on other sites

Is there a version of this that all of the updates have been rolled into?

 

I'm also having trouble downloading it... my browser doesn't seem to be able to connect to the file.

Share this post


Link to post
Share on other sites

When our server was upgraded from php3 to php4, I had to make a change to a line in the .htaccess file in my www directory, so it would recognize the .php file type as a php file.

It was previously:

AddHandler application/x-httpd-php .php .html .htm

and I had to change it to:

AddHandler application/x-httpd-php4 .php .html .htm

 

I don't know if this will help, because I would think that none of your files would work if that were the problem, but I thought I'd mention it just in case.

 

-Lori-

 

After server migration MVS no longer works. When I click "Checkout" it hangs for a while then finally my browser says "You have chosen to open checkout_shipping.php, how should firefox handle this file?". Typically this error is related to an incorrect configure.php, however I've triple-checked that file. When I disable MVS in the admin side then the checkout works fine. The new server is a slightly newer version of PHP, other than this it's very similar to the old host. Did I forget something simple? Everything else in the shop seems to work. Thanks in advance for any input!

 

Sam

Share this post


Link to post
Share on other sites

Thanks for trying Lori, that didn't seem to do the trick. I assume it's something simple like that. I'm gonna call tech support, again, and see if I can get someone who's knowledgeable with OSC.

 

My new host uses php.ini instead of .htaccess. I don't see any line similar to "AddHandler application...". I've added register_globals = on and that's all I've done.

 

Any other ideas are certainly welcome! If someone wants to tackle this problem I'm happy to pay!!!!

 

Thanks in advance!

 

When our server was upgraded from php3 to php4, I had to make a change to a line in the .htaccess file in my www directory, so it would recognize the .php file type as a php file.

It was previously:

AddHandler application/x-httpd-php .php .html .htm

and I had to change it to:

AddHandler application/x-httpd-php4 .php .html .htm

 

I don't know if this will help, because I would think that none of your files would work if that were the problem, but I thought I'd mention it just in case.

 

-Lori-

Share this post


Link to post
Share on other sites
Thanks for trying Lori, that didn't seem to do the trick. I assume it's something simple like that. I'm gonna call tech support, again, and see if I can get someone who's knowledgeable with OSC.

 

My new host uses php.ini instead of .htaccess. I don't see any line similar to "AddHandler application...". I've added register_globals = on and that's all I've done.

 

Any other ideas are certainly welcome! If someone wants to tackle this problem I'm happy to pay!!!!

 

Thanks in advance!

 

Have you checked the memory allocation on your server?you might have less on the nes server..... do you get an error message in the browser after the php file box? (if so what is it?) i had a similar problem with the batch orders contrib, after a server change, we added an index to the database and it worked a treat.

 

dont know if any of that will be of use...

 

the boffin

Share this post


Link to post
Share on other sites

The only error message is "page cannot be displayed". I got this error once before, and it was due to an invalid line in includes/configure.php. I have checked this file many, many times and it looks fine. I guess I'll just have to turn off the MVS mod and live with inaccurate shipping quotes. :( I really don't know what else to do at this point. Thanks for the effort, much appreciated!!!

 

Sam

 

Have you checked the memory allocation on your server?you might have less on the nes server..... do you get an error message in the browser after the php file box? (if so what is it?) i had a similar problem with the batch orders contrib, after a server change, we added an index to the database and it worked a treat.

 

dont know if any of that will be of use...

 

the boffin

Share this post


Link to post
Share on other sites

I have loaded the MVS shipping estimator and everything seems to be working fine except for the info box that is included on the right column.

 

It seems as if the image is 1 inch above the Estimator box and you can see the text "Get a shipping Quote" border="0"> in that section When you click on either the image or the text, it pulls up the estimator as it should. Below is my columnright.php file. ( only the section involved) and the only other portion was that I installed the estimate_shipping.php file directly from the mod.

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

if ($cart->count_contents() > 0) {

require(DIR_WS_BOXES . 'estimate_shipping.php');

}

 

// Begin Login My Account Box

require(DIR_WS_BOXES . 'loginbox.php');

// End Login My Account Box

 

 

Any help would be appreciated.

 

Brian

Edited by whitmanb

Share this post


Link to post
Share on other sites
I have loaded the MVS shipping estimator and everything seems to be working fine except for the info box that is included on the right column.

 

It seems as if the image is 1 inch above the Estimator box and you can see the text "Get a shipping Quote" border="0"> in that section When you click on either the image or the text, it pulls up the estimator as it should. Below is my columnright.php file. ( only the section involved) and the only other portion was that I installed the estimate_shipping.php file directly from the mod.

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

if ($cart->count_contents() > 0) {

require(DIR_WS_BOXES . 'estimate_shipping.php');

}

 

// Begin Login My Account Box

require(DIR_WS_BOXES . 'loginbox.php');

// End Login My Account Box

 

 

Any help would be appreciated.

 

Brian

 

I'm not using the Shipping Estimator but generally you might want to look at this:

 

The text that is appearing is probably broken html being imorted by loginbox.php or estimate_shipping.php It looks like its part of either a link or an image tag <img etc or <a href etc

 

Try and find the border=0> bit in either of those two files. Look at the source for the compiled web page and see if the "Get a shipping Quote" border="0"> stuff is repeated, once correctly and once incorrectly for example

 

Just a thought on how I would approach looking at the problem.

 

Didgemandu

Share this post


Link to post
Share on other sites

I just installed OSC2.2ms2 with MVS, enhanced specials, and paypal IPN. While testing, I found that if I put an item in the shopping cart, and then went to login, the shopping cart contents disappear and I get a 404 "Page not Available" error, after clicking to login. Then I clicked the back button and found that it had successfully logged me in, even though the page did not display. It's like it only goes through part of the code and freezes up.

 

I have SSL set to "true", and am using a shared certificate on my server. The shopping cart contents disappear as soon as I click to go to a secure page. I've checked and re-checked my configuration files and they seem correct.

 

I've never had this happen with my other installations of OSC2.2ms2. Is there something about the MVS coding that doesn't work with both shared and dedicated SSL links?

 

Or, maybe someone could give me an idea what might be causing this problem.

 

Thanks for any help.

Share this post


Link to post
Share on other sites
I've never had this happen with my other installations of OSC2.2ms2. Is there something about the MVS coding that doesn't work with both shared and dedicated SSL links?

 

Or, maybe someone could give me an idea what might be causing this problem.

 

Thanks for any help.

Nothing in MVS. I've got this running in several stores with shared certs. Are you storing sessions in the database (STORE_SESSIONS in catalog/includes/configure.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
Nothing in MVS. I've got this running in several stores with shared certs. Are you storing sessions in the database (STORE_SESSIONS in catalog/includes/configure.php)?

 

Regards

Jim

 

Hi Jim, Yes I am storing sessions in the database.

Share this post


Link to post
Share on other sites

So much for the obvious. Does it work with MVS turned off? (Admin > Configuration > My Store > Use vendor shipping?)

 

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
So much for the obvious. Does it work with MVS turned off? (Admin > Configuration > My Store > Use vendor shipping?)

 

Regards

Jim

 

 

I turned the MVS off, (I found it under Configuration > Shipping/Packaging > Enable Vendor Shipping) and it still loses the shopping cart contents when I click the checkout button, and I still get the 404 error upon logging in. <_<

 

I have another installation of OSC2.2ms2 without the MVS, that does the checkout correctly, and I compared the files involved (login.php, checkout_shipping.php, application_top.php) and they are identical except for the MVS additions. Both installations are on the same server, so it can't be a server issue. I just cannot figure this problem out.

Share this post


Link to post
Share on other sites

If you still have the problem after turning MVS off, then MVS is not the problem. It sounds like you are losing session when logged in. I would check the sessions functions and class for modifications. This is probably a conflict with one of the other mods you have added, so check those. Be careful if you are using a version of osCommerce later than 2.2MS2 as the base, since that's what all of the MVS files are based on. Any mods should be done by hand rather than substituting files. This may or may not be the case with other mods.

 

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
If you still have the problem after turning MVS off, then MVS is not the problem. It sounds like you are losing session when logged in. I would check the sessions functions and class for modifications. This is probably a conflict with one of the other mods you have added, so check those. Be careful if you are using a version of osCommerce later than 2.2MS2 as the base, since that's what all of the MVS files are based on. Any mods should be done by hand rather than substituting files. This may or may not be the case with other mods.

 

Regards

Jim

 

The only other mods I added are the paypal IPN and enhanced specials, which did not require any replacing or modifying of existing files. I used a clean install of 2.2ms2 and copied the MVS files over the existing ones as instructed in the readme. I applied the mvs.sql to the database after ms2 install. I deactivated the paypal IPN and used the pre-installed paypal mod, but no change in behavior.

 

I'm not logged in when it loses the shopping cart contents. It happens when I am redirected to the login page, upon checkout. It goes from a non-https page to an https page and that's when it disappears. I checked all my session and cookie settings and can't find any problems.

 

Here's a link to my store if you would like to see what it is doing http://smartshopplus.com/discountshop

 

Still searching for answers...

Any other suggestions?

 

Thank you so much for your help!

Share this post


Link to post
Share on other sites

FireFox is reporting that site as forged/hacked. I suspect there is something wrong with your SSL cert or the setup. Contact your service provider for help.

 

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
FireFox is reporting that site as forged/hacked. I suspect there is something wrong with your SSL cert or the setup. Contact your service provider for help.

 

Regards

Jim

 

Wow! I don't know how you got that with Firefox. I just tried it with Firefox and it says the security cert is good, is verified by the USER TRUST Network and lets me view it.

 

The only difference using Firefox, was that when I logged in, it tried to send me to index.php instead of login.php.

 

Do you mind my asking where it shows the forged/hacked info, or what browser settings you may have that show that in Firefox? I can't have that happening once I get the shop going! I really appreciate your input. Thanks!

 

As far as my MVS installation, I think I'll do another installation from scratch again, but check it first before adding any mods, and again after each mod. Maybe I can find what's causing the problem that way, without wasting your time. It appears that the problem is more than likely not with MVS, according to what you have told me.

 

Thanks so much! You've been great Jim!

Share this post


Link to post
Share on other sites

Here's a screenshot of what I get. This is with FireFox 3.0 on Win2k, all security settings turned on. Yes, I'm fairly paranoid, especially on Windows. My Linux box is in pieces right now, so I have no way to test this with a different version.

 

It does let me bypass the alert, so I took a quick look. If I try to log in, it tries to send me to https://secure.uslis.com/discountshop/cookie_usage.php which returns a 404. The Create an Account page comes up, and it let me create an account, so it's not all of the SSL pages. Weird. After creating an account, the login page comes up just fine, even if I log out again. Double weird. However, after logging in it attempts to send me to https://secure.uslis.com/discountshop/index.php, which again fails with a 404 Not Found.

 

There's definitely something wrong with your SSL, and it's not just session handling. I've run out of ideas here. Good luck with this one, and please let us know when you figure it out.

 

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

hello i am trying to get the default usps shipping module to work for mvs just dropped mvs 1.1 in and i get these errors after i set up usps module

Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_USPS_INSURE_ in /xxx/catalog/includes/modules/vendors_shipping/usps.php on line 177

 

the link to the file is here so as to keep the message board cleaner

http://pastebin.com/m3c96d3d6

Share this post


Link to post
Share on other sites

You have $this->insure defined twice: Once in the class constructor (Line 28) and again in a method (Line 98ff). That's going to mess things up. You need to remove everything from the class constructor that you have defined in methods or elsewhere.

 

The problem that is causing this error message is a failure to pass $vendors_id. There's a typo on Line 178 ($vendors_is) that is causing at least one problem. There may be others.

 

I like this tool you're using to show the code. Much more convenient than copying code from the forum and pasting it in my editor to look at it. I'll have to remember that one.

 

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
You have $this->insure defined twice: Once in the class constructor (Line 28) and again in a method (Line 98ff). That's going to mess things up. You need to remove everything from the class constructor that you have defined in methods or elsewhere.

 

The problem that is causing this error message is a failure to pass $vendors_id. There's a typo on Line 178 ($vendors_is) that is causing at least one problem. There may be others.

 

I like this tool you're using to show the code. Much more convenient than copying code from the forum and pasting it in my editor to look at it. I'll have to remember that one.

 

Regards

Jim

 

 

Jim,

 

Ive been reading up on this MVS as I was told would be what Im looking for and it seems you are pretty knowledgable with it so I have a few questions if you dont mind....if anyone can answer or assist as well would be great.

 

I am currently using CRE Loaded B2B 6.2 (11) and was told if I install the OSC version its going to be a challenge is it possible or does anyone know or had good experience with adding this feature on CRE??? Im know very little about coding!

 

Basically what Im looking for is the ability to ship products from my suppliers from the West and East Coast and try to get the shipping close to the cost as possible.

 

Can this be done???

 

Thanks

Share this post


Link to post
Share on other sites

I believe that it can be done. CRE Loaded is just osCommerce with a bunch of contributions and other mods added in. The problem with this is that a lot of the files will be quite different due to the other modifications that have already been made. Also, I believe that it has a templating system included, and those tend to move code off into the template files, so you have to track down the file that the code is now in to modify it. It's going to be a big project. I suspect that you will learn quite a bit about the code in the process of making this change.

 

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
I believe that it can be done. CRE Loaded is just osCommerce with a bunch of contributions and other mods added in. The problem with this is that a lot of the files will be quite different due to the other modifications that have already been made. Also, I believe that it has a templating system included, and those tend to move code off into the template files, so you have to track down the file that the code is now in to modify it. It's going to be a big project. I suspect that you will learn quite a bit about the code in the process of making this change.

 

Regards

Jim

 

 

Thanks for the reply. Since I so novice I doubt this will be a project I will take on, well at least for now since Im still learning web design, php, js, etc. This as is was a big project for me and dont know if I will be able to handle another project like this especially since your telling me its definetly going to be challenging.

 

Do you know of any good recommendations for someone who can assist with this if it comes down to the last resort and I need this functionality?

 

Thanks,

johnny

Share this post


Link to post
Share on other sites
Here's a screenshot of what I get. This is with FireFox 3.0 on Win2k, all security settings turned on. Yes, I'm fairly paranoid, especially on Windows. My Linux box is in pieces right now, so I have no way to test this with a different version.

 

It does let me bypass the alert, so I took a quick look. If I try to log in, it tries to send me to https://secure.uslis.com/discountshop/cookie_usage.php which returns a 404. The Create an Account page comes up, and it let me create an account, so it's not all of the SSL pages. Weird. After creating an account, the login page comes up just fine, even if I log out again. Double weird. However, after logging in it attempts to send me to https://secure.uslis.com/discountshop/index.php, which again fails with a 404 Not Found.

 

There's definitely something wrong with your SSL, and it's not just session handling. I've run out of ideas here. Good luck with this one, and please let us know when you figure it out.

 

Regards

Jim

 

 

Hi Jim,

It was the Paypal IPN mod that was causing the problem. I found out that it skips the checkout_shipping.php page, which of course has necessary MVS code in it. Deactivating it wasn't enough. I had to completely remove it, then it all worked fine.

 

I'm thinking of trying the Linkpoint API, but suppose I would run into the same problem. Do you have any plans to do a MVS modification for the linkpoint API?

 

The reason I ask is because there's an inherent problem with the Paypal mod that comes built into OSC, and my only other option other than using the IPN version, is to use Linkpoint.

 

Best wishes,

codekitten

Share this post


Link to post
Share on other sites

Thanks for letting me know what the problem is. I don't know if Linkpoint takes over shipping the way PayPal does. If it does, you will indeed have the same problem. I have no experience with that module so I can't say for sure. Perhaps someone here has used it and can give you more information.

 

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

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

×