How do I integrate WooCommerce into a custom HTML theme? - wordpress

I know how to use WooCommerce but even then, how could I integrate WooCommerce into my own HTML theme?

You can just edit CSS files according to your requirement... Also you can put a WooCommerce template file in your theme or in child theme and you can easily edit these files.
If you want to a user WooCommerce template in the theme then create a WooCommerce folder in your theme and copy the WooCommerce plugin template to this folder.

Related

Why wordpress don't see the archive-product page?

I installed my theme with just html, and woocommerce plugin.
I created in my theme directory woocommerce and inside a file archive-products.
In admin, in settings -> reading i choose as a static page the Shop.
But i saw just the page, not the archive-product page.
Where i done a mistake?
When i create a theme with underscores.me, i forgot to check a checkbox for woocommerce.
Now i create another theme with checked checkbox, and the theme work.

Editing the woocommerce cart page

I am using woocommerce and would like to add a custom text to the cart page.
So I add a product to cart, go to the cart and in there I see that the cart uses the page.php template.
My theme folder is called woocommerce, then inside my theme folder I created a folder called woocommerce/templates/cart/cart.php
I added text to the new cart.php but it does not work.
How can I override the woocommerce cart page?
It is my first time using woocommerce so I really hope you can help
Thanks in advance
Create woocommerce/woocommerce/cart/cart.php , folder templates should not be there if you are using theme to override default woocommerce php's
See the article
Template structure & Overriding templates via a theme
https://docs.woocommerce.com/document/template-structure/

Overwriting Builder WooCommerce Templates from Child Theme

I'm having some issues overwriting a Builder WooCommerce (a Themify plugin that interacts with WooCommerce http://themify.me/addons/woocommerce) template from with a child theme. My child theme is set up and working, and I can successfully overwrite the WooCommerce product page images from (childTheme/woocommerce/single-product/product-image.php). That all works great, but when I try and overwrite a template within the Builder WooCommerce Plugin (product listing template) nothing seems to happen.
I've copied the appropriate template file into (childTheme/builder-woocommerce/template-products-list.php) and made modifications, but they are not coming through at all. Is it for some reason why overriding this plugin doesn't work?
I contacted Themify support, and was told:
Child theme can only save theme files. Builder woocommerce is a addon/plugin. It is not possible to save plugin files through child theme. You can copy customized files manually and replace it with the updated file after plugin update.
Unfortunately, it doesn't seem possible to make changes to any template file within this plugin from a child theme.

WooCommerce custom checkout page in theme

Is it possible to create custom checkout page in my theme? I mean to create custom checkout.php document I do not want to edit WooCommerce default theme.
Yes, this is achieved by overriding the WooCommerce checkout.php file in the plugin itself by placing it in your theme's WooCommerce directory. You are right not to want to edit the plugin because any updates will render such changes obsolete. You can see the following files you would want to override here: https://github.com/woothemes/woocommerce/tree/master/templates/checkout
Your directory should look something as follows:
themeroot/
single.php
page.php
etc..
woocommerce/
templates/
checkout/
form-checkout.php
form-billing.php
etc
You can learn more about creating Custom WordPress themes by viewing the document. You will want to duplicate and work of these files to create your custom checkout page.

How to make a custom theme with plugins in WordPress?

I have created my own theme in WordPress. In that theme i'm using other plugins ( jQuery Photo slider ). Now I want to use this theme for a different website. Can i save plugins with the theme? First off, is this even possible?
This is my first attempt in WordPress.
You are not allowed to add plugins along with your theme, but you can always send a readme along with the theme, telling the user what plugins you want them to use, or you could just zip the plugins located in the plugin folder and make that as a custom extra choice to apply when using your theme.

Resources