• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Genesis and Woocommerce

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis and Woocommerce

This topic is: resolved

Tagged: WooCommerce

  • This topic has 2 replies, 1 voice, and was last updated 8 years, 5 months ago by Toon61.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 4, 2018 at 11:43 am #216069
    Toon61
    Member

    Hi all,
    I don't think this is related to Genesis themes specific, but more of a woocommerce way of thinking/working.
    What I would like to accomplish is a way to manipulate the woocommerce hooks to get the following on a single product page:
    The product image (product-gallery) and the product details (woocommerce-product-details or short-description) in one single DIV.
    Under that div I would like to show the additional options for that product. These options are shown in woocommerce in a form. I want that form to be in a new div so I can set that div to full width.

    The default woocommerce way of showing this is like this (one div for image and one div for everything else)

    
    <div>
    <div>                      </div><div>                         
    ------------------------         ----------------------------------------        
    |                       |        | Price                                |
    |                       |        | Short description                    |
    |                       |        |                                      |
    |         IMAGE         |        | Additional Product Add-ons (form)    |
    |                       |        |                                      | 
    |                       |        |                                      | 
    |                       |        | Length                               | 
    ------------------------|        |                                      |
                                     |                                      | 
                                     | Height                               | 
                                     |                                      | 
                                     |                                      | 
                                     | Color                                | 
                                     |                                      |
                                     |                                      |                                                                                                                                                     
                                     |                                      | 
                                     |                                      | 
                                     |                                      | 
                                     |                                      | 
                                     | Add to Cart                          |
                                     ----------------------------------------
                                     </div>
    </div>                                 
    

    But I want it to look like this:

    
    <div>
    <div>
    --------------------------       ----------------------------------------        
    |                        |       | Price                                |
    |                        |       | Short description                    |
    |                        |       |                                      |
    |         IMAGE          |       |                                      |
    |                        |       |                                      | 
    |                        |       |                                      | 
    |                        |       |                                      | 
    --------------------------       ----------------------------------------
    </div>
    <div>                                                 
    -------------------------------------------------------------------------
    |                                                                       |  
    | Additional Product Add-Ons (form)                                     | 
    |                                                                       | 
    |                                                                       | 
    | Length                                                                | 
    |                                                                       | 
    | Height                                                                | 
    |                                                                       | 
    | Color                                                                 | 
    |                                                                       | 
    |                                                                       | 
    | Add to Cart                                                           |
    -------------------------------------------------------------------------
    </div>
    </div>

    I just cannot find anything on the internet on how to manipulate the standard woocommerce hooks or filters to get the additional add-ons in a superstate DIV.
    Does anyone have any idea or resource where to look at to get this done?

    February 4, 2018 at 11:49 am #216072
    Toon61
    Member

    Hi all,
    I don't think this is related to Genesis themes specific, but more of a woocommerce way of thinking/working.
    What I would like to accomplish is a way to manipulate the woocommerce hooks to get the following on a single product page:
    The product image (product-gallery) and the product details (woocommerce-product-details or short-description) in one single DIV.
    Under that div I would like to show the additional options for that product. These options are shown in woocommerce in a form. I want that form to be in a new div so I can set that div to full width.

    The default woocommerce way of showing this is like this (one div for image and one div for everything else)

    
    <div>
    <div>                      </div><div>                         
    ------------------------         ----------------------------------------        
    |                       |        | Price                                |
    |                       |        | Short description                    |
    |                       |        |                                      |
    |         IMAGE         |        | Additional Product Add-ons (form)    |
    |                       |        |                                      | 
    |                       |        |                                      | 
    |                       |        | Length                               | 
    ------------------------|        |                                      |
                                     |                                      | 
                                     | Height                               | 
                                     |                                      | 
                                     |                                      | 
                                     | Color                                | 
                                     |                                      |
                                     |                                      |                                                                                                                                                     
                                     |                                      | 
                                     |                                      | 
                                     |                                      | 
                                     |                                      | 
                                     | Add to Cart                          |
                                     ----------------------------------------
                                     </div>
    </div>                                 
    

    But I want it to look like this:

    
    <div>
    <div>
    --------------------------       ----------------------------------------        
    |                        |       | Price                                |
    |                        |       | Short description                    |
    |                        |       |                                      |
    |         IMAGE          |       |                                      |
    |                        |       |                                      | 
    |                        |       |                                      | 
    |                        |       |                                      | 
    --------------------------       ----------------------------------------
    </div>
    <div>                                                 
    -------------------------------------------------------------------------
    |                                                                       |  
    | Additional Product Add-Ons (form)                                     | 
    |                                                                       | 
    |                                                                       | 
    | Length                                                                | 
    |                                                                       | 
    | Height                                                                | 
    |                                                                       | 
    | Color                                                                 | 
    |                                                                       | 
    |                                                                       | 
    | Add to Cart                                                           |
    -------------------------------------------------------------------------
    </div>
    </div>

    I just cannot find anything on the internet on how to manipulate the standard woocommerce hooks or filters to get the additional add-ons in a superstate DIV.
    Does anyone have any idea or resource where to look at to get this done?

    February 5, 2018 at 3:06 am #216091
    Toon61
    Member

    Oops,

    Figured this one out by myself.
    Just a simple add_action to close a div, and open another one:

    
    add_action('woocommerce_before_add_to_cart_form','whd_open_div');
    function whd_open_div() {
    	echo '</div><div class="whd_row">';
    }
    

    And making sure the structure stays valid, create a closing div after the form:

    
    add_action('woocommerce_after_add_to_cart_form','whd_close_div'); 
    function whd_close_div(){
    	echo '</div>';
    }
    
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Genesis and Woocommerce’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble