Displaying Product Variation on 'product short description'
-
Good day,
I tried to display all the product variation of a product on its single product page. I understand that I need to echo it to my template files and what I achieved was displaying all the attributes instead of ‘variation’ because I want it to have the variation price therefor displaying the variation is the correct way to do.
Here is my code for displaying the attributes.
<?php $Option = get_the_terms( $product->id, 'pa_option'); if ( $Option && ! is_wp_error( Option ) ) : foreach ( $Option as $Option ) { echo "<p>$Option->name</p>"; } endif; ?>
Reply is appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying Product Variation on 'product short description'’ is closed to new replies.