Advertisement
Guest User

Untitled

a guest
Dec 21st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. add_action( 'wp_head', 'remove_my_action' );
  2. function remove_my_action(){
  3. remove_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_wc_add_buton' );
  4. }
  5.  
  6. function jas_gecko_child_wc_add_buton() {
  7. global $post, $jassc;
  8.  
  9. // Get product hover style
  10. $hover_style = $jassc ? $jassc['hover-style'] : cs_get_option( 'wc-hover-style' );
  11.  
  12. if ( $hover_style == 1 ) {
  13. // Quick view
  14. echo '<a class="cp pr br-36 mb__10" href="'.get_permalink($product_id).'" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye mr__10"></i>' . esc_html__( 'Quick View', 'gecko' ) . '</a>';
  15.  
  16. // Wishlist
  17. echo jas_gecko_wc_wishlist_button();
  18. } elseif ( $hover_style == 2 ) {
  19. // Quick view
  20. echo '<a class="cp pr bs-36" href="'.get_permalink($product_id).'" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye"></i><span class="tooltip pa cw fs__12 ts__03">' . esc_html__( 'Quick View', 'gecko' ) . '</span></a>';
  21.  
  22. // Wishlist
  23. echo jas_gecko_wc_wishlist_button();
  24. }
  25. }
  26. add_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_child_wc_add_buton' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement