This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How Use => Add the below function in your theme's functions.php file | |
// Output => https://prnt.sc/z6zvnk | |
/** | |
* Thank you message modified to show vendor information on order received page as shown in screensho attached above | |
* | |
* @param string $thank_you_title | |
* @param obj $order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ADD BECOME MEMBER CHECKBOX AT CHECKOUT PAGE FOR CUSTOMER | |
*/ | |
function tkd_add_checkout_checkbox() { | |
woocommerce_form_field( 'checkout-checkbox', array( // CSS ID | |
'type' => 'checkbox', | |
'class' => array('form-row mycheckbox'), // CSS Class | |
'label_class' => array('woocommerce-form__label woocommerce-form__label-for-checkbox checkbox'), | |
'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox input-checkbox'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How Use => Add the below function in your theme's functions.php file | |
// Output => https://snipboard.io/dDeMmK.jpg | |
/** | |
* @snippet WooCommerce Add New Tab NOTIFICATION @ My Account | |
* @author Nazrul Kabir(www.nazrulkabir.com) | |
* @compatible WooCommerce 3.5.7 | |
*/ | |
// ------------------ | |
// 1. Register new endpoint to use for My Account page | |
// Note: Resave Permalinks or it will give 404 error |