Customizing WooCommerce Plugin
- May 9, 2018
WooCommerce plugin is a plugin for WordPress to make the WordPress site, an E-commerce site. Many peoples have misunderstood wooCommerce as the platform to make e-commerce site because of its vague nature of handling product, carts, shipping, and payments. This plugin is used by more than 40 million people to run an online business.
Developers also prefer this plugin because it gives many features which help us make our website work on automation. It also supports the API outside of WordPress, customers can give reviews, tax calculations according to customer address. In addition, recommendation of upselling and cross-selling is possible here. Admin can manage the visibility of the product.
The basic page of WooCommerce are:
- Cart Page
- Checkout Page
- Account Page
- Shop Page
Customizing WooCommerce Plugin
- Duplicate page.php and rename it to woocommerce.php
- Create a new folder and name it woocommerce.
- Copy all the files and folders from template folder of woocommerce plugin and paste it into the woocommerce folder of the theme file.
- Adding some text: Add hook in function.php to change or add the text
- Edit or overwrite the same class or function created by woocommerce in CSS for customizing.
Files to work on to customize the page
archive-products..php – shop page
single-product.php-> content-single-product.php – single product page.