Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buttons


Shazeeb

Recommended Posts

You can not replace category names with buttons, for the simple reason that the category names as shown in the category box are coming from the database and change dynamically as you do changes in the database via your admin. Buttons are images, and they can not be created dynamically in the same way.

 

What you probably want is, to show a listing in the category box, where the category names look like being buttons. In real they are not. It is plain text on a background, so it looks like a button. To do this you need to apply new css rules to the box categories.php and then tweak them in your stylesheet.css.

 

A recommendation is to install "dynamenu", where the hard job is done already, the only thing you would need to do is to make some nice background images to imitate the look of buttons. Search for it in the addons, it will give you even more features and control over the category menu

Link to comment
Share on other sites

You can not replace category names with buttons, for the simple reason that the category names as shown in the category box are coming from the database and change dynamically as you do changes in the database via your admin. Buttons are images, and they can not be created dynamically in the same way.

 

What you probably want is, to show a listing in the category box, where the category names look like being buttons. In real they are not. It is plain text on a background, so it looks like a button. To do this you need to apply new css rules to the box categories.php and then tweak them in your stylesheet.css.

 

A recommendation is to install "dynamenu", where the hard job is done already, the only thing you would need to do is to make some nice background images to imitate the look of buttons. Search for it in the addons, it will give you even more features and control over the category menu

Thank you very much for your help

much appreciated :-)

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