2 Problems
-
Your plugin works very well in a multi-site environment. Thx!
In this section of code are 2 problems:
public function custom_button(){ if ($this->custom_button_type=="custom_button_type_read_more"){ global $product; echo ' <a id="woocommerce_Catalog_mode_custom_button" href="' . esc_url( $product->get_permalink( $product->id ) ) . '" class="single_add_to_cart_button button alt">'.$this->load_more_button_text.'</a> </a>'; }else{ echo ' <a id="woocommerce_Catalog_mode_custom_button" href="' . $this->custom_button_link . '" class="single_add_to_cart_button button alt">'.$this->load_more_button_text.'</a> </a>'; } }
1. You’re using id = “woocommerce_Catalog_mode_custom_button” – that gives a Duplicate ID error in HTML5 check.
Better use class = “woocommerce_Catalog_mode_custom_button”
2. There are twice 2 end tags in that code
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘2 Problems’ is closed to new replies.