How do I separate the "Product" select list & "Add to cart" submit form in a node product display?
I have a node product display which references 2 different products.
When I use the code below, it prints out both the “product select” form + the “add to cart” submit form. How do I print them out separately?
<?php print render($content['field_product_ref']); ?>
Alternatively, how do I change the HTML to print this 2 form out? I am looking for a way to theme my product display differently.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.