Home / Tag Archives: Product variation in table/grid with add to cat button

Tag Archives: Product variation in table/grid with add to cat button

WooCommerce Product Variations Grid or Table form with add to cart button

woocommerce-product-variation-grid-table

[tblock anim=”rubberBand” tcuscolor=”#9900ff” title=”WooCommerce Product Variations Grid or Table form with add to cart button” tag=”h3″/] Copy and Paste the code in your theme function.php function find_valid_variations() { global $product; $variations = $product->get_available_variations(); $attributes = $product->get_attributes(); $new_variants = array(); // Loop through all variations foreach( $variations as $variation ) { …

Read More »