WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] [Plugin: WooCommerce - eCommerce plugin for WordPress] Integrating WooCommerce with my custom theme (19 posts)

  1. PageWood
    Member
    Posted 2 years ago #

    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/

  2. Kurukulie
    Member
    Posted 2 years ago #

    I'm having this problem too!

  3. PageWood
    Member
    Posted 2 years ago #

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

  4. haije
    Member
    Posted 2 years ago #

    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?

  5. ellenmva
    Member
    Posted 2 years ago #

    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

  6. owcv
    Member
    Posted 2 years ago #

    I had the same problem. Thanks for that hint!

  7. Mike
    Member
    Posted 2 years ago #

    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.

  8. PageWood
    Member
    Posted 2 years ago #

    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.

  9. Mike
    Member
    Posted 2 years ago #

    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.

  10. PageWood
    Member
    Posted 2 years ago #

    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.

  11. Mike
    Member
    Posted 2 years ago #

    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.

  12. PageWood
    Member
    Posted 2 years ago #

    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.

  13. PageWood
    Member
    Posted 2 years ago #

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

  14. Lynn
    Member
    Posted 2 years ago #

    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.

  15. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    @Lynn the plugin is indeed free - our themes and addons are not.

  16. webbrewers
    Member
    Posted 2 years ago #

    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.

  17. beshounen_riz
    Member
    Posted 2 years ago #

    some e-commerce plugins like jigoshop doesn't work in custom themes in wordpress?

  18. ciucciariello
    Member
    Posted 2 years ago #

    Hello,
    I am trying to integrate the woocommerce plugin on a custom theme but not having much success.
    We are a small charity and would be grateful if someone would help us in installing the plugin...or explain me in a simple way (since I am not able to read php codes) how to do it.

    I don't understand how to hook or unhook...

    Our shop page looks a mess!

    The page is the following:
    http://www.milanomondo.org/shop

    Thank you

  19. mijamatosis
    Member
    Posted 1 year ago #

    Hi... yep same problem here... i'm trying to bring woocommerce and the 'professional' elegant theme together

    I'll admit i'm a hack at this!

    I've built a nice test site for my naturopathic business here http://natcare.juicylucywebsites.com/ ... all good except for the estore

    I had a dabble trying to follow the jigoshop link etc with very limited success

    i have managed to get the cart etc into a side bar but i have lots of other errors

    I also don't understand how to hook or unhook. When you say unhook do you mean to delet a section... e.g. <div id="container"><div id="content" role="main">

    Cheers

    Jason

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic