I've create a module and overriden addtocart.phtml to replace the 'Add to Cart' button with 'Preorder' when the Preorder attribute is set to 'Yes'.
This works well on simple products, but I cannot override the button on configurable products (products with options).
Template hints show the following on the add to cart button for simple products:
/var/www/html/magento/var/view_preprocessed/pub/static/app/code/Max/Preorder/view/frontend/templates/catalog/product/view/addtocart.phtml
Configurable shows:
/var/www/html/magento/var/view_preprocessed/pub/static/vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml
I'm not really sure what is going on here, I can see the path is slightly different but I have no luck when trying to override that file.
Any help would be appreciated.
Cheers, Max