Post by theking1987 » Wed Mar 29, 2017 9:53 pm

Hello

Can anyone tell me how i can put text like a telephone number and mail adress under the search bar in the default template?
I use OpenCart 2.3.0.2

Newbie

Posts

Joined
Thu Mar 09, 2017 5:28 am

Post by sachin6609 » Thu Mar 30, 2017 2:40 pm

theking1987 wrote:
Wed Mar 29, 2017 9:53 pm
Hello

Can anyone tell me how i can put text like a telephone number and mail adress under the search bar in the default template?
I use OpenCart 2.3.0.2
Hii

You can the phone number under the search box in header by editing the header.tpl under the search box div

Thanks
Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by theking1987 » Tue Apr 04, 2017 6:30 pm

sachin6609 wrote:
Thu Mar 30, 2017 2:40 pm
theking1987 wrote:
Wed Mar 29, 2017 9:53 pm
Hello

Can anyone tell me how i can put text like a telephone number and mail adress under the search bar in the default template?
I use OpenCart 2.3.0.2
Hii

You can the phone number under the search box in header by editing the header.tpl under the search box div

Thanks
Sachin
Thank you for your reaction.
Can u tell me a bit more how to do it and wich php code to use etc.?
I am a beginner with php.

Newbie

Posts

Joined
Thu Mar 09, 2017 5:28 am

Post by sachin6609 » Wed Apr 05, 2017 7:42 pm

theking1987 wrote:
Tue Apr 04, 2017 6:30 pm
sachin6609 wrote:
Thu Mar 30, 2017 2:40 pm
theking1987 wrote:
Wed Mar 29, 2017 9:53 pm
Hello

Can anyone tell me how i can put text like a telephone number and mail adress under the search bar in the default template?
I use OpenCart 2.3.0.2
Hii

You can the phone number under the search box in header by editing the header.tpl under the search box div

Thanks
Sachin
Thank you for your reaction.
Can u tell me a bit more how to do it and wich php code to use etc.?
I am a beginner with php.
Hello

Open the header.tpl from below location

catalog / view / theme / default (YOUR_THEME_FOLDER_IF_YOU_USE_ANY_THEME) / template / common then open the header.tpl file

Then serach for the below code in the file

<div class="col-sm-5"><?php echo $search; ?></div>

and replace that code with the below one

<div class="col-sm-5"><?php echo $search; ?>Tel: xxxx(Your Telephone Number Goes here)</div>

Take the file back up first and try hope you can do it

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by theking1987 » Fri Apr 07, 2017 6:59 am

sachin6609 wrote:
Wed Apr 05, 2017 7:42 pm
theking1987 wrote:
Tue Apr 04, 2017 6:30 pm
sachin6609 wrote:
Thu Mar 30, 2017 2:40 pm


Hii

You can the phone number under the search box in header by editing the header.tpl under the search box div

Thanks
Sachin
Thank you for your reaction.
Can u tell me a bit more how to do it and wich php code to use etc.?
I am a beginner with php.
Hello

Open the header.tpl from below location

catalog / view / theme / default (YOUR_THEME_FOLDER_IF_YOU_USE_ANY_THEME) / template / common then open the header.tpl file

Then serach for the below code in the file

<div class="col-sm-5"><?php echo $search; ?></div>

and replace that code with the below one

<div class="col-sm-5"><?php echo $search; ?>Tel: xxxx(Your Telephone Number Goes here)</div>

Take the file back up first and try hope you can do it

Thanks

Sachin
Thanks for the reaction and the good description.
I have replaced the code and uploaded it back to the server but on the website nothing changed.
So i dont know why?

Newbie

Posts

Joined
Thu Mar 09, 2017 5:28 am

Post by sachin6609 » Fri Apr 07, 2017 1:41 pm

theking1987 wrote:
Fri Apr 07, 2017 6:59 am
sachin6609 wrote:
Wed Apr 05, 2017 7:42 pm
theking1987 wrote:
Tue Apr 04, 2017 6:30 pm


Thank you for your reaction.
Can u tell me a bit more how to do it and wich php code to use etc.?
I am a beginner with php.
Hello

Open the header.tpl from below location

catalog / view / theme / default (YOUR_THEME_FOLDER_IF_YOU_USE_ANY_THEME) / template / common then open the header.tpl file

Then serach for the below code in the file

<div class="col-sm-5"><?php echo $search; ?></div>

and replace that code with the below one

<div class="col-sm-5"><?php echo $search; ?>Tel: xxxx(Your Telephone Number Goes here)</div>

Take the file back up first and try hope you can do it

Thanks

Sachin
Thanks for the reaction and the good description.
I have replaced the code and uploaded it back to the server but on the website nothing changed.
So i dont know why?
Hii

Can you share the site url please

Thanks
Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by theking1987 » Fri Apr 07, 2017 11:06 pm

sachin6609 wrote:
Fri Apr 07, 2017 1:41 pm
theking1987 wrote:
Fri Apr 07, 2017 6:59 am
sachin6609 wrote:
Wed Apr 05, 2017 7:42 pm


Hello

Open the header.tpl from below location

catalog / view / theme / default (YOUR_THEME_FOLDER_IF_YOU_USE_ANY_THEME) / template / common then open the header.tpl file

Then serach for the below code in the file

<div class="col-sm-5"><?php echo $search; ?></div>

and replace that code with the below one

<div class="col-sm-5"><?php echo $search; ?>Tel: xxxx(Your Telephone Number Goes here)</div>

Take the file back up first and try hope you can do it

Thanks

Sachin
Thanks for the reaction and the good description.
I have replaced the code and uploaded it back to the server but on the website nothing changed.
So i dont know why?
Hii

Can you share the site url please

Thanks
Sachin
Its working now i had to remove the cache from the site.
Thank you very much for your help!!
U can see it at www.opelonderdelenshop.nl

Newbie

Posts

Joined
Thu Mar 09, 2017 5:28 am

Post by sachin6609 » Sat Apr 08, 2017 6:27 pm

8) 8)

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by FortuneKart » Mon Oct 04, 2021 6:43 pm

Hi,
OpenCart Version 2.3.0.2
public_html/catalog/language/en-gb/common/search.php
Find below:
<?php
// Text
$_['text_search'] = 'Your Texct';

Newbie

Posts

Joined
Mon Oct 04, 2021 6:35 pm
Who is online

Users browsing this forum: No registered users and 45 guests