Jump to content

“Add to Cart” the checkout does not goto https


Recommended Posts

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

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

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

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

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

  • 9 months later...
  • 5 years later...

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 by janzitniak (see edit history)
Link to comment
Share on other sites

  • 3 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...