Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Quote in Cart 2.3.3.4 - Support Thread


Recommended Posts

Hummm....interesting that it won't return to an SSL page...a security feature perhaps?  In any case, I'm glad to hear that you found a solution.

 

Dan

Link to comment
Share on other sites

  • 1 year later...
  • 7 months later...

Sorry to again bring up this 2-year old problem, but ...

 

I had been running my site in a mixed SSL configuration. But, sales have all but died as of late. I'm thinking that it might have something to do with the fact that I am using a pop-up Modal login, and with all of the current browsers alerting (alarming!) users that their login were insecure, people are leaving. So, I'm moving back to a full-time SSL configuration.

 

So, once again, I'm back to this problem with Shipping Quote in Cart is not receiving any quotes from the US Post Office. The spinner just spins and spins and spins ...

 

The shipping module *does* retrieve a valid cost from the Post Office while full SSL, so the problem is only in this Shipping in Cart module.

 

Help!!! Please?

 

Malcolm

Link to comment
Share on other sites

Ok, I *think* I fixed this ...

 

in catalog/includes/modules/shipping_in_cart.php

 

 

around line 98, find

        $.getJSON("' . tep_href_link(FILENAME_SHIPPING_QUOTES) . '", {country:country, postcode:postcode, residential:residential}, function(data){
            $(".loading").hide();
            $(".quotes").html(data.quotes);
            $(".order-totals").html(data.totals);
        });

replace with:

        $.getJSON("' . tep_href_link(FILENAME_SHIPPING_QUOTES,"",$request_type) . '", {country:country, postcode:postcode,
residential:residential}, function(data){
            $(".loading").hide();
            $(".quotes").html(data.quotes);
            $(".order-totals").html(data.totals);
        });

and, around line 119, find:

        $.getJSON("' . tep_href_link(FILENAME_SHIPPING_QUOTES) . '", {country:country, postcode:postcode, residential:residential, shipping:shipping}, function(data){
            $(".order-totals").html(data.totals);
        });

replace with:

        $.getJSON("' . tep_href_link(FILENAME_SHIPPING_QUOTES,"",$request_type) . '", {country:country, postcode:postcode,
residential:residential, shipping:shipping}, function(data){
            $(".order-totals").html(data.totals);
        });

Basically, I've added the $request_type variable to the tep_href_link() call.

 

Please let me know if anyone sees something wrong with this. :-

 

Thanks!

 

Malcolm

Link to comment
Share on other sites

@@Dan Cole

 

@@ArtcoInc

 

Malcolm...did your original mixed content error message also go away?

 

Dan

 

Just following up ...

 

When running full-time SSL, I was receiving the original Mixed Content error message for the Contact Us page. I resolved it here:

 

http://www.oscommerce.com/forums/topic/411091-ssl-bug/

 

But, that still left the Shipping Quote in Cart not working under full-time SSL. I think I fixed that here:

 

http://www.oscommerce.com/forums/topic/396632-shipping-quote-in-cart-2334-support-thread/?p=1756871

(the post just above this one)

 

Both stemmed from the fact that the SSL/NONSSL/$request_type variable was not being passed in the tep_href_link() call.

 

HTH

 

Malcolm

Link to comment
Share on other sites

  • 2 years later...
1 hour ago, stefan1959 said:

Looking for a shipping quote for CE v1, would this work?

It might do but this is a better option, is up to date and is supported by @raiwa

https://apps.oscommerce.com/YLYGm&ship-in-cart-bs-reloaded

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

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