Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to display attribute options as rows in a table below the product node, instead of a select box or radio buttons in the add to cart form.
Each option row in the table will need to have it's own add to cart button, see attached image for an example.
Any advice or pointers on where to start in building a module to do this, what hooks to look at etc?
Comment | File | Size | Author |
---|---|---|---|
attributes-options-table.png | 54.74 KB | Problue Solutions |
Comments
Comment #1
TR CreditAttribution: TR commentedThere are many ways you could do this. One is to write a small bit of code to loop through the available attributes/options and create the table, using Cart Links for the buttons.