skykit Posted November 4, 2010 Share Posted November 4, 2010 I have a problem with my page “Add to Cart” the checkout does not goto https. I was enabled the SSL. But in the checkout page click "Next" then the page will go to SSL. Anyone know what the problem is?? Link to comment Share on other sites More sharing options...
mytheory. Posted November 4, 2010 Share Posted November 4, 2010 Hi,So just to clarify... when you add a product to your cart and then press the "Checkout" button on your Cart Block it redirects to an unsecure checkout page?What happens when you add a product and checkout using the checkout link from your header (not using the Cart Block)? And what happens when you just try to log in or register for an account... does it take you to a secure page?If its only the "Checkout" button from the Cart Block then try checking your /modules/blockcart/blockcart.tpl file.Near the end look from something similar to the code below... but make sure you have the {$base_dir_ssl} tag before your button references. {l s='Cart' mod='blockcart'} {l s='Check out' mod='blockcart'} HTH! Link to comment Share on other sites More sharing options...
skykit Posted November 4, 2010 Author Share Posted November 4, 2010 Hi, I got this script is correct compare with yours. This only happen when use the “Add to Cart” the checkout . This is happen in the original theme. Link to comment Share on other sites More sharing options...
mytheory. Posted November 4, 2010 Share Posted November 4, 2010 What do you mean by "Add to cart"... are you talking about the Cart Block or just when you add a product using the "Add to cart" button from the homepage or product list page?And I'm guessing you have an SSL certificate and have that setup correctly on your server, yes? and it's not a shared SSL. Link to comment Share on other sites More sharing options...
skykit Posted November 5, 2010 Author Share Posted November 5, 2010 I mean the “Add to cart” is using the “Add to cart” button from the product page. After click the “Add to cart” button, is redirect me to the http, not https.My SSL certificate is working correctly on my server, and this is not a shared SSL. Link to comment Share on other sites More sharing options...
mytheory. Posted November 5, 2010 Share Posted November 5, 2010 So if a customer clicks on any "Add to cart" button they are automatically redirected to the checkout page? Are you not using a cart block and/or do you have AJAX turned off on your cart?This sounds kind of weird... I would try enabling your cart block and then testing it by turning ON and OFF the AJAX cart option (under modules tab >> Cart Block >> Configure). Also, if you don't plan on using the cart block I would turn off AJAX, I'm not too familiar with AJAX so I don't know but I don't think you can use AJAX without the cart block.We use AJAX for our shop, so when a customers adds a product it gets added to the cart, and then and only when the customer decides to checkout does it redirect them to the checkout page. One thing I did notice a while back during testing was that when you click "Add to Cart" button BEFORE the product page finishes loading it will redirect you to the cart summary page, instead of transferring the product outline to the cart.HTH! Link to comment Share on other sites More sharing options...
skykit Posted November 11, 2010 Author Share Posted November 11, 2010 I have not use the cart block, I only use the "Add to Cart" Botton.When customer click "Add to Cart" Botton" ---> re-direction to "cart summary" but cannot re-direction to "https"My setting:Cart Block: AJAX cart "disable"Re-direction after adding product to cart: "cart summary"I think you can install a fresh prestashop, then follow my config, then you will see the problem. Link to comment Share on other sites More sharing options...
babyewok Posted August 31, 2011 Share Posted August 31, 2011 Did you figure this out? I have exactly the same issue - when set to redirect to the cart summary after adding product to cart, it does not enter https even though ssl is enabled and works fine otherwise Link to comment Share on other sites More sharing options...
janzitniak Posted August 23, 2017 Share Posted August 23, 2017 (edited) Hi guys. I have same problem. On my client's page www.opornepalice.sk the button Add cart (in Slovak it is Do košíka). I set up SSL in Prestashop administration and also .htaccess has been changed to https. My version of Prestashop is 1.6.1.9. Can you help me please? Regards Jan Edited August 23, 2017 by janzitniak (see edit history) Link to comment Share on other sites More sharing options...
modes Posted November 28, 2017 Share Posted November 28, 2017 For everyone with this problem the solution is to edit "product-list.tpl" in your template folder: - find where your link is generated (should be function like $link->getPageLink('cart',false, NULL,[...]) - change "false" to "true" (or NULL to autodetect SSL). Second parameter of "getPageLink" is the one for SSL. You will have to do the same for every other "product" template (sliders, products on main page, etc.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now