Support » Plugin: WooCommerce » A Nightmare to customize…..

  • 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley


    API Docs:
    Github for issues and discussion:

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

    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?

    Plugin Author Mike Jolley


    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?

    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 ?

    Plugin Author Mike Jolley


    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 🙂


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘A Nightmare to customize…..’ is closed to new replies.