Post by artiman » Sun Apr 16, 2017 8:19 am

Hello
I am not sure if this the right place but this seems to me the right section if not please move the topic :)

I need to include a html file to the home page site and i try to do it with the include file what is work fine under the category section

i have add the language defination in catalog\language\english\product\product.php

Code: Select all

$_['text_my_info']   		   = './info_eng.html';
and also in the second language the same defination with another link

after i add under catalog\view\theme\default\template\product\product.tpl

Code: Select all

	</div>
	</div>
			  <?php include ($text_my_info); ?>
			  <div class="container">
<div>
and it works perfect when you select the other language it display the second link but i can't find a way to add the same at the home page
at the home page is the problem that the variable "text_my_info" are not exist
i trying all the files under the language to add the defination but without any luck
if anyone can direct me to which file in the language directory need to add the defination would be really great
Thanks

Newbie

Posts

Joined
Thu Mar 31, 2016 5:41 am

Post by labeshops » Fri Apr 21, 2017 10:59 pm

You also need to ad the variable to the controller file for the home page.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by artiman » Sat Apr 22, 2017 10:37 pm

@labeshops
thats the problem but i can't find the file where do i need to add the variable :( would be great if you can me point to which file i need to add the variable

Newbie

Posts

Joined
Thu Mar 31, 2016 5:41 am

Post by artiman » Tue Apr 25, 2017 9:06 pm

Found it thanks :)

Newbie

Posts

Joined
Thu Mar 31, 2016 5:41 am
Who is online

Users browsing this forum: No registered users and 16 guests