Post by osubat » Thu Jul 21, 2016 11:48 pm

Hello Can anyone tell me where "Company Information" and "Our Email" labels are generated from?

http://costinlondon.com/site/index.php? ... on/contact

I've looked in the contact.tpl and contact.php but cannot find any reference to these heading and can't see where they're from.

Thanks

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 12:06 am

By viewing the view source on your browser, you can easily track those items:

Company:

Code: Select all

<strong style="margin-bottom: 5px;">Company Information:</strong><br />
Email:

Code: Select all

<b>Our Email: </b><br />
From your catalog/view/theme/<your_theme>/template/information/contact.tpl file. This can also have some variety between the v2.x releases that uses the locations and prior versions that did not have the locations feature.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 12:24 am

Thanks for getting back,

I've been editing contact.tpl as pointed out, but there is no reference to those titles, seems to be generating it from elsewhere.

Could it be another language file other than contact.php?

Thanks

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 12:28 am

In the admin - > systems - > settings - > edit store page, see what your theme folder is selected to. Then, on your FTP / File Manager, you need to go to your: catalog/view/theme/<your_theme>/template/information/contact.tpl file where <your_theme> would be the actual folder name you'd need to go to edit your content on the contact page.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 12:37 am

Thanks again,

Yes that is the file I've been editing, it's in the correct place and I have already done changes to it which have worked, but for some reason the two titles I mentioned do not appear in this file, I've even deleted the <div class="right"> where I thought the titles appeared but one of them, "company information" is still appearing.

Only thing I can think of is to delete all of it and add my changes to the actual file rather than having it picked up from the admin side.

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by osubat » Fri Jul 22, 2016 12:40 am

This is the code in question:

Code: Select all

 <h4><?php echo $heading_title; ?></h4>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
  	<div class="row-fluid">
  		<div class="span4">
    <!--<h2><?php echo $text_location; ?></h2>-->
    <div class="contact-info well">
      <div class="content"><div class="left"><!--<b><?php echo $text_address; ?></b><br />-->
        <?php echo $store; ?><br />
        <?php echo $address; ?></div>
      
    <!--    <div class="right">
      <?php if ($telephone) { ?>
      <b><?php echo $text_telephone; ?></b><br />
        <?php echo $telephone; ?><br />
        <?php } ?>
        
        <?php if ($fax) { ?>
        <b><?php echo $text_fax; ?></b><br />
        <?php echo $fax; ?>
        <?php } ?>
      </div>-->
    </div>
    </div>
    	</div>
As you see I've blanked out a few elements

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 12:46 am

If you clear the OC cache, navigation history, close your browser, return to the page. Do you then see the changes?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 12:49 am

Yes it's all still there, I can't figure out where it's being generated from.

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 12:54 am

Are you using any extensions on your store?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 1:41 am

Yes a couple of them, but for the products nothing for any other operation.

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 1:45 am

osubat wrote:Yes a couple of them, but for the products nothing for any other operation.
Switch back to the default template. Are you able to make definitions to the contact.tpl's default template and see the changes afterwards?

Note: Ensure to delete the system/cache folder also, not only your browser cache.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 1:59 am

It's quite a heavily modified template, so nothing appears when I switch the template back to default.

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 2:05 am

osubat wrote:It's quite a heavily modified template, so nothing appears when I switch the template back to default.
The default template should appear on the store-front end when choosing the default template from the admin settings. If you only notice a blank page from your store-front end, ensure that the default template is entirely upload in your catalog/view/theme/default and their sub-folders and not to use the default theme as your custom theme folder.

In your admin - > systems - > error log page, do you see any recent errors (by date and time) regarding the default theme folder?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 2:14 am

2016-07-21 18:56:35 - PHP Notice: Error: Could not load template /home/costinco/public_html/site/catalog/view/theme/default/template/module/ecslideshow.tpl! in /home/costinco/public_html/site/vqmod/vqcache/vq2-system_engine_controller.php on line 90

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 2:26 am

You have uploaded extensions which uses the theme folder but did not uploaded those additional theme files into the catalog/view/theme/default/template/module folder but only in your catalog/view/theme/<your_theme>/template/module folder. This error message indicates missing additional files from the default folder compared to the custom theme folder.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 2:39 am

Thanks, have got the default template up now, but still having the same issue, "company information" label still appears

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by osubat » Fri Jul 22, 2016 2:43 am

I think it has something to do with

Code: Select all

<?php echo $address; ?>
As I commented it out and the label has gone, but also the address isn't picked up.

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by osubat » Fri Jul 22, 2016 2:46 am

I don't know how it's happened but it appears to have gone now!

I commented it out, then uploaded and then un commented it, uploaded again and it no longer appears.
That quite strange?

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm

Post by straightlight » Fri Jul 22, 2016 2:54 am

osubat wrote:I don't know how it's happened but it appears to have gone now!

I commented it out, then uploaded and then un commented it, uploaded again and it no longer appears.
That quite strange?
This normally happens on the FTP software client you might be using. The integrated editors are not the most suggested to use. I personally use related editors from my OS and when I save the files, it gets automatically re-uploaded.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by osubat » Fri Jul 22, 2016 3:43 am

Great thanks for the advice, I'll probably get text wrangler or similar, using dreamweaver at the moment.

Thanks for all your help

New member

Posts

Joined
Mon Jul 28, 2014 4:12 pm
Who is online

Users browsing this forum: No registered users and 19 guests