S
S
Sergey Shilov2014-02-03 19:30:21
CMS
Sergey Shilov, 2014-02-03 19:30:21

How to integrate Woocommerce plugin into your custom wordpress theme?

Good afternoon everyone!
I am making an online store, the customer's requirement was wordpress, before that I was doing great with joomla and the zoo plugin. For WP, I chose the best and, probably, the only understandable plugin for IM - woocommerce.
Now the essence of the problem: when you connect the plugin to the standard theme of the WP, everything is displayed perfectly, and the basket and profile and directory, everything is connected. I put my made-up theme and see bare html code and an incomprehensible hierarchy. I read a bunch of documentation about moving the templates folder from the plugin folder to the root of my theme, and about <?php woocommerce_content(); ?> between the cycle of the page.php file, but he does not want to load the styles, well, he does not want to and that's it.
Tell me, what could be the reason?
And yet, when I specify the page for the basket in the plugin settings, it does not display it there, the same with any pages (profile, for example ..), I repeat that in the standard VP theme everything works fine without any transfers, etc.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
magenta-heaven, 2014-02-06
@Olivoin

I had a similar problem with a third party theme. The solution was very simple (in my case). The tag <body>should be replaced with <body <?php body_class(); ?>>. Everything worked.

A
Alexander Zelenin, 2014-02-03
@zelenin

Bad topic, I think.
Show the header.php and footer.php code to get started.

R
rukol, 2014-03-22
@rukol

Good afternoon, tell me what to replace to make it work on a non-standard theme. I have this in my header:

<body <?php if(is_home()){
        echo 'id="home"';
      }elseif(is_category(get_option('boldy_portfolio')) || post_is_in_descendant_category( get_option('boldy_portfolio')) && !is_single()){
        echo 'id="portfolio"';
      }?>>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question