Home / Tag Archives: WordPress Product Variations

Tag Archives: WordPress Product Variations

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 »