Ajax add to cart not working over SSL/https

Discussion in 'JavaScript' started by Nigel Lew, Mar 24, 2013.

  1. #1
    Hi folks. I have an issue here http://www.aquacig.com

    Essentially, if you add something to the cart with SSL turned on it won't work but it just says error.

    Any thoughts? I am coming down to the wire here lol..

    Nigel
     
    Nigel Lew, Mar 24, 2013 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    FFS, I have answered 2,260 questions, I have asked like 5-10. I have never received an answer in 8 fsking years. This place sucks.
    Nigel
     
    Last edited: Mar 25, 2013
    Nigel Lew, Mar 25, 2013 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Trust me, I know the feeling -- likely it's because when people like you or I have a problem, it's outside most people's scope.

    Are you sure the Ajax request is ALSO being sent as https? that's the only thing I can think of. Remember, when you make a page HTTPS, EVERY request made from it also has to be https. No mixing and matching -- and that includes AJAX.

    Of course with that massive train wreck of "Holy mother of god" scripting, just exactly WHICH ajax isn't working and in what file.

    Though, the constant use of absolute URL's on everything, like this massive disaster of how not to build a website:
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/jqtransform.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/styles.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/widgets.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewards/skin.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewards/catalog.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewardssocial/widgets.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewardssocial/pinterest/modal.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewardssocial/facebook/like.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/rewardssocial/twitter/tweet.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/slider.css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/print.css" media="print" />
    <script type="text/javascript" src="http://www.aquacig.com/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/prototype/prototype.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/lib/ccard.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/prototype/validation.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/scriptaculous/builder.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/scriptaculous/effects.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/scriptaculous/dragdrop.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/scriptaculous/controls.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/scriptaculous/slider.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/varien/js.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/varien/form.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/varien/script.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/varien/menu.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/mage/translate.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/mage/cookies.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/jquery/func.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/jqforms/jquery.jqtransform.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/GoogleAnalyticsPlus/distilled.FirstTouch.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/tbt/rewardssocial/facebook/like/reward.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/tbt/rewardssocial/twitter/tweet/reward.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/tbt/rewardssocial/google/plusone/reward.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/tbt/rewardssocial/pinterest/pin/reward.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/easing/jquery.easing.1.3.min.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/slideshow/jquery.slider.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/js/slideshow/efects.js"></script>
    <link href="http://www.aquacig.com/rss/catalog/new/store_id/1/" title="New Products" rel="alternate" type="application/rss+xml" />
    <link href="http://www.aquacig.com/rss/catalog/special/store_id/1/cid/0/" title="Special Products" rel="alternate" type="application/rss+xml" />
    <link href="http://www.aquacig.com/rss/catalog/salesrule/store_id/1/cid/0/" title="Coupons/Discounts" rel="alternate" type="application/rss+xml" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="http://www.aquacig.com/skin/frontend/default/aquacig/css/styles-ie.css" media="all" />
    <![endif]-->
    <!--[if lt IE 7]>
    <script type="text/javascript" src="http://www.aquacig.com/js/lib/ds-sleight.js"></script>
    <script type="text/javascript" src="http://www.aquacig.com/skin/frontend/base/default/js/ie6.js"></script>
    <![endif]-->
    Code (markup):
    will fight you every inch of the way unless when you go to https you're sure to change all of them -- another reason NOT to waste a ton of bandwidth and use relative url's instead... preferably with a 'down-tree' directory structure -- so you don't have to root (/) or up-tree (../)

    But seriously, 1.2 megabytes of scripting in 34 scripts with 241k of CSS -- for a fixed width layout with px metric fonts? You're kidding, right? Loving that two minute page-load here just to have a site I'm diving for the zoom to read but doesn't scale to fit when zoomed.

    I really pity people that end up with websites like that.

    In any case, make 100% certain that anything and EVERYTHING that calls a URL, including the AJAX, matches your document protocol. Dimes to dollars that's where it's dropping the ball. When in doubt, window.location.protocol is your friend.
     
    deathshadow, Mar 29, 2013 IP
  4. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #4
    Hey, thanks. I managed to flesh that out. On to not loading libs. etc. I don't need running all the time. I didn't code that stuff but its partly a bi product of Magento. Its a bit of mess like that.

    thanks for the input!
    Nigel
     
    Nigel Lew, Mar 29, 2013 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    I thought it looked familiar, but it didn't 'stand out' like Wordpress does. I really wonder how the devil systems like Magento or Wordpress or any of the other systems get away with it.

    Were you able to track down if it was a non https request or not?
     
    deathshadow, Mar 29, 2013 IP