WooCommerce - excelling eCommerce
A Nightmare to customize..... (7 posts)

  1. oumz99
    Posted 2 years ago #

    Clearly WooCommerce is for people who just want a click and play solution. And they don't want to promote the developer community taking advantage of their product, otherwise how will they sell their themes and other products. A major disappointment when you try and customize woo commerce (coding) accordin to your needs. There isn;t any clear documentation. If I have to spend double the time learning WooCommerce than what it was required for WordPress then certainly something isn;t right. Please have documentation on how to do advance customizations.

  2. Mike Jolley
    Plugin Author

    Posted 2 years ago #

    Codex: http://docs.woothemes.com/product/woocommerce-plugin/developer-reference/
    API Docs: http://docs.woothemes.com/wc-apidocs/
    Github for issues and discussion: https://github.com/

    There is a huge developer community. Not sure what you mean or want to see.

  3. oumz99
    Posted 2 years ago #

    I don;t know how I missed it.....
    I have seen that page at least 10 times and missed the theming snippets part..

    But still I need a little info. here...

    Most of the WooCommerce functions like : woocommerce_show_product_images,woocommerce_template_single_title .....and so on. Output the HTML.
    Like in wordpress we have a the_ID() and a get_the_ID(). Do we have similar functions in WooCommerce ?
    If no any workarounds ? How can I grab the ID/images/title of the product in a php array?

  4. Mike Jolley
    Plugin Author

    Posted 2 years ago #

    If you are working with custom product loops, everything you need is in the $product object which gets populated automatically by the_post()

    Then you just use:

    global $product;

    etc to get to get data from the product class.

    As for the functions you referenced, some of these are hooked in, some output in the Core WC templates. Those core templates can be overridden via a theme.

    How about you download a free WC theme like myStyle and see how we do themes?

  5. oumz99
    Posted 2 years ago #

    Yes, I've been using overriding core WC templates for quite a while now. And global $product; $product contains $post.
    But it does not fully answer my question. Here's is a situation I've been trying to get an answer of:

    1. I want to show a product in a Post
    2. So I run a custom loop query_post('post_type=product&p=123);
    3. Now I want to use standard WooCommerce Templates to show product price/Tabs/Short descriptions/Attributes/Related products etc..
    I have been trying to use woocommerce templates to get this using ob_get_clean but since there is no global $product defined while echoing the template nothing is shown.

    Is there a better way to do the same or am I missing something ?

  6. Mike Jolley
    Plugin Author

    Posted 2 years ago #

    Why would you want to show a product in a post, instead of using the actual product post itself? There are shortcodes for outputting products elsewhere too.

    Make a support thread if you want help - 1 star reviews are not the place to get community support :)

  7. oumz99
    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.