Page 1 of 1

Welcome Module

Posted: Wed Oct 15, 2014 5:57 pm
by Linux123
Where is the Welcome module in version 2 its not in modules.. I would like to add a welcome messgae to the home page

Thanks

???

Re: Welcome Module

Posted: Wed Oct 15, 2014 6:05 pm
by i2Paq
I believe it has been removed.

You need to use the HTML module instead.

Re: Welcome Module

Posted: Wed Oct 22, 2014 6:23 am
by Signman
'Easy enough to add an html module, but how do we get the functionality that makes the welcome page message disappear after login? We want the message to only display prior to login. That is a very favorable feature that we will have to overcome in this new version.

Re: Welcome Module

Posted: Wed Oct 22, 2014 3:35 pm
by uksitebuilder
HTML module is already included in OC 2.0

You can do the following to achieve what you want.

edit: catalog/view/theme/default/template/module/html.tpl

replace it's contents with

Code: Select all

<?php if (!$logged) { ?><div>
  <h2><?php echo $heading_title; ?></h2>
  <?php echo $html; ?></div><?php } ?>
edit: catalog/controller/module/html.php

after

Code: Select all

public function index($setting) {
add

Code: Select all

$data['logged'] = $this->customer->isLogged();

Re: Welcome Module

Posted: Thu Oct 23, 2014 7:24 am
by Signman
Thank you sir for the great tip and fast reply.

However your custom coding would then eliminate the html module from any other use correct? In other words after the modification, now you wont be able to have an html module that works like normal (logged in or not) and an html module that works like the old welcome page only until you login? All of your html modules would go away after login correct?

If that is true we solved one problem only to create another one.

can we add another html module to the mix like html module2 something like that?
Oh wait then we could just call it the "Welcome module". ::)

For my b2b site that only takes orders from logged in businesses, this is a big deal the ability to guide them down a path with a welcome message on the home page, up until they register and login.

Thanks for the response.

Signman

Re: Welcome Module

Posted: Thu Oct 23, 2014 2:38 pm
by uksitebuilder
Yes, you are correct.

Looks like a duplication of the HTML module would be your best way forward to be able to still utilise the original module as well.

Re: Welcome Module

Posted: Tue Oct 28, 2014 3:07 am
by Signman
Does anyone know how to duplicate the html module so we can add back the welcome module per the discussion above?

Re: Welcome Module

Posted: Tue Oct 28, 2014 9:17 pm
by fido-x
You could try this as an alternative:
viewtopic.php?f=119&t=133117

Re: Welcome Module

Posted: Wed Oct 29, 2014 1:45 pm
by Signman
THAT IS a SOLUTION!

Thanks all I coded the html module per uksitebuilder's coding and it works perfectly. The HTML module now acts like the old welcome page and disappears once logged in.

Then I loaded the free home page module by fido-x which gives me a better option html module in its place I believe.

This combination appears to give a good result. I will post more if i run into issues. Thanks all for the help. ;D