get_Id() )->get_meta( 'swatch_options', true ); if ( empty( $swatch_options ) ) { $swatch_options = array(); } elseif ( ! is_array( $swatch_options ) ) { $swatch_options = json_decode( $swatch_options, true ); } do_action( 'woocommerce_before_add_to_cart_form' ); ?>

$options ) : ?> type; } else { $attribute_type = 'select'; } if ( ! empty( $swatch_options[ $attribute_name ]['type'] ) && defined( 'ALPUS_VARIATION_SWATCH_VERSION' ) ) { if ( 'default' === $swatch_options[ $attribute_name ]['type'] ) { $swatch_type = $attribute_type; } else { $swatch_type = $swatch_options[ $attribute_name ]['type']; } } $class = ''; $class .= esc_attr( isset( $swatch_type ) ? $swatch_type : $attribute_type ) . '-type'; $class .= ' product-' . esc_attr( $attribute_name ) . '-swatch'; ?>
$options, ) ); } } elseif ( 'select' !== $attribute_type ) { do_action( 'alpha_wc_product_listed_attributes', array( $attribute_name => $options, ) ); } wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'type' => isset( $swatch_type ) ? $swatch_type : $attribute_type, ) ); ?>
' . esc_html__( 'Clean All', 'alpus' ) . '
' ) ) : ''; ?>