Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Location
    Alameda, CA
    Posts
    38
    Plugin Contributions
    0

    Default not able to add items to cart from category page with “add all items to cart"

    Currently, when a customer goes to a product category, such as
    https://www.beadinspirations.com/rak...-104_1040.html
    if they put a 1 in the add quantity box and then click "add all items to cart", the item does not get added to the shopping cart. A security warning pops up that says "The information you have entered on this page will be sent over an insecure connection and could be read by a third party. Are you sure you want to send this information?" If you hit continue, then the page refreshes, and the url changes to https://www.beadinspirations.com/rak...oduct&sort=20a. But nothing gets added to the shopping cart.

    If you click on the product itself, such as https://www.beadinspirations.com/cer...ve-p-5764.html, then when you click to add the item to the cart, it actually does add the item to the cart.

    Possibly related is the fact that there are many pages where there are images added to the product description that are http:// instead of https:// These images do not get converted to https: and then I don't get a cute little green padlock next to the URL bar, but instead get the ominous yellow triangle, with "Connection is not Secure" warning. An example of a page where this occurs: https://www.beadinspirations.com/ama...c-231_829.html

    My public_html/admin/includes/configure.php has:
    Code:
     define('HTTP_SERVER', 'https://www.beadinspirations.com');
      define('HTTPS_SERVER', 'https://www.beadinspirations.com');
      define('HTTP_CATALOG_SERVER', 'http://www.beadinspirations.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.beadinspirations.com');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'true');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'true');
    and the public_html/includes/configure.php has:
    Code:
      define('HTTP_SERVER', 'http://www.beadinspirations.com');
      define('HTTPS_SERVER', 'https://www.beadinspirations.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    I previously had an issue with getting "Whoops! Sorry, but you are not allowed to perform the action requested." I thought that I had resolved it, as posted in this thread:

    https://www.zen-cart.com/showthread....oducts+to+cart

    This was supposedly resolved when we changed the .htaccess file from this code:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www.beadinspirations.com$
    RewriteRule ^(.*)$ http://www.beadinspirations.com/$1 [R=301]
    to:
    Code:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.beadinspirations.com/$1 [R=301,L]
    With that code re-write, the Whoops problem went away. I'm not sure if this new problem started occurring at that time (Feb), or in May when I switched to a secure server at hostmonster.

    PHP Version: 5.4.43
    Database: MySQL 5.5.42
    Server Host: host265.hostmonster.com (74.220.215.65)

    Can someone please help solve this problem? Thanks in advance!

    Vicki

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

    Default Re: not able to add items to cart from category page with “add all items to cart"

    Given that it appears you're trying to run your entire site under SSL, perhaps changing this to https would help:


    Quote Originally Posted by vickilapp
    and the public_html/includes/configure.php has:
    Code:
      define('HTTP_SERVER', 'https://www.beadinspirations.com');
    .

    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 2007
    Location
    Alameda, CA
    Posts
    38
    Plugin Contributions
    0

    Default Re: not able to add items to cart from category page with “add all items to cart"

    Yay!
    I can't believe it was that easy. Made the change and now I can add items from product listing to shopping cart. Thank you!

    This change didn't make any difference for the "Connection is Not Secure" issue, where there are http: images in the product descriptions and category descriptions throughout the site. Is there an "easy" way to convert all the http: images to https: images?

    Examples:
    https://www.beadinspirations.com/vin...190-p-686.html
    and
    https://www.beadinspirations.com/ear...c-232_216.html

    Thanks in advance!

    Vicki

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: not able to add items to cart from category page with “add all items to cart"

    Really depends on how the image path is pulled or generated. If it is hard coded in your description(s), then four options, either change it to https in the code, use a relative path such as images/image_of_choice.jpg, use the default ZC code of zen_image, or if served off site then begin with //servername / folder (if present) / filename

    There's a fifth actually, but involves adding more code to provide the base path of the site and then the path to the image where the base path to the site would use constants defined in the includes/configure.php file.

    Looking at the page source of one page, it appears that the images in question are actually within the product description. So one way is to use SQL to "search and replace" looking for http:yoursite/images/ and replacing for just images/.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Add to Cart not on all items
    By dewragdave in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Apr 2012, 02:45 AM
  2. Add Multiple Items to Cart from Single Product Description Page
    By sjrily in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 25 Jul 2011, 07:00 PM
  3. SSL Issues - not able to add items to the cart
    By dencom in forum Installing on a Windows Server
    Replies: 3
    Last Post: 17 Feb 2011, 12:05 AM
  4. Remove "Add Selected Items to Cart" button at top of page & Disabling links
    By ahuacatlan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jul 2007, 04:04 AM

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