hadi2005 Posted April 7, 2015 Posted April 7, 2015 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 :)
ArtcoInc Posted April 7, 2015 Posted April 7, 2015 @@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
hadi2005 Posted April 7, 2015 Author Posted April 7, 2015 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
ArtcoInc Posted April 8, 2015 Posted April 8, 2015 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
hadi2005 Posted April 8, 2015 Author Posted April 8, 2015 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 .
ArtcoInc Posted April 8, 2015 Posted April 8, 2015 @@hadi2005 Adjust the color as you choose: .panel.panel-default { background-color: red;} Malcolm
ce7 Posted October 11, 2015 Posted October 11, 2015 hi, there is a addons for v2.2 http://addons.oscommerce.com/info/1261 which can modify the infobox details. In the new boostrape version, where do I go to change all these setting, thanks!
douglaswalker Posted October 12, 2015 Posted October 12, 2015 You can also use font-awesome in the language define define('MODULE_BOXES_CATEGORIES_BOX_TITLE', '<i class="fa fa-something"></i> somename'); Doug
Recommended Posts
Archived
This topic is now archived and is closed to further replies.