Jump to content
Latest News: (loading..)
Sign in to follow this  
austcoll

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

Edited by austcoll

Share this post


Link to post
Share on other sites

I think I have to change this php file in the /header/templates somehow to suit my new modules!

<div id="storeLogo" class="col-sm-<?php echo $content_width; ?> storeLogo">

 

But what and how and which other files!

Cheers

Share this post


Link to post
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.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
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


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get the latest community-supported responsive "Frozen" release here

Share this post


Link to post
Share on other sites

@austcoll

Also, learn how to use the debugging tools available to you. Most browsers will allow you to right-click on a web page, then select either 'inspect' or 'inspect element'. There is a great deal of debugging information available here!

Malcolm


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get the latest community-supported responsive "Frozen" release here

Share this post


Link to post
Share on other sites

Thank you, that is also what I did but I had a couple of issues which I asked the forum, but I never used debugging before and sure I will do now. Thank you again

Cheers

Share this post


Link to post
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.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×