PluginProbe ʕ •ᴥ•ʔ
PiWeb Product Enquiry or product catalog for WooCommerce / 2.2.33.34
PiWeb Product Enquiry or product catalog for WooCommerce v2.2.33.34
2.2.34.43 2.2.34.42 2.2.34.41 2.2.34.40 2.2.34.39 trunk 2.2.22 2.2.26 2.2.33.16 2.2.33.17 2.2.33.19 2.2.33.20 2.2.33.21 2.2.33.22 2.2.33.23 2.2.33.24 2.2.33.26 2.2.33.27 2.2.33.29 2.2.33.30 2.2.33.31 2.2.33.32 2.2.33.33 2.2.33.34 2.2.33.36 2.2.33.37 2.2.33.39 2.2.33.40 2.2.33.41 2.2.33.42 2.2.33.43 2.2.33.44 2.2.33.46 2.2.33.47 2.2.33.49 2.2.34.0 2.2.34.1 2.2.34.10 2.2.34.11 2.2.34.12 2.2.34.13 2.2.34.14 2.2.34.16 2.2.34.17 2.2.34.19 2.2.34.2 2.2.34.20 2.2.34.21 2.2.34.22 2.2.34.23 2.2.34.24 2.2.34.26 2.2.34.27 2.2.34.29 2.2.34.3 2.2.34.30 2.2.34.31 2.2.34.32 2.2.34.33 2.2.34.34 2.2.34.36 2.2.34.37 2.2.34.4 2.2.34.6 2.2.34.7 2.2.34.9
enquiry-quotation-for-woocommerce / admin / class-eqw-menu.php
enquiry-quotation-for-woocommerce / admin Last commit date
css 1 year ago img 1 year ago js 1 year ago partials 1 year ago class-eqw-advance.php 1 year ago class-eqw-cart.php 1 year ago class-eqw-email.php 1 year ago class-eqw-enquiry.php 1 year ago class-eqw-form-control.php 1 year ago class-eqw-menu.php 1 year ago class-eqw-option.php 1 year ago class-eqw-product-options.php 1 year ago class-pisol-enquiry-quotation-woocommerce-admin.php 1 year ago index.php 1 year ago plugins.php 1 year ago
class-eqw-menu.php
144 lines
1 <?php
2
3 class Pi_Eqw_Menu{
4
5 public $plugin_name;
6 public $version;
7 public $menu;
8
9 function __construct($plugin_name , $version){
10 $this->plugin_name = $plugin_name;
11 $this->version = $version;
12 add_action( 'admin_menu', array($this,'plugin_menu') );
13 add_action($this->plugin_name.'_promotion', array($this,'promotion'));
14 }
15
16 function plugin_menu(){
17
18 $this->menu = add_submenu_page(
19 'edit.php?post_type=pisol_enquiry',
20 __( 'Enquiry Setting'),
21 __( 'Enquiry Setting'),
22 'manage_options',
23 'pisol-enquiry-quote',
24 array($this, 'menu_option_page')
25 );
26
27 add_action("load-".$this->menu, array($this,"bootstrap_style"));
28
29 }
30
31 public function bootstrap_style() {
32
33 wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js', array( 'jquery' ) );
34 wp_enqueue_script( 'selectWoo' );
35 wp_enqueue_style( 'select2', WC()->plugin_url() . '/assets/css/select2.css');
36
37 wp_enqueue_style( $this->plugin_name."_bootstrap", plugin_dir_url( __FILE__ ) . 'css/bootstrap.css', array(), $this->version, 'all' );
38
39 wp_enqueue_script( $this->plugin_name."_quick_save", plugin_dir_url( __FILE__ ) . 'js/pisol-quick-save.js', array('jquery'), $this->version, 'all' );
40
41 }
42
43 function menu_option_page(){
44 if(function_exists('settings_errors')){
45 settings_errors();
46 }
47 ?>
48 <div id="bootstrap-wrapper" class="pisol-setting-wrapper pisol-container-wrapper">
49 <div class="pisol-container mt-2">
50 <div class="pisol-row">
51 <div class="col-12">
52 <div class='bg-dark'>
53 <div class="pisol-row">
54 <div class="col-12 col-sm-2 py-2">
55 <a href="https://www.piwebsolution.com/" target="_blank"><img class="img-fluid ml-2" src="<?php echo esc_url( plugin_dir_url( __FILE__ ) ); ?>img/pi-web-solution.png"></a>
56 </div>
57 <div class="col-12 col-sm-10 d-flex pisol-top-menu">
58 <?php do_action($this->plugin_name.'_tab'); ?>
59 <!--<a class=" px-3 text-light d-flex align-items-center border-left border-right bg-info " href="https://www.piwebsolution.com/documentation-for-live-sales-notifications-for-woocommerce-plugin/">
60 Documentation
61 </a>-->
62 </div>
63 </div>
64 </div>
65 </div>
66 </div>
67 <div class="pisol-row">
68 <div class="col-12">
69 <div class="bg-light border pl-3 pr-3 pb-3 pt-0">
70 <div class="pisol-row">
71 <div class="col">
72 <?php do_action($this->plugin_name.'_tab_content'); ?>
73 </div>
74 <?php do_action($this->plugin_name.'_promotion'); ?>
75 </div>
76 </div>
77 </div>
78 </div>
79 </div>
80 </div>
81 <?php
82 }
83
84 function promotion(){
85 if(isset($_GET['tab']) && $_GET['tab'] == 'form_control') return;
86 ?>
87 <div class="col-12 col-sm-12 col-md-4 pt-3">
88 <a href="javascript:void(0)" class="btn btn-primary btn-sm mr-2" id="hid-pro-feature">Hide Pro Feature</a>
89 <div class="bg-primary text-center mb-3">
90 <a class="" href="<?php echo esc_url( PI_EQW_BUY_URL ); ?>" target="_blank">
91 <?php new pisol_promotion('pisol_enquiry_installation_date'); ?>
92 </a>
93 </div>
94
95 <div class="text-center mb-3 pi-shadow ">
96 <div class="pisol-row justify-content-center">
97 <div class="col-md-7">
98 <div class="p-2 text-center">
99 <img class="img-fluid" src="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>img/bg.svg">
100 </div>
101 </div>
102 </div>
103 <div class="text-center py-2">
104 <a class="btn btn-success btn-sm text-uppercase mb-2 " href="<?php echo esc_url(PI_EQW_BUY_URL); ?>&utm_ref=top_link" target="_blank">Buy Now !!</a>
105 <a class="btn btn-sm mb-2 btn-secondary text-uppercase" href="https://websitemaintenanceservice.in/enquiry_demo/" target="_blank">Try Demo</a>
106 </div>
107 <h2 id="pi-banner-tagline" class="mb-0">Get Pro for <?php echo esc_html(PI_EQW_PRICE); ?> Only</h2>
108 <div class="inside">
109 <ul class="text-left pisol-pro-feature-list">
110 <li class="border-top h6 "><span class="font-weight-bold ">Disable/Enable</span> enquiry for specific product category</li>
111 <li class="border-top h6 ">Support <span class="font-weight-bold ">variable products</span></li>
112 <li class="border-top h6 ">Show enquiry option only when the product is <span class="font-weight-bold ">out of stock</span></li>
113 <li class="border-top h6 "><span class="font-weight-bold ">Change the position</span> of the enquiry button on the product loop page and single product page</li>
114 <li class="border-top h6 "><span class="font-weight-bold ">Remove add to cart button</span> so you only receive enquiries</li>
115 <li class="border-top h6 "><span class="font-weight-bold ">Remove add to cart button</span> for products with enquiry enabled</li>
116 <li class="border-top h6 ">Add <span class="font-weight-bold ">multiple email id</span> to admin email list</li>
117 <li class="border-top h6 ">Adding custom message in <span class="font-weight-bold ">customer email</span></li>
118 <li class="border-top h6 ">Adding custom message in <span class="font-weight-bold ">admin email</span></li>
119 <li class="border-top h6 ">Modify the <span class="font-weight-bold ">success message</span> on form submission</li>
120 <li class="border-top h6 ">Making a form field as <span class="font-weight-bold ">Non required field</span></li>
121 <li class="border-top h6 ">Show a <span class="font-weight-bold ">dynamic cart</span> (that show the product count added in the enquiry cart and link to enquiry cart page)</li>
122 <li class="border-top h6 ">Insert inquiry cart on page using short code <span class="font-weight-bold ">[enquiry_cart_icon]</span></li>
123 <li class="border-top h6 "><span class="font-weight-bold ">Remove price column</span> from the enquiry cart and enquiry email </li>
124 <li class="border-top h6 ">Ask user to <span class="font-weight-bold ">accept terms and condition</span> before submitting the enquiry </li>
125 <li class="border-top h6 "><span class="font-weight-bold ">Disable the field</span> that you don't want in the enquiry form</li>
126 <li class="border-top h6 "><span class="font-weight-bold ">Change form field label</span> from within the plugin setting</li>
127 <li class="border-top h6 "><span class="font-weight-bold ">Change sequence</span> of the field in the enquiry form</li>
128 <li class="border-top h6 ">Remove <span class="font-weight-bold ">product specific message</span> column from enquiry cart</li>
129 <li class="border-top h6 ">Open <span class="font-weight-bold ">enquiry cart in a popup</span>, so user can submit enquiry right from the product page</li>
130 <li class="border-top h6 ">Customer can see submitted enquiries in <span class="font-weight-bold ">My enquiry section</span> (under my account of WooCommerce)</li>
131 </ul>
132 <a class="btn btn-primary mb-3" href="<?php echo esc_url( PI_EQW_BUY_URL ); ?>" target="_blank">Click to Buy Now</a>
133 </div>
134 </div>
135
136 </div>
137 <?php
138 }
139
140 function isWeekend() {
141 return (date('N', strtotime(date('Y/m/d'))) >= 6);
142 }
143
144 }