Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Help changing CSS Buttons


roxoride

Recommended Posts

Posted

Hey I installed a Design Pack to make everything CSS. In doing so I got rid of the buttons basic features. I want to change the buttons for Continue, My account, Quick Find, etc. Does anyone know how i can set a basic GIF image instead of the button relying on my stylesheet? The site can be viewed at www.roxorideshop.com

 

Thanks!

Posted
Hey I installed a Design Pack to make everything CSS. In doing so I got rid of the buttons basic features. I want to change the buttons for Continue, My account, Quick Find, etc. Does anyone know how i can set a basic GIF image instead of the button relying on my stylesheet? The site can be viewed at www.roxorideshop.com

 

Thanks!

The default oscommerce method is to use images for buttons rather than CSS... Just revert the code for those buttons back to using the default method rather than using your new method of CSS buttons, and put the appropriate filename for the button image...

 

Richard.

Richard Lindsey

  • 9 months later...
Posted

I have a similar problem and installed the Basic Design Pack which includes - CSS Buttons Everywhere by Tim Elam aka Bigredman74

That contribution replaces all buttons with CSS buttons and I like it. Theres just one problem, I want the "Add to shopping cart" Button (Look here) to be replaced by a graphic and I cant find the file and code I need to add. I think below is the code I need to replace:

 

  // BEGIN: CSS Buttons Everywhere
function tep_image_button($image, $value = '-AltValue-', $parameters = '') {
global $language;
$image = '<div class="cssButton"> ' . tep_output_string($value) . ' </div>';
return $image;
}
// END: CSS Buttons Everywhere

 

I don't know which file is the appropiate one to change and how to change it, so that my gif file will appear instead.

 

Alternatively, I would like to change the size of the button and I have already created a new class for it but again, I dont know where to add it too...

Any help would be greatly appreciated!

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Posted

Edit: I just realised that if you view the site in english you wont be able to see the problem as the button will only say "Buy Now". Just take it from me, in german the box is too small...

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Archived

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

×
×
  • Create New...