Post by Mikah » Wed Mar 21, 2018 12:51 am

Hello friends, I own two different opencart stores located in two different servers and domains. I'm trying to add an image to the header of a category as shown here:
Image
I know the image is loaded from here
Image

But trying to do the same in my other site shows no results at all
Image

DISREGARDING THE CUSTOM THEME, what file is normally responsible for handling this change in vanilla opencart?. I have basic knowledge of HTML, and I've already made custom changes to Opencart editing files directly, so I might be able to reverse the changes done replacing or rewriting the file. I just need to know which one it is.

I'm using Opencart 2.0.3.1 with the custom theme Blackdiamond.
Last edited by Mikah on Wed Mar 21, 2018 1:37 am, edited 3 times in total.

New member

Posts

Joined
Sun May 17, 2015 1:19 am

Post by IP_CAM » Wed Mar 21, 2018 4:04 am

Well, it's probably not a BlackDiamond Theme related problem, as it looks,
exept, if you use additional Extensions, possibly doing some harm...

Ernie
---
Image

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Mikah » Wed Mar 21, 2018 4:44 am

IP_CAM wrote:
Wed Mar 21, 2018 4:04 am
Well, it's probably not a BlackDiamond Theme related problem, as it looks,
exept, if you use additional Extensions, possibly doing some harm...
Ernie
I suspect it is not a problem with BlackDiamond Theme since both sites have it installed and one is working and the other isn't.

I believe the problem is related to a modified custom file. I've already pored through the "category.tpl" files trying to find a line related to the description field, but no luck so far, I'm not sure if there are other files I should be poking. I understand the basics of how an Opencart site is built and where things are in general, but my area of expertise is more related to design so I'm struggling with this.

Thank you for your response, really appreciate it.
Last edited by Mikah on Wed Mar 21, 2018 5:12 am, edited 1 time in total.

New member

Posts

Joined
Sun May 17, 2015 1:19 am

Post by IP_CAM » Wed Mar 21, 2018 4:53 am

It's this section in the file, release-dated 9.10.2015, containing
the Cat Image and the Decription:
category.tpl content:

Code: Select all

      <h2><?php echo $heading_title; ?></h2>
      <?php if ($thumb || $description) { ?>
      <div class="row">
        <?php if ($thumb) { ?>
        <div class="col-sm-2"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" /></div>
        <?php } ?>
        <?php if ($description) { ?>
        <div class="col-sm-10"><?php echo $description; ?></div>
        <?php } ?>
      </div>
      <hr>
      <?php } ?>
      <?php if ($categories) { ?>

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Mikah » Wed Mar 21, 2018 5:33 am

IP_CAM wrote:
Wed Mar 21, 2018 4:53 am
It's this section in the file, release-dated 9.10.2015, containing
the Cat Image and the Decription:
Done! Thank you very much, problem solved.

New member

Posts

Joined
Sun May 17, 2015 1:19 am
Who is online

Users browsing this forum: No registered users and 251 guests