WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] [Plugin: WooCommerce – eCommerce plugin for WordPress] Integrating WooCommerce with my custom theme

[Resolved] [Plugin: WooCommerce – eCommerce plugin for WordPress] Integrating WooCommerce with my custom theme

  • Hey everyone,

    I’m trying to integrate WooCommerce with my own theme. I can’t figure out how to go about deregistering and registering the shop wrappers to work with my theme.

    I’ve looked at this documentation pertaining to this on the WooCommerce site. I’m confused about what I need to change in the following to get it to work with my theme:

    add_action(‘woocommerce_before_main_content’, create_function(”, ‘echo “<section id=\”main\”>”;’), 10);
    add_action(‘woocommerce_after_main_content’, create_function(”, ‘echo “</section>”;’), 10);

    the site I’m working with is:
    http://www.aftonstorageproducts.com

    Thanks in advance!

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Kurukulie

    @kurukulie

    I’m having this problem too!

    Glad I’m not the only one. I’ve searched all over but just can’t find a detailed answer to this. Anyone?

    IS there any Woocommerce support or detailed documentation anywere FREE? I do not want to pay anything to WooThemes, because Woocommerce is free. So do we get any support to WooCommerce free?

    ellenmva

    @ellenmva

    Woothemes doesn’t give much information as you have found out. I ended up working with this document from Jigoshop which works just as Woocommerce does, just use the Woocommerce hooks instead of the Jigoshop ones.

    How to Properly Wrap Jigoshop Content in Your WordPress Theme

    I had the same problem. Thanks for that hint!

    Mike

    @jolley_small

    Hi guys,

    http://www.woothemes.com/woocommerce-codex/theming-woocommerce/

    ^ we have a user guide and codex which is freely available. There are snippets in there for wrapping your content/general theming. You can also download the free WooTique theme to see how a WooCommerce theme is made.

    WooCommerce support is available on the WooThemes forums with the purchase of any theme or WooCommerce plugin.

    Finally our GitHub repo has an issue tracker for bug reports.

    The Jigoshop tutorial was very helpful, thanks Ellen! My wrappers seem to be working, but the content div isn’t stretching with the product, and a scroll bar is added.

    http://www.aftonstorageproducts.com/catalog

    Overflow:auto is set, but that’s not fixing the issue.

    Mike

    @jolley_small

    Forgot the link to wootique, its http://www.woothemes.com/2011/09/wootique/.

    @pwood, Change overflow:auto to:

    overflow:hidden;
    zoom: 1;

    That will clear the content.

    I tried that but it’s cutting off the product name below the image. Also, I activated my sidebar and it’s showing up below the wrapper. I think it’s safe to say that I’m not correctly closing my wrapper.

    Mike

    @jolley_small

    Agreed. Either that or your themes wrappers are a little harder to account for. If you download WooTique and look at includes/theme-woocommerce.php you’ll see how it’s done there (this may help you understand how to integrate it into your own theme using filters).

    If all that fails, you can copy woocommerce/templates/archive-product.php (and any of the other files) into your theme and do it without the hooks. This is not the cleanest approach but it’s easier for people unfamiliar with wordpress hooks.

    Thanks, Mike! Looking at the archive-product.php and includes/theme-woocommerce.php together really helped me see everything connect.

    I seem to have my wrappers setup correctly, but I still can’t figure out why my content div isn’t expanding with the info on my catalog page. Individual product pages are working just fine though.

    The content div was fine with overflow:hidden; but I had ul li lineheight and width styles conflicting with the woocommere styles. All fixed!

    WooCommerce support is available on the WooThemes forums with the purchase of any theme or WooCommerce plugin.

    That is confusing.
    The WooCommerce plugin is free.

    Plugin Author Mike Jolley

    @mikejolley

    @lynn the plugin is indeed free – our themes and addons are not.

    Unfortunately the exact same thing happens with a wootheme bought and paid for (Kaboodle), so the problem goes beyond 3rd party theme compatibility. Ironically, it does work on otherfree themes I’ve tried. And I can’t get any kind of support until the owner gives me the member log in. Really a frustrating waste of time. I’m not feeling the woo.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – eCommerce plugin for WordPress] Integrating WooCommerce with my custom theme’ is closed to new replies.
Skip to toolbar