S
S
Space Around2020-08-07 11:58:47
WordPress
Space Around, 2020-08-07 11:58:47

How to use WooCommerce with your theme?

WooCommerce has created its own pages, but if you go to them, then nothing will work, for example, the My Account page will redirect to the main page of the site, since the base template for this page is used there, but if you copy the code from the wp-content\plugins\ woocommerce\templates\myaccount\my-account.php and paste it into your file, then everything is more or less normal, but it seems to me that it should not be so. Shouldn't WooCommerce create a layout file for each page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2020-08-07
@AntonLitvinenko

Wookomers creates standard pages for which the page.php template is used (and actually, even on the index.php template, it should work if there are no necessary templates) and inserts shortcodes for displaying information there, for example, the [woocommerce_my_account] shortcode should be on the My Account page. Everything should work without any transfers of templates from the plugin. You are doing something wrong

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question