October 22, 2020

Woocommerce: checkout form remove label and add placeholder

 

checkout form remove label and add placeholder


- Woocommerce allow you to remove any property of $field->property by using unset,

- Reference can be here: Customizing checkout fields using actions and filters,

- Here simple example of checkout form remove label and add placeholder,


e.g:

add_filter('woocommerce_checkout_fields','wc_checkout_fields_remove_callback');

function wc_checkout_fields_remove_callback($fields) {

    foreach ($fields as $cat => $value) {

        foreach ($fields[$cat] as $field => $prop) {

            unset($fields[$cat][$field]['label']);

        }

    }

   return $fields;

}


Enjoy!

October 19, 2020

In JavaScript simple script for print specific part of website.

 



- You can easly print any part of webpage means any specific div using javascript,

- Please follow simple below steps for that:

e.g.:

HTML

    <div id="any_id_name">

      <p>Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>

     </div>

JavaScript

    <script type="text/javascript">

var prtContent = document.getElementById("any_id_name");

var WinPrint = window.open('', '', 'width=500,height=500,scrollbars=0,status=0');

WinPrint.document.write(prtContent.innerHTML);

WinPrint.document.close();

WinPrint.focus();

WinPrint.print();

WinPrint.close();

</script>

Note: Please change width and height as per your requirenment of popup size.

Enjoy!

August 5, 2020

Laravel development server started but not working in URL


  • I face same issue when I try to installed Laravel in my localhost

    - In command line Go to your laravel installed directory,

    e.g. : C:\xampp\htdocs\your-project\ php -S localhost:8000 -t public/
    
    - Now try again with: php artisan serve command and open in URL http://localhost:8000

Enjoy!

OpenCart how to change copyright text from admin?


    

  • In this post, you will get help to change footer copyright text/notification from admin.

  • Please follow below steps:
  1. First login in admin panel and than go to the Design -> Language Editor.
  2. Click Add New in the top right side.
        

    
    3. Select Language, Route: common/footer, key: text_powered.
    
    

    4. Insert your value in last textarea (You can used HTML content here!)
    
    Enjoy!

September 5, 2019

WordPress - best page builder plugins in 2019



- There are so many plugins available for build page on WordPress!

1. Elementor: (Free and Paid both plugin available)


- Pricing
- Features
- Free Download
- Pro Version


2. Cornerstone: (Only Paid both plugin available)

 - Features
 - Pro Version


3. Visual Composer: (Free and Paid both plugin available)

Free Download
Pro Version
Features


Enjoy!

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...