Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2015
    Location
    New Jersey USA
    Posts
    64
    Plugin Contributions
    0

    Default No Green Padlock/https on New Products and All Products links

    Am working on a fresh install/test cart of v155e on a VPS with all my products and customers transferred over from live store. PHP is 7.0 and have Image Handler 4, Lite Box, Edit Order, and Easy Populate installed. Ubuntu 16. Slowly getting it working and customized the way I want.

    Using Webmin/Virtualmin and Lets Encrypt and have forced my VPS site to default to https. Modifying .htaccess to force https always gave a server error so I found that could add the line "Redirect / https://MYSITE.com/" in etc/apache2/sites-available/MYSITE.conf file and that worked great. So far I get the green padlock in Chrome on almost all my pages, however just noticed when I click on New Products, All Products, or Gift Certificate FAQ links on my main page I get no padlock and a mixed content warning (could be on other pages too but these are the only three have found so far and I have looked).

    In Chrome browser Inspect/Console I see warning:

    Mixed Content: The page at 'https://MY_WEBSITE/index.php?main_page=products_new' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://MY_WEBSITE/index.php?main_page=products_new'. This endpoint should be made available over a secure connection.

    index.php?main_page=products_new:346

    <div id="sorter">
    <label for="disp-order-sorter">Sort by: </label>
    <form name="sorter_form" action="http://MY_WEBSITE/index.php?main_page=products_new" method="get"><input type="hidden" name="main_page" value="products_new" /> <select name="disp_order" onchange="this.form.submit();" id="disp-order-sorter">
    <option value="1" >Product Name</option>
    <option value="2" >Product Name - desc</option>
    <option value="3" >Price - low to high</option>
    <option value="4" >Price - high to low</option>

    I tried to track this down using Zen Cart Developer's Tool Kit but it's not as simple as the other things have recently worked out.

    Suggestions and advice appreciated.

    Thanks, Ted

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No Green Padlock/https on New Products and All Products links

    Evidently you're trying to serve your entire site over SSL by forcing SSL, but have left your store configured to NOT serve every page over SSL.

    By default Zen Cart only serves sensitive pages (login/checkout) over SSL. If you want to tell Zen Cart to serve EVERYTHING over SSL, then just configure it as such.

    See https://www.zen-cart.com/content.php...alled-zen-cart, section 3, noting the part that talks about "if you want your ENTIRE site over SSL..."
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2015
    Location
    New Jersey USA
    Posts
    64
    Plugin Contributions
    0

    Default Re: No Green Padlock/https on New Products and All Products links

    Thanks DrByte. I had looked at that page but missed that had to add the extra "s" even though you had it in bold print:

    define('HTTP_SERVER', 'https://www.YOUR_SHOP.com');

    Of course it worked. Glad I posted here. Now I can have dinner.

    Ted

 

 

Similar Threads

  1. Displaying all products and new products listing in column/grid
    By chapagain in forum Templates, Stylesheets, Page Layout
    Replies: 44
    Last Post: 15 Jul 2014, 09:33 PM
  2. New Products and All Products in grids. Help?
    By baykath in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Oct 2011, 07:33 AM
  3. Replies: 2
    Last Post: 24 May 2010, 06:35 PM
  4. Remove New Products and All Products Links
    By RilKen27 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Mar 2009, 05:13 PM
  5. hide right sidebox for products-all and products-new listing
    By Jmus in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 26 Apr 2008, 05:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR