• Hi, I noticed after installing the plugin it added an additional button which say “View Product” however this is not required, as woocommerce already has it owns Add to Cart or Read More button, how do I remove this button? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter angelique2016

    (@angelique2016)

    In fact I removed this section of coding, and all seemed to work fine, and no longer had the additional button, perhaps you could add an admin settings, so you can either have this button on or off. That would be great!

    function wc_mmax_remove_loop_button()
    {
    remove_action(‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10);
    }
    add_action(‘init’, ‘wc_mmax_remove_loop_button’);

    add_action(‘woocommerce_after_shop_loop_item’, ‘wc_mmax_replace_add_to_cart’);
    function wc_mmax_replace_add_to_cart()
    {
    global $product;
    $link = $product->get_permalink();
    echo ‘<center>‘ . __(‘View Product’, ‘wcmmax’) . ‘</center>’;
    }

    Plugin Author Ashok G

    (@wpashokg)

    Sure.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove additional button’ is closed to new replies.