plugins/woocommerce/sample_products.csv (wp-admin > tools > import > Woocommerce products(CSV))functions.php > "after_setup_them" hook >
add_theme_support("woocommerce",
array(
"thumbnail_image_width" => 150,
"single_image_width" => 200,
“product_grid”=>array()
)
);
Before theme support, shop and single product will be displayed by theme's index.php
After theme support, shop > archive-product.php and single > single-product.php from plugin's directory
function sample_function() {
}
add_action(“my_action_name”, “sample_function”, priority);
do_action(“my_action_name”); //Do action triggers the action named my_action_name
remove_action(“hook_name”, “function_name”);
plugins/woocommerce/templates folder and paste to theme’s root. Rename templates > woocommerce.checkout/form-checkout.phpWooCommerce > Settings > Paymentspnpm install buffer
npm install stream-browserify
Add the following line withing resolve of webpack
fallback: {
stream: require.resolve('stream-browserify'),
},