Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

Add To Cart Popup not accessing CSS File in Google Chrome

bmbukebmbuke Member
in Help edited September 2012
Does anyone know why adding to Cart in Chrome is not able to access popup.css? Everything works fine in all other browsers, just not chrome.

Thanks ahead of time for the help!
Tagged:
Comments
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    It's because popup.css is not on a secure server so you've got mixed content types. You should use the FoxyCart caching and they will cache your cart template for you so everything will be secure.

    The other problem you'll have with Chrome is that for the rest of the session they'll say that there are some insecure elements on the page, even if there really aren't.
  • Great! Sorry to ask this but how do I
    use the FoxyCart caching
    ??
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
  • Thanks I will take a look at that and see if we can figure it out.
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    Basically: take what you put in the cart template box at FoxyCart, put it in golferaid.com/cart.html and then put that url in the caching box. Cache the link, and update your template.
  • Thanks, @sparkweb. I think I have it resolved, the only thing I am not sure about is when you mentioned about Chrome saying that there are some insecure elements on the on the page... are you able to tell if that is still happening? I am browsing the site with https and everything is showing with the green lock and no warnings, seems like it's good to me?

    Thanks so much for your help!!!
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    What you did seems to work fine -- but you didn't really have to get an SSL cert for your site, just cache the popup.css file at FoxyCart and they handle all the SSL for you. Looks like it's fine now, though.
  • bmbukebmbuke Member
    edited September 2012
    We purchased the SSL through foxycart but I am not sure where in the foxycart admin that we we cache the popup.css file?
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    Well the proper way is to setup a file on your server http://golferaid.com/cart_template.html with all the cart template code in it. Then on the admin / template / cart section put that url in the "cart template url" box and click "Cache Your URL". It caches it, secures everything and loads the content in the big box below. Then just click Update and you are all set.
  • fc_adamfc_adam FoxyCart Team
    @bmbuke,

    Just to follow up on what @sparkweb posted:

    You currently have a SSL certificate for your normal domain as well (as well as your FoxyCart store domain). You've specified the stylesheet you've included on your cart template as being https://www.golferaid.com... which is technically fine to do as you do have a valid SSL certificate for your store. The reason you're still getting the insecure warnings is because that stylesheet is referencing images over http://www.golferaid.com.

    You either want to change the reference to the stylesheet to be http:// and let FoxyCart's template cacher securely cache your stylesheet and files or update all of the references to images within the stylesheet to be called over https://

    Does that make sense?

    Also, as sparkweb mentioned, you don't put your FoxyCart cart URL as the remote template in the FoxyCart administration. Instead, that is where you put the URL for where your cart template is stored on your own server. That template is where you have the ^^cart^^ placeholders as part of the markup.
Sign In or Register to comment.