Post by Yanden » Mon May 21, 2018 5:50 pm

Hi all. I have opencart 2.3.0.2 installed and using the latest modules to set up on the home page. My problem is that no matter how many I make and however I name them, they all appear as Latest on the home page. I want each one to have the name I assign it when creating it.

So to explain, using the latest module I click on the + icon and add new latest module. I have created two, one called Computers, one called Nintendo. Both of them show up as Latest on the home page instead of Computers for the first and Nintendo for the second. How can I make it show the individual module names instead of Latest all the time?

Newbie

Posts

Joined
Mon Aug 14, 2017 8:09 pm

Post by yodapt » Mon May 21, 2018 10:14 pm

Which opencart version?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by OSWorX » Mon May 21, 2018 10:37 pm

yodapt wrote:
Mon May 21, 2018 10:14 pm
Which opencart version?
As he wrote:
Yanden wrote:
Mon May 21, 2018 5:50 pm
Hi all. I have opencart 2.3.0.2 installed
Are you using a custom theme?

Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Expert Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Johnathan » Mon May 21, 2018 11:48 pm

This edit should do it:

Code: Select all

IN:
/catalog/controller/extension/module/latest.php

REPLACE:
$data['heading_title'] = $this->language->get('heading_title');

WITH:
$data['heading_title'] = $setting['name'];

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Yanden » Tue May 22, 2018 10:18 am

Thanks Johnathan, will give that a try.

Running default theme.

Newbie

Posts

Joined
Mon Aug 14, 2017 8:09 pm

Post by Yanden » Tue May 22, 2018 10:51 am

Thanks Johnathan, that worked like a charm, exactly what I wanted. Applied the same to the featured module and that works the way I want too. Thank you very much for your help. :)

Newbie

Posts

Joined
Mon Aug 14, 2017 8:09 pm

Post by Johnathan » Tue May 22, 2018 9:38 pm

No problem, glad I could help.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 5 guests