M
M
Muvka2019-01-01 21:21:24
WooCommerce
Muvka, 2019-01-01 21:21:24

Can I replace the cart page with my own or is it better not to do this?

The problem is this. If you display the cart through the shortcode, as by default, then it turns into . There is no way to remove this wrapper, except for the option of manually editing the code in class-wc-shortcodes.php of the shortcode_wrapper method. Naturally, this is a very bad option, because. When you install a store update, everything will fly off. I want the main content to be wrapped in . I don't want to leave an extra wrap. So the question is - to score on this wrapper and add your own inside it, or create page-cart.php and completely manage the code with your hands? Or will there be problems in the future?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yarovikov, 2019-01-01
@Muvka

This is usually done by redistributing Woo templates in the theme template. Create just such a hierarchy with the necessary files and go. Copy these files from the plugin folder to the theme folder, and then edit the code as needed.
5c2bb80d4e3cc491083681.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question