Edit WooCommerce Cart

1

I need in Woocommerce shopping cart to modify the structure of the display of the total content (that is, the typical of the cart, where you verify that you have everything you have added or delete if you added something else without wanting to). The final page that I have to modify it. I think (I'm not sure) that what I searched for is in the woocommerce / includes / class-wc-cart.php file but I have a problem when I try to access the template and I get a blank screen. Because of the structure of Woocommerce and Wordpress, I know that at least part of the php code must be used.

Then, I would like to know if it is that file or not or exactly, to start modifying the template (or see the programming to start it) and if it is that file, as well as access it from wordpress without a white screen (in the worst case I download it and edit it on my pc in a notepad ++ or similar, but I would like to fix that I do not know because it is given).

PS: I asked in the wordpress.stackexchange and they told me to ask in another stack because that was not their competence (or something like that, my English is not a big deal).

    
asked by Dianne 14.09.2016 в 18:04
source

1 answer

2

The Woocommerce cart (Woocommerce Cart as you mention) is in fact composed of several files. I remember that not too long ago I had to re-structure it and add / remove different sections. You can find the related files in the following folder:

/templates/cart

By modifying any of these files, you can customize the way the Woocommerce shopping cart looks.

PS: Do not modify the Woocommerce base files directly, because if Woocommerce is updated, you will lose the changes (besides not being recommended to directly edit a plugin). I recommend you create a Child Theme and put the modified files there (or overwrite the templates with a custom plugin). A fairly used practice, if you already have an active theme and do not want to create a Child Theme, is to create a woocommerce folder within the current theme and put the modified files there, following the same structure as the of the plugin (it is likely that you already have that folder in the current theme that you use, if it is compatible with Woocommerce).

You can see a small article that just talks about that:

link

    
answered by 17.09.2016 в 18:45