Hi Tobias – love the tables!
I am using the woocommerce plugin and I wish for users to be able to click on first column table entry and just add it directly to the cart. Normally I put the [add_to_cart sku=’XXXXXX’] shortcode on a page. This allows users to click the name and the product is automatically added to the cart. Is it possible to somehow mimic this in a cell? ie can I somehow add a link to each column-1 table entry (and I have c. 50 rows).
At the moment I have to manually check the [add_to_cart_url] on a page for each product, then read the resulting url, then add that to the href statement in the cell.
This is error prone and is also likely to result in broken links if/when there are product changes or upgrades.
thanks in advance
- The topic ‘woocommerce shortcodes in table entries’ is closed to new replies.