When SSL is enabled my "Check Out Now" page template does not work.

Started by zinco, July 12, 2015, 00:34:58 AM

Previous topic - Next topic

zinco

I am using the latest version of Joomla, VirtueMart 3.0.9, and a site ground template.  I got all pages to work and look good with my template with some hacking of both the virtuemart css and the siteground css.

I purchased an SSL certificate for my site and it is working fine with a green lock.

When I enable "Enable SSL for sensitive areas" I have the following problem.

My problem is that when I click on "Check Out Now" or the "Add/Edit Address information" when the next page comes up it does not seem to be using any template at all.  I am not familiar at all with SSL and https other that it uses encryption to transmit information.

If I disable SSL and click on "Check Out Now" the page appears like I want it to.

Image below with SSL Enabled.  I don't understand why SSL would not use simple css elements???  There is nothing harmful in font elements and so on.



Image below with SSL disabled.  A little font color tweeking to do but it matches the rest of my site and I would like it to look like this.



Anyone have any ideas?

zinco

All the paths in both css files I am using are relative and not absolute BTW.

zinco

I figured it out if anyone else has this problem.

In my templates folder for the template I am using for Joomla there is an index.php file that builds the page. 

In that file (not index.php in the root but index.php in the template folder) change -

<base href="http://altered-angle.com/" />

to <base href="https://altered-angle.com/" />

And

<link rel=img_src href=http://www.altered-angle.com/templates/siteground-j16-42/images/fb-thumb/thumbnail<?php echo $itemid?>.jpg />

to

<link rel=img_src href=https://www.altered-angle.com/templates/siteground-j16-42/images/fb-thumb/thumbnail<?php echo $itemid?>.jpg />

Note-  All I did was add an "s" to the http in the base url for the site.  Now I can run my whole site under SSL https.  This may be able to be done in the global configuration for joomla.  I did not look at that.

This all makes me very happy.

Thank you for such an awesome product.

Studio 42

Hi,
DO you have try :

<base href="<?php echo JURI::root() ?>" />
and
<link rel=img_src href="<?php echo JURI::root() ?>templates/siteground-j16-42/images/fb-thumb/thumbnail<?php echo $itemid?>.jpg" />
because the thumbnail can be relative, if this is set in the template you can use: $this->baseurl
<link rel=img_src href="<?php echo$this->baseurl ?>/templates/siteground-j16-42/images/fb-thumb/thumbnail<?php echo $itemid?>.jpg" />

But in a normal case the base href is set by Joomla, i don't understand why you have to add it ?

Greets,
Patrick

zinco

I am sure I could do it that way.  Or probably change it in the admin panel for Joomla to https for my base href.  It's just that what I did works.  It works using either https or http.

Thanks for input.