I have a Drupal Commerce project setup on top of D7-22. I've overridden the template file for my product display (
node--product-display.tpl.php), and have managed to render the product fields, as well as the Add-to-cart form with all of the attributes. I know that
<?php print render($content)?> will actually render the
<form> for the attributes and Add-to-Cart button, but I would like to customize the HTML layout of the form and add some other elements to it. For example:
- I'd like to position the Add to Wishlist button next to the Add to Cart button
- I'd like to add some HTML next to one of the attribute fields that is rendered (the Size select box).
Using the Devel module, I was able to pick up fields like
product:sku, but none of the attributes or buttons within the actual
<form>. I'm currently using jQuery to inject HTML into the form...but it's a hack am not all that comfortable with pushing into production.
Is there any way in my
tpl.php file to print out the form attributes, quantity textbox and buttons individually?