Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($cart_item['variation'] as $taxonomy => $variationSlug) {
- $meta = get_post_meta($cart_item['variation_id'], 'attribute_' . $taxonomy, true);
- $term = get_term_by('slug', $meta, $taxonomy);
- $variationTitle= ucfirst(str_replace("pa_",'', $taxonomy));
- $variationName = $term->name;
- $productTitle .= '<span class="festi-cart-product-variation-attribut">' . $variationTitle . ': '.$variationName .'</span>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement