get_id(); $currency_symbol = get_woocommerce_currency_symbol(); ?>
| $attr_values) { $taxonomy = str_replace('attribute_', '', $attr_name); if (taxonomy_exists($attr_name)) { $tax_obj = get_taxonomy($attr_name); $label = $tax_obj->labels->singular_name; } else { $label = wc_attribute_label($attr_name, $product); } $attr_labels[$attr_name] = $label; ?> | ||
|---|---|---|
| $attr_values) : $attr_key = 'attribute_' . sanitize_title($attr_name); $attr_value = isset($variation['attributes'][$attr_key]) ? $variation['attributes'][$attr_key] : ''; // Get term name if it's a taxonomy if (taxonomy_exists($attr_name) && !empty($attr_value)) { $term = get_term_by('slug', $attr_value, $attr_name); $display_value = $term ? $term->name : $attr_value; } else { $display_value = $attr_value; } ?> | get_price_html()); ?> |