Adding an extra button column to the product table
How to add a ‘Show Details’ button linking to single product page
You can create a column containing buttons linking to the product details page for each product. To do this, add
button to the columns option, either on the plugin settings page or directly in the shortcode. For example:
How to change the button text
The text for the button defaults to “Show details”. You can change the text for the button using the
button_text option in the shortcode. For example:
[product_table columns="name,description,price,button" button_text="More Information"]
Add to cart buttons
You can also show add to cart buttons in the product table. You can use these instead of, or in addition to, the ‘button’ column.
Can I add other types of button?
It’s also possible to add other types of link or button to the product table. For example, you might want to add icons linking to downloadable files, or a button linking to an enquiry form.
You can achieve this by adding the buttons within a custom field and displaying it in the table. Please see our article about how to do this.