How did you incorporate WooCommerce in your own WordPress theme?

This has most probably been asked before, but I really need to show WooCommerce products in my template, but I don’t know what hooks to add where. It’s my first time working with WooCommerce.

Can anybody maybe help me out? Quick step by steps of the process are all I’m asking? And a little more advice would be greatly appreciated.

Also, just a URL explaining the complete process would be bonus, as I can’t find anything on the net at the moment.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Generally, Woo is integrated by the use of shortcodes in pages. This is to say, if you want a page to have the cart, create a “Cart” page and put the [woocommerce_cart] shortcode in the content. In fact, Woo adds two new buttons to your WYSIWYG editor to insert the shortcodes for you! This wouldn’t be a very good standalone plugin if it required theme editing just to function. While you can hook directly into the theme, it’s not necessary – nor is it really advisable, since you may want to change themes without rewriting all your custom hooks.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x