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('woocommerce_new_order','rnoc_woocommerce_new_order',10,1); | |
function rnoc_woocommerce_new_order($order_id){ | |
$no_of_orders_in_session = rnoc_orders_per_session_count(); | |
WC()->session->set('rnoc_orders_per_session_count',$no_of_orders_in_session + 1); | |
} | |
add_filter('rnoc_can_track_abandoned_carts','rnoc_can_track_abandoned_carts',20); | |
function rnoc_can_track_abandoned_carts($can_track){ | |
$no_of_orders_in_session = rnoc_orders_per_session_count(); |
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 | |
/* | |
* @package plg_j2store_emailbasket | |
* @subpackage J2Store | |
* @author Gokila Priya - Weblogicx India http://www.weblogicxindia.com | |
* @copyright Copyright (c) 2014 Weblogicx India Ltd. All rights reserved. | |
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html | |
* -------------------------------------------------------------------------------- | |
*/ |
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_additional_short_codes_list',function($additional_short_codes){ | |
$order_id = 803; | |
$order_meta_keys = get_post_custom_keys($order_id); | |
if (!empty($order_meta_keys)) { | |
$order_meta_values = get_post_meta($order_id); | |
foreach ($order_meta_keys as $order_meta_key) { | |
if (isset($order_meta_values[$order_meta_key]) && isset($order_meta_values[$order_meta_key][0])) { | |
$order_meta_key_for_short_code = str_replace(' ', '_', $order_meta_key); | |
$key = 'order_meta.'.$order_meta_key_for_short_code; |
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 | |
/** | |
* Retainful | |
*/ | |
add_action( 'wc_ajax_wc_bookings_find_booked_day_blocks', 'rnoc_find_booked_day_blocks',9); | |
function rnoc_find_booked_day_blocks() | |
{ | |
$product_id = absint($_GET['product_id']); | |
if (empty($product_id)) { | |
wp_send_json_error('Missing product ID'); |
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 | |
namespace MABEL_WOF_LITE\Code\Controllers | |
{ | |
use MABEL_WOF_LITE\Code\Models\Wheel_Model; | |
use MABEL_WOF_LITE\Code\Models\Wheels_VM; | |
use MABEL_WOF_LITE\Code\Services\Log_Service; | |
use MABEL_WOF_LITE\Code\Services\MailChimp_Service; | |
use MABEL_WOF_LITE\Code\Services\Wheel_service; |
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 | |
/* | |
Class Name: VI_WOO_LUCKY_WHEEL_Frontend_Frontend | |
Author: Andy Ha ([email protected]) | |
Author URI: http://villatheme.com | |
Copyright 2015 villatheme.com. All rights reserved. | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} |
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('rnoc_before_displaying_next_order_coupon', "rnoc_before_displaying_next_order_coupon", 10, 2); | |
/** | |
* @param $message | |
* @param $order \WC_Order | |
* @return string | |
*/ | |
function rnoc_before_displaying_next_order_coupon($message, $order) | |
{ | |
if (method_exists($order, 'get_billing_email')) { | |
$order_email = $order->get_billing_email(); |
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('rnoc_recover_cart_before_validate_coupon', 'rnoc_recover_cart_before_validate_coupon'); | |
function rnoc_recover_cart_before_validate_coupon($code) { | |
if (substr($code, 0, 5) === "wccs_") { | |
return null; | |
} | |
return $code; | |
} |