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://www.ads-software.com/plugins/wc-vendors/
- The topic ‘PHP Notice: Undefined variable: labelledby’ is closed to new replies.