Friday, 7 October 2011

Getting rid of Virtuemart's notify button

I actually thought this would be something really simple - like a tick box or a drop down selection in the Virtuemart admin.  No such luck what I had to do was follow these instruction and it doesn't really solve my problem, because sometimes I'd like to display a 'out of stock' image and other ' notify when available' if anyone finds an answer for this could they comeback and let me know about it.

Thanks - anyway heres the temporary hack to change the button over.




.notify_button {
   background: url( 'images/notify_blue.gif' ) no-repeat  center transparent;

-- to --
.notify_button {
   background: url( 'images/' ) no-repeat  center transparent;

And you need to change your language adminstrator/components/com_virtuemart/language/common/english.php):
   'VM_CART_NOTIFY' => 'Notify Me!',

NOTE:  thats 'adminstrator/components' not just 'components' :)

At this point I still have a problem.  And thats that I need to change the size of the display for this button. for this go back to .css file we where ammending earlier and add

.notify_button {

 height: 50px;
    width: 115px;

to the .notify_button class.

All done :)

Check Cornish Clothing Store for the finished store - Coming Soon

1 comment:

Henri Burmeister said...

better is:

.notify_button {display:none;}
in the theme.css

only one Line