• WooCommerce Poor Guys Swiss Knife seems to be no longer updated.

    Is anybody know a similar plugin which could do same things as WooCommerce Poor Guys Swiss Knife ?
    ..like, configure the Checkout Billing Section and the Checkout Shipping Section and for exemple:
    – define which field to delete
    – define to check or uncheck required fields
    – define placeholder
    ..or other options like :
    – define product items per page

    Or do you know if some other authors/developpers have taken this over ?

    Thank you very much for help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Ben

    Don’t know of any other plugin that does all of the things that this one does. I’ve been modifying my functions file to make the changes. As an example, you can put this in your functions.php file:

    add_filter( 'woocommerce_checkout_fields' , 'alter_woocommerce_checkout_fields' );
    function alter_woocommerce_checkout_fields( $fields ) {
         unset($fields['billing']['billing_first_name']); // remove the customer's First Name for billing
         unset($fields['billing']['billing_last_name']); // remove the customer's last name for billing
         unset($fields['billing']['billing_company']); // remove the option to enter in a company
         unset($fields['billing']['billing_address_1']); // remove the first line of the address
         unset($fields['billing']['billing_address_2']); // remove the second line of the address
         unset($fields['billing']['billing_city']); // remove the billing city
         unset($fields['billing']['billing_postcode']); // remove the ZIP / postal code field
         unset($fields['billing']['billing_country']); // remove the billing country
         unset($fields['billing']['billing_state']); // remove the billing state
         unset($fields['billing']['billing_email']); // remove the billing email address - note that the customer may not get a receipt!
         unset($fields['billing']['billing_phone']); // remove the option to enter in a billing phone number
         unset($fields['shipping']['shipping_first_name']);
         unset($fields['shipping']['shipping_last_name']);
         unset($fields['shipping']['shipping_company']);
         unset($fields['shipping']['shipping_address_1']);
         unset($fields['shipping']['shipping_address_2']);
         unset($fields['shipping']['shipping_city']);
         unset($fields['shipping']['shipping_postcode']);
         unset($fields['shipping']['shipping_country']);
         unset($fields['shipping']['shipping_state']);
         unset($fields['account']['account_username']); // removing this or the two fields below would prevent users from creating an account, which you can do via normal WordPress + Woocommerce capabilities anyway
         unset($fields['account']['account_password']);
         unset($fields['account']['account_password-2']);
         unset($fields['order']['order_comments']); // removes the order comments / notes field
         return $fields;
    }

    The above code removes all/most boxes from the checkout page. So you just need to adjust the code above to show/unshow the fields that you want.

    Granted – it’s not as easy as using a plugin to do it, but it’s the only thing I got =)

    Note: you should actually create a Child Theme and put the code in the functions.php file for the child theme, not the parent theme!

    Thread Starter Ben

    (@ben69007)

    Hello @hickman120 and thank you very much for your help !

    This do exactly what I wanted, but only on the checkout page. I would like to do it on it but on the user account too (on the billing section, the shipping section and on account details/modification). I suppose this is the same kind of code but with other filter.

    Concerning plugins, visibly the plugin Booster for woocommerce would do things like that. I try to see what could be done with the free version.

    Thank you very much again for this tips.
    I put it in my notes for the eventuality to include it to my functions.php file
    I wish you a good week

    Yes you can use Booster for WooCommerce.It has some cool features.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alternative to WooCommerce Poor Guys Swiss Knife’ is closed to new replies.