PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.62
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.62
3.0.63 3.0.62 3.0.61 3.0.60 3.0.49.49 3.0.49.6 3.0.49.60 3.0.49.61 3.0.49.62 3.0.49.63 3.0.49.64 3.0.49.66 3.0.49.67 3.0.49.69 3.0.49.7 3.0.49.70 3.0.49.72 3.0.49.73 3.0.49.74 3.0.49.76 3.0.49.77 3.0.49.79 3.0.49.9 3.0.49.90 3.0.49.91 3.0.49.92 3.0.49.93 3.0.49.94 3.0.49.96 3.0.49.97 3.0.49.99 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 2.9.17 3.0.47 3.0.49 3.0.49.1 3.0.49.10 3.0.49.11 3.0.49.12 3.0.49.13 3.0.49.16 3.0.49.17 3.0.49.19 3.0.49.2 3.0.49.20 3.0.49.21 3.0.49.22 3.0.49.23 3.0.49.24 3.0.49.26 3.0.49.27 3.0.49.29 3.0.49.3 3.0.49.30 3.0.49.31 3.0.49.32 3.0.49.33 3.0.49.34 3.0.49.36 3.0.49.37 3.0.49.39 3.0.49.4 3.0.49.40 3.0.49.41 3.0.49.42 3.0.49.43 3.0.49.44 3.0.49.46 3.0.49.47
pi-woocommerce-order-date-time-and-type / admin / options-pickup.php
pi-woocommerce-order-date-time-and-type / admin Last commit date
css 3 weeks ago img 3 weeks ago js 3 weeks ago partials 3 weeks ago class-accesscontrol.php 3 weeks ago class-adv-order-filter.php 3 weeks ago class-analytics.php 3 weeks ago class-order-tip-promotion.php 3 weeks ago class-pi-dtt-labels.php 3 weeks ago class-pi-dtt-order-table.php 3 weeks ago conflict-fixer.php 3 weeks ago menu.php 3 weeks ago options-accesscontrol.php 3 weeks ago options-addons.php 3 weeks ago options-date.php 3 weeks ago options-limit.php 3 weeks ago options-pickup.php 3 weeks ago options-time-slot.php 3 weeks ago options-time.php 3 weeks ago options.php 3 weeks ago
options-pickup.php
121 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3
4 class pisol_dtt_option_pickup_location{
5
6 private $settings = array();
7
8 private $active_tab;
9
10 private $this_tab = 'pickup_location';
11
12 private $tab_name = "Pickup Locations";
13
14 private $setting_key = 'pisol_dtt_pickup_location';
15
16 public $tab;
17
18 function __construct(){
19
20 $this->tab = sanitize_text_field(filter_input( INPUT_GET, 'tab'));
21 $this->active_tab = $this->tab != "" ? $this->tab : 'default';
22
23 $this->settings = array(
24 array('field'=>'color-setting1', 'class'=> 'bg-dark opacity-75 text-light hide-pro', 'class_title'=>'text-light font-weight-light h4', 'label'=>__('Pickup locations','pisol-dtt'), 'type'=>'setting_category', 'links' => [
25 [
26 "name" => "Read more about this",
27 "url" => "https://www.piwebsolution.com/user-documentation/#Pickup_Location_Settings"
28 ]
29 ]),
30
31 array('field'=>'pi_pickup_address_1', 'label'=>__('Pickup Location One','pisol-dtt'),'desc'=>__('Type your pickup address in this text box','pisol-dtt'), 'type'=>'textarea'),
32
33 array('field'=>'pi_pickup_address_2', 'label'=>__('Pickup Location Two','pisol-dtt'),'desc'=>__('Type your pickup address in this text box','pisol-dtt'), 'type'=>'textarea'),
34 );
35
36
37 if($this->this_tab == $this->active_tab){
38 add_action('pisol_dtt_tab_content', array($this,'tab_content'));
39 }
40
41 add_action('pisol_dtt_tab', array($this,'tab'),4);
42
43
44 $this->register_settings();
45
46 if(PISOL_DTT_FREE_RESET_SETTING){
47 $this->delete_settings();
48 }
49
50 }
51
52 function delete_settings(){
53 foreach($this->settings as $setting){
54 delete_option( $setting['field'] );
55 }
56 }
57
58 function register_settings(){
59
60 foreach($this->settings as $setting){
61 register_setting( $this->setting_key, $setting['field']);
62 }
63
64 }
65
66 function tab(){
67 $page = sanitize_text_field(filter_input( INPUT_GET, 'page'));
68 $this->tab_name = __('Pickup Locations','pisol-dtt');
69 ?>
70 <a class=" pi-side-menu <?php echo ($this->active_tab == $this->this_tab ? 'bg-primary' : 'bg-secondary'); ?>" href="<?php echo esc_url( admin_url( 'admin.php?page='.$page.'&tab='.$this->this_tab ) ); ?>">
71 <span class="dashicons dashicons-location"></span> <?php echo esc_html($this->tab_name); ?>
72 </a>
73 <?php
74 }
75
76 function tab_content(){
77 ?>
78 <form method="post" action="options.php" class="pisol-setting-form">
79 <?php settings_fields( $this->setting_key ); ?>
80 <?php
81 foreach($this->settings as $setting){
82 new pisol_class_form($setting, $this->setting_key);
83 }
84 ?>
85
86 <input type="submit" name="submit" id="submit" class="btn btn-primary btn-lg my-3" value="<?php echo esc_attr__('Save Changes','pisol-dtt'); ?>">
87 </form>
88 <div class="alert alert-info my-3 text-center">
89 <h2 class="h5">Pro version allows you to add <i><u>unlimited</u></i> number of pickup locations<h2>
90 <a class="btn btn-primary btn-lg" href="<?php echo esc_url( PISOL_DTT_BUY_URL ); ?>" target="_blank">Click to Buy Now</a>
91 </div>
92 <p>The below addon allows you to offer different date and time for different pickup location or delivery zone. This addon works along with the PRO version only and has to be purchased separately (it is not part of the core Order date and time PRO)</p>
93 <div class="border p-2 my-3">
94 <div class="row align-items-center">
95 <div class="col-12 col-md-5">
96 <iframe style="width:100%; height:230px;" src="https://www.youtube.com/embed/4lJdvR_s6gc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
97 </div>
98 <div class="col-12 col-md-7">
99 <h3>Different date time for Different pickup stores and Different delivery areas PRO (Add-on for pro plugin)</h3>
100 <ul>
101 <li>Offer different Time for different pickup stores</li>
102 <li>Set different working days for different pickup stores</li>
103 <li>Offer different Time for different delivery zones ( WooCommerce Shipping Zones )</li>
104 </ul>
105 <div class="py-2 text-right">
106 <a class="btn btn-md btn-primary" href="https://www.piwebsolution.com/cart/?add-to-cart=6068&amp;variation_id=6069" target="_blank">Buy Now</a>
107 </div>
108 </div>
109 </div>
110 </div>
111 <?php
112 }
113
114
115 }
116
117 add_action('init', function(){
118 /* if we have pro version setting for time tab then we can disable this */
119 new pisol_dtt_option_pickup_location();
120 });
121