Answers for "add entire cart to order"

C
0

add to cart

function remove_loop_button(){
 if (in_array( 10, $product->category_ids))
  remove_action(‘woocommerce_after_shop_loop_item’,‘woocommerce_template_loop_add_to_cart’, 10);
}
add_action(‘init’,’remove_loop_button’);

add_action(‘woocommerce_after_shop_loop_item’,’replace_add_to_cart’);
function replace_add_to_cart() {
global $product;
$link = $product->get_permalink();
echo ‘<a href=”‘.esc_attr($link).'”>Try Now</a>’;
}
Posted by: Guest on October-28-2021

Code answers related to "add entire cart to order"

Code answers related to "C"

Browse Popular Code Answers by Language