Title: PHP Notice: Undefined variable: labelledby
Last modified: October 6, 2018

---

# PHP Notice: Undefined variable: labelledby

 *  Resolved [Jamie Madden](https://wordpress.org/support/users/digitalchild/)
 * (@digitalchild)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-labelledby/)
 * Hello,
 * Is there a reason you have copied every single WooCommerce template when you’re
   not changing them or in this instance, removing defined variables ?
 * As per the original WooCommerce template the $labelledby var is defined as
 * $labelledby = ! empty( $args[‘product_name’] ) ? sprintf( __( ‘%s quantity’, ‘
   woocommerce’ ), strip_tags( $args[‘product_name’] ) ) : ”;
 * on line 30 of the template. I’ve added this back into the template override and
   the notice has gone away.
 * Other than that, this is so far looking to be a great theme I can recommend to
   my users for their marketplaces.
 * cheers,
 * Jamie.
    Lead Developer / Founder WC Vendors Marketplace – [https://wordpress.org/plugins/wc-vendors/](https://wordpress.org/plugins/wc-vendors/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [shopperwp](https://wordpress.org/support/users/shopperwp/)
 * (@shopperwp)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-labelledby/#post-10773983)
 * Hello [@jamie](https://wordpress.org/support/users/jamie/),
 * Thank you for feedback. I added your issue to my list and we will prepare to 
   release new version by next week.
 *  Theme Author [shopperwp](https://wordpress.org/support/users/shopperwp/)
 * (@shopperwp)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-labelledby/#post-10794976)
 * Hello [@jamie](https://wordpress.org/support/users/jamie/),
 * New version has been uploaded and your feedback has been fixed.
 *  Thread Starter [Jamie Madden](https://wordpress.org/support/users/digitalchild/)
 * (@digitalchild)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-labelledby/#post-10794995)
 * Thanks!
 * I’ll be using your theme in our upcoming video series. Looking forward to it.
 * cheers,
 * Jamie.
    Lead Developer / Founder WC Vendors Marketplace – [https://wordpress.org/plugins/wc-vendors/](https://wordpress.org/plugins/wc-vendors/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Notice: Undefined variable: labelledby’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/shopper/1.3.8/screenshot.png)
 * Shopper
 * [Support Threads](https://wordpress.org/support/theme/shopper/)
 * [Active Topics](https://wordpress.org/support/theme/shopper/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/shopper/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/shopper/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jamie Madden](https://wordpress.org/support/users/digitalchild/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-labelledby/#post-10794995)
 * Status: resolved