How can I add a bootstrap btn-success
class to the Drupal Commerce Checkout button in the cart form?
The Update cart button already has btn-info
but I can't find btn-info
anywhere in the code.
If would also like to adapt buttons in other parts as I expect btn-success
buttons to lead to higher conversion.
Bootstrap has great classes, I don't want to fiddle with CSS to try and recreate that, I just want to use the Bootstrap classes.
I'm okay with adding some PHP code to my theme's template.php
, probably _form_alter()
and this is probably the way to do it. But how exactly?