Amit
WooCommerce, WordPress

How to insert contact form 7 data into mysql database in wordpress

First you need to Create a table and add fields example “contacts” and table fields are below id , form_id, first_name, last_name, email_id, phone_no, subject, message, date if you not able to create any table. just copy the below code and pest in to your functions.php file function ab_create_table_contact_form() {…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce, WordPress

How to hide media uploads by other users in WordPress

This code hides all posts and media that do not belong to the currently logged in author (you can change it to apply to other user roles). It also fixes the post and media count on the filter bars (e.g. All | Images | Videos | Unattached). You’ve to copy…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

Limit the number of cart items in Woocommerce

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

WooCommerce Order limit by Customer

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

Hide Price If Product Is Not in Stock

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce, WordPress

Configure SMTP on WordPress without using a plugin

Using the WordPress API :Instead of using a third-party plugin to handle e-mail for your site, you can develop your own custom code and use the wp_mail() function in the WordPress API. The following procedure demonstrates how to send e-mail messages using SMTP authentication. The broader topic of how to…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

Display the Sale price before Regular price in WooCommerce

If you want to display the sale price before regular price, add the following code in the functions.php file

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

Display Regular And Sale Price in WooCommerce Cart Table

If you want to display regular and sale price in the cart table. add the following code in the functions.php file

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce

How to create custom related products in woocommerce using functions.

Step 1: First we need to remove our existing related products from single product page. you can use below code on your functions.php file. Step 2: Now we need to write a related product functions and add the functions of ‘woocommerce_after_single_product_summary’ hook. check the below and copy, paste the code…

Learn More

By Amit Bera

3 years ago
Share
Comments
WooCommerce, WordPress

How to create custom Gutenberg blocks in WordPress.

Follow the steps below on how to create Gutenberg block with code: Register Assets & Block Type Note: if you need to design edit-block on dashboard. create block-admin.css and must use “wp-editor-block” in array format. 2. The Basic Script The snippet below is a starting point for creating a custom…

Learn More

By Amit Bera

3 years ago
Share
Comments
View more