Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a set of images to the header


Recommended Posts

Hi

I want to add a set of images with link to different categories to the header like under the search button and logo, which files do I have to modify or add?

I have already added my php files to the following folders but nothing happens, it show in the admin modules and I can install it but nothing else happens.

modules/content/header

modules/content/header.templates

and Languages

 

Any other file I have to adit

 

 

How do I chage this to

 

<div id="storeLogo" class="col-sm-<?php echo $content_width; ?> logo">
  <?php echo '<a href="' . tep_href_link('index.php') . '">' . tep_image('images/' . STORE_LOGO, STORE_NAME) . '</a>'; ?>
</div>

Something like this

<div align="center">
<a href="xxxxxxxxxxxxxxx/index.php/cPath/1_117"><img src=/images/men.jpg" style="width: 32%; margin-right: 0.3%; margin-bottom: 0.5em; border: 0.5px solid grey;"></a>
<a href="http://xxxxxxxxxxx/index.php/cPath/1_118"><img src="/images/women.jpg" style="width: 32%; margin-right: 0.3%; margin-bottom: 0.5em; border: 0.5px solid grey;"></a>
<a href="http://xxxxxxxxxxxxx/index.php/cPath/1_119"><p style="float: left; font-size: 11pt; text-align: center; width: 32%; margin-right: o%; margin-bottom: 2.5em;">KIDS</p></a>
</div>

Many thanks in advance

Mitchell

Link to comment
Share on other sites

Take the time now to understand that you do not change core files. 
f you continue down the path you're going down...there really was little point in making osCommerce modular and you will end up at a place where your osCommerce installation is held together by spagetti (like any old crap 2.3 site).

What you would do is create a NEW module for your needs.  Then turn it on.

Link to comment
Share on other sites

@austcoll

3 hours ago, austcoll said:

Thank you, however to create a NEW module for my needs in the header how many files I have to create and which files I have to edit or modify?

I am not a programmer or developer, but this is how I have figured out how to make the changes I've wanted to my store(s) ...

If I want a new module somewhere (header, footer, boxes, navbar, etc), I look at the existing modules. I will copy and rename one of the existing ones, and see if I can change the copy to do what I want it to do. Only then, after I have tried something and it didn't work, will I ask questions of why it didn't work, and how to fix it.

For example, I just converted a Header module to a Navbar module. It took me a while to work through the conversion and to get things to function. I did have to ask here regarding a couple of issues. But, I now have a better understanding of how things work.

HTH

Malcolm

Link to comment
Share on other sites

7 hours ago, ArtcoInc said:

If I want a new module somewhere (header, footer, boxes, navbar, etc), I look at the existing modules. I will copy and rename one of the existing ones, and see if I can change the copy to do what I want it to do. 

This.  Absolutely this. Even us "coders" do this. 

We find the nearest module that does something a bit similar, copy it, and then fanny about with it until it does what we want it to do.

Link to comment
Share on other sites

3 hours ago, burt said:

This.  Absolutely this. Even us "coders" do this. 

We find the nearest module that does something a bit similar, copy it, and then fanny about with it until it does what we want it to do.

That is how I have made everything in my shop... and when it gets to hard I ask / pay a coder to help

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...