All variants as table
-
Hi,
i want to display the variants of a product not as dropdowns but as table where every row is a single variant. For every variant or row the button “add to quote” should be displayed. Is it possible to display the button for a specific variant of a product?
And is it possible to add an input field (or select) for the quantity to use for the add to quote button?Something like
<tbody> <?php foreach ($variants AS $variant) : ?> <tr> <td><?php echo $variant['sku']; ?></td> <?php foreach ($variant['attributes'] AS $attribute) : ?> <td><?php echo $attribute;?></td> <?php endforeach; ?> <td><input type="text" id="quantity" name="quantity"></td> <td><button type="button">[HERE COMES THE ADD TO QUOTE BUTTON]</button></td> </tr> <?php endforeach; ?> </tbody>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘All variants as table’ is closed to new replies.