parent
d8282b9a98
commit
4edd972644
|
@ -25,7 +25,9 @@ global $product;
|
|||
'class' => ''
|
||||
);
|
||||
|
||||
switch ( $product->product_type ) {
|
||||
$handler = apply_filters( 'woocommerce_add_to_cart_handler', $product->product_type, $product );
|
||||
|
||||
switch ( $handler ) {
|
||||
case "variable" :
|
||||
$link['url'] = apply_filters( 'variable_add_to_cart_url', get_permalink( $product->id ) );
|
||||
$link['label'] = apply_filters( 'variable_add_to_cart_text', __( 'Select options', 'woocommerce' ) );
|
||||
|
|
Loading…
Reference in New Issue