Woocommerce product

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    boy273
    February 20, 2015 at 4:12 pm #28869

    You guys doing pretty good job with woocommerce “simple product”, but not so much with “external product” (I know, it’s rarely use). On this page

    the image doesn’t have a link.

    I just want a link to a product just like the button.
    ————————————————————————————–
    add_action(‘woocommerce_after_shop_loop_item’,’replace_add_to_cart’);
    function replace_add_to_cart() {
    global $product;
    $link = $product->get_permalink();
    echo do_shortcode(‘[button border_radius=”10″ three_d=”no” size=”small” color=”belize” title=”More Info” link=”‘.esc_attr($link).'”]’);
    }
    —————————————————————————————-

    thank you guys

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.