Create a text field in the product data field in the product Data section in woocommerce

// image 5 function add_image_5_meta_field() {   global $post;   // Get the existing value   $image_5 = get_post_meta($post->ID, ‘image_5’, true);   // Output the field   echo ‘<div class=”options_group”>’;   woocommerce_wp_text_input(     array(       ‘id’     => ‘image_5’,       ‘label’    => __(‘Image_5’, ‘woocommerce’), // Updated label       ‘placeholder’ => __(‘Enter Image_5 Time’, ‘woocommerce’),       ‘desc_tip’  => ‘true’,       ‘description’ => __(‘This is a custom meta field for Image_5 time.’, ‘woocommerce’),… Continue reading Create a text field in the product data field in the product Data section in woocommerce

Create a custom field on the WooCommerce Category Admin page

function add_custom_category_image() {   ?>   <div class=”form-field”>     <label for=”category_image”><?php esc_html_e(‘Category Image’, ‘textdomain’); ?></label>     <input type=”text” name=”category_image” id=”category_image” value=””>     <p class=”description”><?php esc_html_e(‘Enter category image URL for this category.’, ‘textdomain’); ?></p>   </div>   <?php } add_action(‘product_cat_add_form_fields’, ‘add_custom_category_image’, 10, 2); // Save custom category image data when creating or updating a category function save_custom_category_image($term_id) {   if (isset($_POST[‘category_image’])) {     update_term_meta($term_id, ‘category_image’,… Continue reading Create a custom field on the WooCommerce Category Admin page

To Overide the WooCommerce Templates

add_theme_support( ‘woocommerce’ );  need to Add the following to functions.php After adding this we can override the WooCommerce templates like Archieve-product.php Taxnomy-product_cat.php Single-product.php Files for the Category main page which includes the main categories and the next file includes the subcategory category and Product page with the category is listed in the Taxnomy-product_cat.php file And… Continue reading To Overide the WooCommerce Templates

Retrieve WooCommerce consumer key and consumer secret

Sign in to your WooCommerce account. Navigate to WooCommerce > Settings > API > Keys/Apps Click Add key. Add a description and select the WordPress user for which you want to generate the key. Choose the level of access for this REST API key. Access levels include Read access, Write access, or Read/Write access. Click Generate API key and WooCommerce will generate REST API keys for the selected user. Now that keys have… Continue reading Retrieve WooCommerce consumer key and consumer secret

Upsells and cross sells in WooCommerce Store.

WooCommerce cross-sells and upsells are both marketing strategies to get customers to increase their average order value by offering relevant product recommendations on the product page, in the cart, or at the checkout. These two terms are often used interchangeably but actually refer to two distinctly different marketing techniques. Upsell means you “offer the same type of product… Continue reading Upsells and cross sells in WooCommerce Store.

Set up payment methods in Woo Commerce store.

Woo commerce provides a number of pay methods manually by itself.  It consists of   Direct bank transfer  Check Payments  Cash on delivery  All this are the safes methods inn case of customers.  For payment options like credit card, google pay etc. the help of an external source is required.  For this several options are there… Continue reading Set up payment methods in Woo Commerce store.

Creating up of a coupon code in WooCommerce store.

This is an import thing in case of user interaction.  This helps to make the site more user friendly and happy customers.  To use coupons with WooCommerce.  Go to:  WooCommerce > Settings > General > Enable coupons  Tick the checkbox to Enable the use of coupon codes.  Save Changes.  Create a new coupon by selecting… Continue reading Creating up of a coupon code in WooCommerce store.

Set the product type and inventory management in WooCommerce

To add a variable product, create a new product or edit an existing one.  Go to: WooCommerce > Products.  Select the Add Product button or Edit an existing product. The Product Data displays.  Select Variable product from the Product Data dropdown We can also create variable , downloadable and grouped projects and made it push… Continue reading Set the product type and inventory management in WooCommerce

Adding products into the WooCommerce store:

Adding products into the store is an interesting thing were we can add products by giving the description , images and many other things.  Lets take a look at some terms related to products.  Product categories and tags work in much the same way as normal categories and tags you have when writing posts in… Continue reading Adding products into the WooCommerce store:

How to solve “Error: MySQL shutdown unexpectedly”? (XAMPP issue)

The issue happens for me while I started to open MySQL in XAMP and it is opening but suddenly shuting down .  The problem might not be related to wordpress but the files in the xampp folder.  Re arranging the files make the database disappear so I have to start implement this from scratch.I don’t… Continue reading How to solve “Error: MySQL shutdown unexpectedly”? (XAMPP issue)