Title: 2 Problems
Last modified: August 24, 2016

---

# 2 Problems

 *  [w.bear](https://wordpress.org/support/users/wbear/)
 * (@wbear)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/2-problems-17/)
 * 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
 * [https://wordpress.org/plugins/woocommerce-catalog/](https://wordpress.org/plugins/woocommerce-catalog/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [pantrif](https://wordpress.org/support/users/pantrif/)
 * (@pantrif)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/2-problems-17/#post-6136925)
 * Hello thanks for the tips. I will review your comments and i might include a 
   fix in next update.

Viewing 1 replies (of 1 total)

The topic ‘2 Problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-catalog_b5a6ac.svg)
 * [Woocommerce Catalog](https://wordpress.org/plugins/woocommerce-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-catalog/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pantrif](https://wordpress.org/support/users/pantrif/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/2-problems-17/#post-6136925)
 * Status: not resolved