VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pierre on September 28, 2013, 21:44:47 PM

Title: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: pierre on September 28, 2013, 21:44:47 PM
Hello. 

My issue is once you go to view your cart/checkout, it flips to SSL (as it should).  However if you go to continue shopping you never leave SSL, and then if you go an add more products the add to cart button does not function properly.  If you add a product to cart it takes you to a totally unstyled page, with a login box, and a fatal error:

Fatal error: Call to a member function createPriceDiv() on a non-object in /home/pawsgree/public_html/newsite/components/com_virtuemart/views/cart/tmpl/default_pricelist.php on line 161

If I manually change the url from https to http add to cart button works again.

PLEASE HELP!
Title: Re: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: pierre on September 28, 2013, 21:52:54 PM
I just wanted to add, that if nobody knows how to fix this in virtuemart, can anybody tell me how to make a htaccess rule that checks to see if the page is in https if the url contains the string "products" and if it is to redirect to the http version?

I am terrible at regexp
Title: Re: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: Maxim Pishnyak on September 29, 2013, 11:47:20 AM
http://forum.virtuemart.net/index.php?topic=79799
and
Working with https is well described in Security forum section. Did you look there?
Title: Re: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: pierre on September 30, 2013, 04:43:43 AM
Virtuemart 2.0.22
Joomla 2.5.11
PHP 5.3.27

And yes I have tried searching to look for a resolution to my issue. :-[
Title: Re: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: Maxim Pishnyak on September 30, 2013, 06:11:09 AM
Quote from: pierre on September 30, 2013, 04:43:43 AM
And yes I have tried searching to look for a resolution to my issue. :-[
What did you find?
Title: Re: Once site goes SSL if you return shopping it stays, and cart button stop working
Post by: jenkinhill on October 01, 2013, 11:12:34 AM
The fix is here:  http://forum.virtuemart.net/index.php?topic=119168.msg405151#msg405151

Should be included in 2.0.24 (currently in final testing stage).

And see http://forum.virtuemart.net/index.php?topic=118683