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
.ui-datepicker-calendar td a.ui-state-default { | |
background: green !important; | |
width:40px; | |
height:40px; | |
display:flex !important; | |
text-align:center !important; | |
justify-content:center; | |
align-items:center; | |
margin:auto; |
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('pisol_eqw_product_export', function($data, $product_data) { | |
$link = $product_data['link'] ?? ''; | |
$img = $product_data['img'] ?? ''; | |
return $link.' '.$img.' ' . $data; | |
}, 10, 2); |
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( 'gettext', function ( $translated_text, $text, $domain ) { | |
if ( 'pisol-enquiry-quotation-woocommerce' === $domain ) { | |
$translated_text = str_replace(['Enquiry', 'Enquiries'], ['Inquiry', 'Inquiries'], $translated_text); | |
} | |
return $translated_text; | |
}, 10, 3 ); |
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
class PISOL_Store_Manager_Custom_Field { | |
private static $instance = null; | |
private $meta_key = 'pickup_location_control'; | |
public static function get_instance() { | |
if ( self::$instance === null ) { | |
self::$instance = new self(); | |
} | |
return self::$instance; |
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
class pisol_dtt_use_options{ | |
static $instance = null; | |
static $name = 'pi_delivery_type'; | |
static function get_instance(){ | |
if(is_null(self::$instance)){ | |
self::$instance = new self(); | |
} |
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( 'weglot_translate_dynamics', '__return_true' ); | |
add_filter( 'weglot_whitelist_selectors', function ( $default_dynamics ) { | |
return [ | |
['value' => '.pi-edd'] | |
]; | |
} ); | |
add_filter( 'weglot_dynamics_selectors', function ( $default_dynamics ) { | |
return [ | |
['value' => '.pi-edd'] | |
]; |
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_package_rates', function($rates, $package) { | |
if( !class_exists('pi_dtt_delivery_type') ) return $rates; | |
$type = pi_dtt_delivery_type::getType(); | |
if($type == 'delivery' ) return $rates; | |
$pickup_location = WC()->session->get('pickup_location'); | |
if(empty($pickup_location)) return $rates; | |
$local_pickup_location_relation = [ | |
'4283' => 'local_pickup:2166', |
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
if(!class_exists('Pi_cefw_selection_rule_custom_20250731') && defined('PI_CEFW_SELECTION_RULE_SLUG')){ | |
class Pi_cefw_selection_rule_custom_20250731{ | |
public $slug; | |
public $condition; | |
function __construct($slug){ | |
$this->slug = $slug; | |
$this->condition = 'custom_company_non_company'; | |
/* this adds the condition in set of rules dropdown */ | |
add_filter("pi_".$this->slug."_condition", array($this, 'addRule')); |
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('pisol_dtt_time_slot_filter', function($time_slots) { | |
foreach ($time_slots as &$slot) { | |
if (isset($slot['text'])) { | |
$parts = explode(' - ', $slot['text']); | |
$slot['text'] = trim($parts[0]); | |
} | |
} | |
return $time_slots; | |
}, 10); |
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('pisol_edd_get_product_data', function($data, $object){ | |
$disable_for_category = [17, 18]; | |
if($object->product->is_type('variation')){ | |
$parent_id = $object->product->get_parent_id(); | |
$parent_product = wc_get_product($parent_id); | |
$category_ids = $parent_product->get_category_ids(); | |
}else{ | |
$category_ids = $object->product->get_category_ids(); | |
} |