How to install a Comodo SSL Seal on my Hikashop store pages

  • Posts: 102
  • Thank you received: 0
6 years 11 months ago #269552

-- url of the page with the problem -- : www.m2820.com
-- HikaShop version -- : 3.0.1

Greetings,

How do I install a Comodo SSL Seal on my Hikashop store pages? They supply the following HTML that needs to go on each page:

code removed by a moderator


Brad

Sunday School Teacher Training
www.m2820.com
Last edit: 6 years 11 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 11 months ago #269557

Hello,

It would be best and easier for you to place such kind of content via a Joomla module or via your template.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 102
  • Thank you received: 0
6 years 11 months ago #269629

Here's what I did that worked:
1. Create a custom HTML module.
2. At the top, add the following:
<head>
• add the SSL Seal script that goes within the Header tags
</head>

<body>
• add the text I want in the module
• add the SSL Seal script that goes within the body tags
</body>

3. Last, add the custom HTML module to the sidebar or wherever you want it. You can see an example of this here:
M28:20 Store SSL Seal Example


Brad

Sunday School Teacher Training
www.m2820.com
Last edit: 6 years 11 months ago by simo90.

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 11 months ago #269635

Hi,

Unfortunately, the reply Jerome made is what I would recommend to have a script in the head and in another one in the body.
If you directly do the modification in the template's index.php, you can directly copy/paste the code where you want it (head, body, etc):
docs.joomla.org/Creating_a_basic_index_file
And with a module, it's still possible. You just have to push the javascript in the head with some Joomla code:
docs.joomla.org/J3.x:Creating_a_simple_m...oping_a_Basic_Module
docs.joomla.org/Adding_JavaScript

Please Log in or Create an account to join the conversation.

  • Posts: 102
  • Thank you received: 0
6 years 11 months ago #269672

OK, but is there a reason I should not do it like I described above? It works and I like doing it that way because I don't have to make the modification again a year or two from now when I change templates. Anytime I modify the template, won't I have to remember to make all these types of modifications again to the new template?


Brad

Sunday School Teacher Training
www.m2820.com

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 11 months ago #269742

Hi,

There is yes.
Your Joomla template already add the head and body tags around the code of the modules and main content on the page. So if you add these tags in your module, you'll end up with invalid HTML on the page. While the page might still display as the browsers are quite arranging with wrong HTML, it doesn't change the fact that it is invalid.
As I explained in my message, you can do this in a module, but you should use the Joomla functions to push the javascript to the head of the page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum