If you want to skip cart and want to go direct checkout page, you can add following type URL as your button URL https://Your_site_URL/checkout/?add-to-cart=product_id For…
Continue ReadingTo make woocommerce product orders autocomplete you can use this code /** * Auto Complete WooCommerce orders. */ add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); function custom_woocommerce_auto_complete_order( $order_id…
Continue ReadingTo get woocommerce product sale amount , you can use this shortcode add_shortcode( 'sales', 'show_sales_by_product_id' ); function show_sales_by_product_id( $atts ) { $atts = shortcode_atts( array(…
Continue ReadingTo Remove the wordpress admin bar from the frontend you can use this code in your function file add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator')…
Continue ReadingTo add custom CSS in the wordpress admin area, you can use this function, in your function file function my_custom_css() { echo '<style> .post-type-product #ovaem_sectionid…
Continue ReadingTo add custom meta field in the product single page and save the field data then get value, Need to add this following code You…
Continue ReadingIf you want to add any custom field in your registration page, then you need to follow the following four steps: First, need to add…
Continue ReadingNowadays, WordPress is the most frequently used CMS and has a 39% market share of all websites worldwide. Additionally, it has a large number of…
Continue ReadingIt is a really wrong way to use $_SERVER. You can alternatively use the $wp global to get the current URL – it’s the same thing in…
Continue ReadingIt is a common question “Introduce Yourself” in a job or any interview. But many of us face difficulties in introducing ourselves .So, today I’m…
Continue Reading