WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Woocommerce Store Page Design (3 posts)

  1. helpanoobout
    Member
    Posted 4 months ago #

    Hi, I am new to wordpress and am trying to get started an ecommerce site. I have installed woocommerce 2.1.6 and am having a bit of difficulty editing the code so that on the store page (archive-product.php), the products are arranged correctly. What I want is for the product image to show up on the left side of the screen and then in-line to the right will be the product name, short description, price and add to cart button.

    The problem is that I don't know how to break out the command to print just the product picture, just the product title, just the product description, the product price and the add to cart button. Here's the snippit I currently have in the archive-product.php:

    <?php woocommerce_product_loop_start(); ?>
    
    <?php woocommerce_product_subcategories(); ?>
    
    <?php while ( have_posts() ) : the_post(); ?>
    
        <?php wc_get_template_part( 'content', 'product' ); ?>
    
        <?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt )?>
    
        <?php endwhile; // end of the loop. ?>
    
    <?php woocommerce_product_loop_end(); ?>
  2. helpanoobout
    Member
    Posted 4 months ago #

    Figured it out!

  3. vladicorp
    Member
    Posted 1 month ago #

    why don't you post the solution ?

Reply

You must log in to post.

About this Topic