[BUG FIX] Attribute labels shown as slug
-
Problem
On a site I was working on, I had mutiple custom attributes assigned to products and the labels were coming out as “capacity_required” as an example.
Basically the attributes are using the slug name. After debugging the code, I came across this solution:
Under /wp-content/plugins/woo-quick-view-by-beeketing/core/Api/App.php replace lines 140-144 with the following code:
$taxonomy_label = wc_attribute_label( $name, $product ); $product_options[] = array( 'position' => $position, 'name' => $taxonomy_label, 'values' => $option_values, );
Hope this helps someone and probably needs to be added to the next update.
- The topic ‘[BUG FIX] Attribute labels shown as slug’ is closed to new replies.