Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ukloni Add to Cart Button
- remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
- // Dodaj View Product Button
- add_action( 'woocommerce_after_shop_loop_item', 'mx_view_product_button', 10);
- function mx_view_product_button() {
- global $product;
- $link = $product->get_permalink();
- echo do_shortcode('<a href="'.$link.'" class="button addtocartbutton">View Product</a>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement