Home>Support>Display Item Properties in Summary area

Display Item Properties in Summary area

Currently, Product Title, Price, SKu and Category display in the summary area, while Dimensions display along with the custom attributes under the “Additional Information” tab.

Any ideas how to move Dimensions so it displays up in the summary area instead, next to price for example?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Hi Aaron

    Can you perhaps send through a link to this live and I’ll take a look.

    Thanks

  2. 10 years, 19 days ago Aaron Itzerott

    Hi Andrew,

    Looks like I worked it out!

    I added the following code to prices.php which is within the templates/single-product folder in the woocommerce plugin folder!

    <?php if ( $product->has_dimensions() ) : ?>
    
     
    
                <tr class="<?php if ( ( $alt = $alt * -1 ) == 1 ) echo 'alt'; ?>">
    
                    <th><?php _e( 'Dimensions', 'woocommerce' ) ?></th>
    
                    <td class="product_dimensions"><?php echo $product->get_dimensions(); ?></td>
    
                </tr>
    
     
    
    
    
            <?php endif; ?>
    
    

    My mistake I thought it was a vantage thing, but it was a Woocommerce thing!

  3. 10 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear you’ve made progress here. Can you perhaps post on the WooCommerce forum as to the best way to child theme this change? The problem with a direct change like this is that it’ll be overwritten the next time you update the plugin. So you’re safe for now, but it should ideally be contained in a child theme.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More