Skip to main content

Posts

How to remove woocommerce checkout fields?

Recent posts
Write a program in C to print the larger of three numbers  with  t he  help of   algorithm and flowchart. Algorithm: Step 1: Start Step 2: Read n1, n2, n3 Step 3: If n1>n2 and n1>n3 then                 Display “n1 is greater than n2 and n3”                 Else                 Goto step 4. Step 4: If n2>n1 and n2>n3 then                 Display “n2 is greater than n1 and n3”                 Else                 Goto step 5. Step 5: If n3>n1 and n3>n2 then                 Display “n3 is greater than n1 and n2”                 Else                 Display “both or all the no’s are equal” Step 6: Stop Flowchart  : Program:   #include <stdio.h> #include<conio.h> int main() {      int n1, n2, n3;      printf("\n Please Enter three different numbers\n");      scanf("%d %d %d", &n1, &n2, &n3);      if (n1 > n2 && n1 > n3)     {

How to add TextBox to display product price inside woocommerce single product page?

Adding TextBox to display product price inside woocommerce single product page -  Step -1 :  Write the following code inside your functions.php file -  add_action( 'woocommerce_after_add_to_cart_quantity', 'woocommerce_total_product_price', 31 ); function woocommerce_total_product_price() {       ?>      <input type="hidden" class="product-currency" value=<?php echo get_woocommerce_currency_symbol()?> />     <input type="text" id="product_total_price" readonly="readonly">     <input type="hidden" id="calculate_product_total_price" >     <?php } Step - 2 :  Create a js file as "test.js" and write the following code inside "test.js" file - jQuery(function($) {     /* Clearing product price textbox and hidden price textbox when clear link is clicked */   $('.reset_variations').on('click

Bubble Sort Algorithm in C

BUBBLE SORT  : Bubble sort is one of the simple sorting algorithm that sometimes referred to as sinking sort . It compares each pair of adjacent element and swaps them if they are in wrong order. Let us take an unsorted list of elements and sort them by applying this algorithm. Elements of the array -                                                                 9        3        6       7       1        5 Pass 1:                    9       3       6       7       1        5       arr[0] > arr[1], Exchange                   3      9       6        7       1        5       arr[1] > arr[2], Exchange                   3      6      9        7        1        5       arr[2] > arr[3], Exchange                   3      6      7        9         1         5       arr[3]> arr[4], Exchange                   3      6      7       1        9         5        arr[4]> arr[5], Exchange                       3      6       7       1       5        9 Pass 2:  

Selection Sort Algorithm in C

SELECTION SORT : There are several methods for sorting an array, selection sort is one of them. Let us take an unsorted list of elements and sort them by applying this algorithm. Elements of the array -                                                                   9        3        6       7       1        5 Pass 1:               9        3       6       7       1        5                 arr[0] > arr[1],  Exchange               3        9        6        7       1        5                 arr[0] < arr[2]               3        9       6       7        1        5                 arr[0] < arr[3]                3        9       6       7        1         5                 arr[0] > arr[4], Exchange               1        9       6       7       3        5                  arr[0] < arr[5]               1       9       6       7       3        5 Pass 2:                1        9         6        7       3        5                 a

How to customize header part of storefront theme in wordpress?

Solution:  You can easily customize storefront theme from functions.php of storefront child theme. With the help of storefront_header hook you can do that. The following code is used to remove storefront header default features- add_action("after_setup_theme", "storefront_child_header_remove"); function storefront_child_header_remove() {     remove_action("storefront_header","storefront_site_branding",20);     remove_action("storefront_header","storefront_secondary_navigation",30);     remove_action("storefront_header","storefront_product_search",40);     remove_action("storefront_header","storefront_primary_navigation_wrapper",42);     remove_action("storefront_header","storefront_primary_navigation",50);     remove_action("storefront_header","storefront_header_cart",60);     remove_action("storefront_header","storefront_pri

How to remove breadcrumb from woocommerce theme that uses storefront?

Solution: To remove breadcrumb and sidebar from your woocommerce child theme that uses storefront theme,  write the following code in functions.php. add_action (' after_setup_theme ',' removing_bredcrumb_sidebar '); function removing_bredcrumb_sidebar () { remove_action('storefront_content_top','woocommerce_breadcrumb',10);         remove_action( 'storefront_sidebar','storefront_get_sidebar',10 ); }