This file contains hidden or 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
<?php | |
add_action("wp_footer", function () { | |
if (is_checkout()) { | |
echo '<script>jQuery(document).ready(function ($) { | |
setTimeout(function () { | |
let emailField = $("#billing_email"); | |
if (emailField.length > 0) { | |
emailField.trigger("change"); | |
} | |
}, 1000); |
This file contains hidden or 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
<?php | |
add_action('wp_footer',function(){ | |
$display = "none"; | |
if(is_front_page() || is_checkout()){ | |
$display = "block"; | |
} | |
echo "<style> | |
.rtl-launcher{ | |
display:{$display} !important; | |
} |
This file contains hidden or 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
<div class="email-product-list" style="padding: 15px 25px;"> | |
<?php | |
/** | |
* Order details table shown in emails. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). | |
* will need to copy the new files to your theme to maintain compatibility. We try to do this. | |
* as little as possible, but it does happen. When this occurs the version of the template file will. | |
* be bumped and the readme will list any important changes. | |
*/ |
This file contains hidden or 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
<?php | |
add_filter("wp_footer",function(){ | |
?> | |
<script> | |
document.addEventListener("DOMContentLoaded", function () { | |
let emailField = jQuery("input#billing_email"); | |
if (emailField.length > 0) { | |
emailField.trigger("change"); | |
} | |
}); |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Simple todo list</title> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js" | |
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | |
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" | |
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script> |
This file contains hidden or 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
<?php | |
add_filter('woocommerce_email_customizer_plus_short_code_values', function ($short_codes, $order, $args, $sample) { | |
/** | |
* @var $order \WC_Order | |
*/ | |
$payment_url = ""; | |
if (method_exists($order, 'get_checkout_payment_url')) { | |
$payment_url = $order->get_checkout_payment_url(); | |
} | |
$short_codes['order']['payment_url'] = $payment_url; |
This file contains hidden or 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
<?php | |
add_action("rnoc_referral_login_url",function($login_url){ | |
return "https://www.happynappy.ie/wp-login.php"; | |
}); | |
add_action("rnoc_referral_register_url",function($register_url){ | |
return "https://www.happynappy.ie/wp-login.php?action=register&redirect_to=https://www.happynappy.ie/my-account/"; | |
}); |
This file contains hidden or 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_filter('woocommerce_email_customizer_plus_additional_short_codes_list', 'wecpLoadAdditionalShortCodes', 10, 3); | |
function wecpLoadAdditionalShortCodes($additional_short_codes){ | |
$additional_short_codes['customer.role'] = 'get customer role'; | |
return $additional_short_codes; | |
} | |
add_filter('woocommerce_email_customizer_plus_short_code_values', 'wecpLoadAdditionalData', 10, 4); | |
function wecpLoadAdditionalData($short_codes, $order, $args, $sample){ | |
if (is_array($short_codes)) { | |
$user_role = ''; |
This file contains hidden or 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
<div class="email-product-list" style="padding: 15px 25px;"> | |
<?php | |
/** | |
* Order details table shown in emails. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). | |
* will need to copy the new files to your theme to maintain compatibility. We try to do this. | |
* as little as possible, but it does happen. When this occurs the version of the template file will. | |
* be bumped and the readme will list any important changes. | |
*/ |
This file contains hidden or 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
<div class="email-product-list" style="padding: 15px 25px;"> | |
<h6>Product details:</h6> | |
<?php | |
/** | |
* Order details table shown in emails. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). | |
* will need to copy the new files to your theme to maintain compatibility. We try to do this. | |
* as little as possible, but it does happen. When this occurs the version of the template file will. | |
* be bumped and the readme will list any important changes. |
NewerOlder