Post by Linux123 » Wed Oct 15, 2014 5:57 pm

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

???

New member

Posts

Joined
Thu Dec 10, 2009 6:10 pm

Post by i2Paq » Wed Oct 15, 2014 6:05 pm

I believe it has been removed.

You need to use the HTML module instead.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Signman » Wed Oct 22, 2014 6:23 am

'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.

Newbie

Posts

Joined
Sun Jul 08, 2012 5:37 am

Post by uksitebuilder » Wed Oct 22, 2014 3:35 pm

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();

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Signman » Thu Oct 23, 2014 7:24 am

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

Newbie

Posts

Joined
Sun Jul 08, 2012 5:37 am

Post by uksitebuilder » Thu Oct 23, 2014 2:38 pm

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.

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Signman » Tue Oct 28, 2014 3:07 am

Does anyone know how to duplicate the html module so we can add back the welcome module per the discussion above?

Newbie

Posts

Joined
Sun Jul 08, 2012 5:37 am

Post by fido-x » Tue Oct 28, 2014 9:17 pm

You could try this as an alternative:
viewtopic.php?f=119&t=133117

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Signman » Wed Oct 29, 2014 1:45 pm

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

Newbie

Posts

Joined
Sun Jul 08, 2012 5:37 am
Who is online

Users browsing this forum: Bing [Bot] and 8 guests