Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom infobox?


demon_athens

Recommended Posts

Hi there,

 

I want to have different background for my categories infobox. I use STS ( the latest) and if I change the background to #FFF all infoboxes come with white backround. Can I do something to have different settings for the category box only? ( no padding, other background e.t.c) ??

 

THank you!

Link to comment
Share on other sites

It is possible to create templates for individual infoboxes. For example, if you want the “Information” infobox to be different from the others, create a separate template for this infobox by creating the following files:

/includes/sts_templates/TEMPLATE_NAME/boxes/infobox_information_header.php.html (optional)

/includes/sts_templates/TEMPLATE_NAME/boxes/infobox_information.php.html

 

Include the name of the infobox template in the filename in the following format:

infobox_infoboxname.php.html

 

I also tried that but didn't work. I created a file infobox_categories.php.html and nothing changed to the look of the categories infobox... Any ideas?

Link to comment
Share on other sites

If I understood correctly you are not a fun of STS templating. ( I wonder why). I am really new to this, I am trying to figure out what is the most efficient way to work with oscommerce if you want to have design freedom, that why I am trying to figure out STS.

 

My problem remains, the solution you said is for a non STS oscommerce installation. ( and its indeed very simple)

Link to comment
Share on other sites

No, you've got a point here. I don't know about BTS, I 'll google it.

 

Anyway I solved it. Apparently I was "calling" with the wrong "name" ( I wonder what is the correct one), So I made with css the background I needed and I created the 3 other infoboxes with the white background. I know its too much efford for such a rather easy task but it is a solution :)

 

So... here is my custom -> result.

 

Thank burt for your help

 

p.s.: I an so new to all this that I don't have likes and dislikes about modules. :)

Link to comment
Share on other sites

  • 1 month later...
Hi there,

 

I want to have different background for my categories infobox. I use STS ( the latest) and if I change the background to #FFF all infoboxes come with white backround. Can I do something to have different settings for the category box only? ( no padding, other background e.t.c) ??

 

THank you!

 

 

I also tried that but didn't work. I created a file infobox_categories.php.html and nothing changed to the look of the categories infobox... Any ideas?

 

I have a similar problem to what demon_athens faced.

 

In my visual design template, I need to display the $header and $content in language box, currency box and shopping cart horizontally (2 columns); instead of the original template boxes that display $header and $content in 2 rows.

 

If I tweaked the infobox.php.html in the folder [boxes], other "boxes" that share the same template file will be affected too.

 

In this case, the problem can be solved if I can tell STS to use another template boxes for the "language box", "currency box" and "shopping cart box"

 

Are there any solutions to this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...