Author Topic: Items fail to add to cart in https ssl  (Read 2516 times)

Stevejl321

  • Beginner
  • *
  • Posts: 3
Items fail to add to cart in https ssl
« on: January 26, 2015, 23:13:26 pm »
Regardless what option I use in configuration for items to be added to cart, while in https, items fail to add to cart after clicking on "ADD TO CART". I've had various experts investigate the issue and we came to the conclusion that it's a Virtuemart bug which needs to be researched and solved by the developers.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2549
  • VirtueMart Version: 3.2.3
Re: Items fail to add to cart in https ssl
« Reply #1 on: January 27, 2015, 09:13:29 am »
http://forum.virtuemart.net/index.php?topic=79799.0

Quote
Virtuemart bug which needs to be researched and solved by the developers.

You  can also subscribe to Vm support
http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
regards
A

Joomla 3.7.2
php 5.6 + php 7

GJC Web Design

  • 3rd party VirtueMart Developer
  • Hero Member
  • *
  • Posts: 7485
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Items fail to add to cart in https ssl
« Reply #2 on: January 27, 2015, 16:46:15 pm »
Just to add - I manage several completely https VM2 sites and all run flawlessly.. not tested VM3 on https yet
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

rage76

  • Jr. Member
  • **
  • Posts: 89
Re: Items fail to add to cart in https ssl
« Reply #3 on: January 02, 2017, 18:48:39 pm »
I am on latest J3.6 / VM3.0.18

As soon as I enable SSL, the "Continue Shopping / Show Cart" fancybox stop showing and the add to cart stops working.

Please suggest the correct way to enable SSL on entire site without breaking it.


GJC Web Design

  • 3rd party VirtueMart Developer
  • Hero Member
  • *
  • Posts: 7485
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Items fail to add to cart in https ssl
« Reply #4 on: January 02, 2017, 20:18:31 pm »
have u checked your JS console and network tabs of firebug to discover why?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 567
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.2
Re: Items fail to add to cart in https ssl
« Reply #5 on: January 02, 2017, 20:33:53 pm »
Can you share your site link?

rage76

  • Jr. Member
  • **
  • Posts: 89
Re: Items fail to add to cart in https ssl
« Reply #6 on: January 03, 2017, 08:59:05 am »
Hello Jumbo

Here is my site link:

www.techsolute.com

I shall be grateful for your support.

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2120
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Items fail to add to cart in https ssl
« Reply #7 on: January 03, 2017, 14:49:47 pm »
I tested using https://www.techsolute.com/
And it work.
Simply use .htacces to force redirection to https and all should work. You don't need to force it in your Joomla back-end

rage76

  • Jr. Member
  • **
  • Posts: 89
Re: Items fail to add to cart in https ssl
« Reply #8 on: January 03, 2017, 15:55:28 pm »
Hello Studio42

This is what I added to .htaccess

RewriteEngine On
RewriteCond %{HTTPS} OFF
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Plus, I changed the "live site url" to https:// in configuration.php & in Joomla global config, enabled "Force SSL"

Please correct me where I am wrong or what I need to change.

best wishes


Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2120
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Items fail to add to cart in https ssl
« Reply #9 on: January 03, 2017, 16:02:39 pm »

Plus, I changed the "live site url" to https:// in configuration.php & in Joomla global config, enabled "Force SSL"

This is not needed, only the http to https rule in .htaccess

rage76

  • Jr. Member
  • **
  • Posts: 89
Re: Items fail to add to cart in https ssl
« Reply #10 on: January 03, 2017, 17:17:13 pm »
OK, I tried what you suggested and it seems to be working !! You are awesome Studio 42.

I hope this doesn't cause any other problems. Plus, Google product ads require HTTPS. I hope this would be acceptable to them!!

One more question, why are the URLs showing https://techsolute.com/.... instead of https://www.techsolute.com/.... ???

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2120
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Items fail to add to cart in https ssl
« Reply #11 on: January 03, 2017, 17:50:53 pm »
Because you dont forced WWW in .htaccess, you can eg using :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^techsolute.com [NC]
RewriteRule ^(.*)$ https://www.techsolute.com/$1 [L,R=301,NC]

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9085
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Items fail to add to cart in https ssl
« Reply #12 on: January 26, 2017, 00:31:13 am »
No one needs www anylonger, since years. I would also redirect any www to your domain. www is just a subdomain and has no technical background. In the 90s, there was the idea to indicate with www, that a http server runs in on that domain.

ofc besides other conspiracy theories
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

  • Jr. Member
  • **
  • Posts: 89
Re: Items fail to add to cart in https ssl
« Reply #13 on: May 25, 2017, 19:25:56 pm »
Hello again Studio 42

how do I keep the back end (admin) without SSL? Or is it advisable to have SSL enabled for admin too?

Also, should I "enable SSL for sensitive areas" option in Virtuemart? 

GJC Web Design

  • 3rd party VirtueMart Developer
  • Hero Member
  • *
  • Posts: 7485
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Items fail to add to cart in https ssl
« Reply #14 on: May 25, 2017, 22:51:05 pm »
just use ssl every where with the htaccess snippet

"enable SSL for sensitive areas"  is not needed
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation