Wouldn't make more sense to have the "Out of stock" message as a formatted text rather than a disabled form button?
What's the rationale behind that?
Thanks for taking a look :-)
It's just the way it was when I got it. Never changed it. I don't really have a commitment to it. Patches are welcome.
One aspect of the current implementation is that if the user hovers over the disabled button, the mouse cursor turns into a pointer as if it is a clickable link. That's a bit confusion because if you try to click it, nothing happens. Any way to make the disabled button not appear clickable?
One more thing: Another issue with the current disabled button implementation occurs if you override the string for either the "Add to cart" text or the "Out of stock" text. If those two text string have substantially different numbers of characters (and you've used a lot of CSS to make the button prominent), then it's possible that the button gets pushed into adjacent layout items. (This happened to me.)
subscribe. more flexibility needed for the stock value, some settings, more options.
maybe the stock settings/options should be within every product type definition/page/form.
version 2 lets you control the text but its still using the disabled button.
Hi, I would love to be able to link the disabled button to a helppage. Something like More info why the product is not in stock, and that someone can order it by email if necessary!
So it would be great if the disabled button was enabled and has link-possibility next to having text!
Thanks a lot in advance for considering this!
@Summit and anyone following this thread.
Missed this one out, it should have been closed a long time a go as this is now supported in 2.
What you need to do is:
Optionally set the "stock action" field to "URL Action" and the "Custom URL" field to a valid url.
You can also set the "stock action" field "Custom submit" to trigger a custom submit (will need coding for you submit handler)
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.