Skip to content

Instantly share code, notes, and snippets.

View nazrul-kabir's full-sized avatar
🎯
Focusing

Nazrul Kabir nazrul-kabir

🎯
Focusing
View GitHub Profile
@nazrul-kabir
nazrul-kabir / dokan_thank_you_order_received_text_modified
Last active February 12, 2021 08:17 — forked from alamgircsebd/dokan_thank_you_order_received_text_modified
Thank you message modified to vendor info on order received page
// 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
@nazrul-kabir
nazrul-kabir / functions.php
Last active February 26, 2021 14:30 — forked from voboghure-dev/functions.php
Add a checkbox in checkout page for customer whether wants to be a member & send customer details to admin email
/**
* 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'),
@nazrul-kabir
nazrul-kabir / functions.php
Last active February 26, 2021 09:37
WooCommerce: Add New “Tab” @ My Account Page
// 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