Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding icon to infobox header for Responsive-osCommerce-2.3.4-GOLD


hadi2005

Recommended Posts

Hi all , 

 

Sorry for this newbie question . still i'm very beginner for oscommerce .

 

I would like to customize the category box header by adding an icon to it .  

 

I have searched here and there for an answer .. found this guide :

http://oscommerce-template-easy.com/oscommerce-stylesheet-box-header/05-box-header-add-image.htm

 

The problem is that the new version of oscommerce (Responsive-osCommerce-2.3.4-GOLD) is different .

 

For example , i can't find "/includes/box"folder.

 

Can someone help me to do this customization .

 

Thanks in advance :)

Link to comment
Share on other sites

@@hadi2005

 

In the latest version of osCommerce, the name and location of the file you need to edit has changed ...

 

The file you need to change is:  catalog/includes/modules/boxes/templates/categories.php

 

 

Try this ... To use the example in the tutorial,

 

Change this:

<div class="panel-heading"><?php echo MODULE_BOXES_CATEGORIES_BOX_TITLE; ?></div>

to this:

<div class="panel-heading"><?php echo tep_images(DIR_WS_IMAGES . 'flowers.gif') .  MODULE_BOXES_CATEGORIES_BOX_TITLE; ?></div>

Malcolm

Link to comment
Share on other sites

Dear Malclom ,

 

Many thanks for your reply :)

 

this code works great (one small mistake "tep_image" not "tep_images" ) .

 

One more question ..

 

how to change the background color for the same box ... there is no stylesheet.css

 

Thanks again :)

 

Have a nice day

Link to comment
Share on other sites

this code works great (one small mistake "tep_image" not "tep_images" ) .

 

Just a typo, sorry :-

 

 

One more question ..

 

how to change the background color for the same box ... there is no stylesheet.css

 

 

 

For the Responsive-osCommerce-2.3.4-GOLD version, there should be a file called catalog/user.css . You can put any personal style code here. This is called after the 'stock' style sheets, so anything here will override the stock style.

 

Malcolm

Link to comment
Share on other sites

Thanks @Artcolnc ,

 

Sorry for this newbie question :

 

Could you please show me what is the style code that should be placed on user.css to be able to change the background colors for the infoboxes . 

 

Thanks in advance .

Link to comment
Share on other sites

  • 6 months later...

Archived

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

×
×
  • Create New...