S
S
Sergey Volkov2021-09-17 20:29:23
WordPress
Sergey Volkov, 2021-09-17 20:29:23

Why does wp load index page instead of woocommerce cart page?

Good evening.
When I go to the cart page, I see index.php
6144cf2ab703c664376023.jpeg

In the woocommerce settings, I deleted the template cache + Created default pages
6144cfb6046f8103803241.jpeg

But it didn't work at all
When I added cart.php to the child theme,
6144d033e5f06073468294.jpeg
I see this:
6144d05023598489446830.jpeg

Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Volkov, 2021-09-17
@GovnoKoder_ITS

Understood the issue.
There was a problem in page.php, or rather in the absence of ego
In the theme folder, I created a page.php file with this code

<?php get_header() ?>
</header>
<main class="main">
    <?php while (have_posts()) : the_post(); ?>

    <?php the_content(); ?>

    <?php endwhile; ?>
</main>
<?php get_footer() ?>

And everything worked. stackoverflow
link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question