Modify single-product and move grouped thumbnails (woocommerce)

Discussion in 'HTML & Website Design' started by webpat, Feb 13, 2016.

  1. #1
    I would like modify the template to move down grouped product table and display it inline horizontal.

    My target design [​IMG]

    Now I call grouped prodcuts by code in functions.php:

    add_action( 'woocommerce_grouped_product_list_before_price', 'woocommerce_grouped_product_thumbnail' );

    function woocommerce_grouped_product_thumbnail( $product ) {
    $image_size = ( 'medium' ); // array( width, height ) image size in pixel
    $attachment_id = get_post_meta( $product->id, '_thumbnail_id', true );
    ?>
    <td class="label">
    <a href="<?php the_permalink(); ?>">
    <?php echo wp_get_attachment_image( $attachment_id, $image_size ); ?>
    </a>
    </td>
    <?php
    }

    Site url: http://zpomyslami.nazwa.pl/mekona_new/meble/sypialnie/sypialnia-diana/

    Could you help me?
     
    webpat, Feb 13, 2016 IP