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

Posted

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 :)

Posted

@@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

Posted

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

Posted

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

Posted

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 .

  • 6 months later...
Posted

You can also use font-awesome in the language define

 

define('MODULE_BOXES_CATEGORIES_BOX_TITLE', '<i class="fa fa-something"></i> somename');

 

Doug

Archived

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

×
×
  • Create New...