WooLentor – Elementor WooCommerce Builder Addons, Variation Swatches Addons, Gutenberg WooCommerce Product block, grid, slider, templates, widgets, Quick View, Wishlist, Products Compare, Product Filter – All in One Solution - Version 2.3.0

Version Description

Download this release

Release Info

Developer devitemsllc
Plugin Icon 128x128 WooLentor – Elementor WooCommerce Builder Addons, Variation Swatches Addons, Gutenberg WooCommerce Product block, grid, slider, templates, widgets, Quick View, Wishlist, Products Compare, Product Filter – All in One Solution
Version 2.3.0
Comparing to
See all releases

Code changes from version 2.2.9 to 2.3.0

assets/css/product-grid.css CHANGED
@@ -150,7 +150,7 @@
150
  top: 7px;
151
  right: 10px;
152
  }
153
- .ht-product-2 .ht-product-image-wrap-2 .ht-product-action-2 ul li a.htcompare-btn.added::after,.ht-product-2 .ht-product-content-2-wrap .ht-product-action-5 ul li a.htcompare-btn.added::after,.ht-product-2 .ht-product-content-2-wrap .ht-product-action-6 ul li a.htcompare-btn.added::after,.elementor-widget-wl-product-grid .wishsuite-btn-text{
154
  display: none;
155
  }
156
  .ht-product-2 .ht-product-content-2 .ht-price-addtocart-wrap [class*="ht-addtocart"] a{
150
  top: 7px;
151
  right: 10px;
152
  }
153
+ .ht-product-2 .ht-product-image-wrap-2 .ht-product-action-2 ul li a.htcompare-btn.added::after,.ht-product-2 .ht-product-content-2-wrap .ht-product-action-5 ul li a.htcompare-btn.added::after,.ht-product-2 .ht-product-content-2-wrap .ht-product-action-6 ul li a.htcompare-btn.added::after,.elementor-widget-wl-product-grid .woolentor-products .wishsuite-btn-text{
154
  display: none;
155
  }
156
  .ht-product-2 .ht-product-content-2 .ht-price-addtocart-wrap [class*="ht-addtocart"] a{
classes/class.assest_management.php CHANGED
@@ -115,19 +115,6 @@ class Assets_Management{
115
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/modules/flash-sale/assets/css/flash-sale.css',
116
  'version' => WOOLENTOR_VERSION,
117
  ],
118
-
119
- 'woolentor-admin' => [
120
- 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/woolentor-admin.css',
121
- 'version' => WOOLENTOR_VERSION
122
- ],
123
- 'woolentor-selectric' => [
124
- 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/css/selectric.css',
125
- 'version' => WOOLENTOR_VERSION
126
- ],
127
- 'woolentor-temlibray-style' => [
128
- 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/tmp-style.css',
129
- 'version' => WOOLENTOR_VERSION
130
- ],
131
  'woolentor-store-feature' => [
132
  'src' => WOOLENTOR_ADDONS_PL_URL . 'assets/css/store-feature.css',
133
  'version' => WOOLENTOR_VERSION
@@ -155,6 +142,23 @@ class Assets_Management{
155
  'version' => WOOLENTOR_VERSION,
156
  'deps' => [ 'slick','simple-line-icons-wl' ]
157
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
159
 
160
  ];
@@ -231,13 +235,15 @@ class Assets_Management{
231
  'deps' => [ 'jquery', 'countdown-min' ]
232
  ],
233
 
234
-
235
  'woolentor-admin-main' =>[
236
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/js/woolentor-admin.js',
237
  'version' => WOOLENTOR_VERSION,
238
  'deps' => [ 'jquery', 'wp-util', 'serializejson' ]
239
  ],
240
-
 
 
 
241
  'woolentor-modernizr' => [
242
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/js/modernizr.custom.63321.js',
243
  'version' => WOOLENTOR_VERSION,
@@ -310,9 +316,14 @@ class Assets_Management{
310
  'nonce' => wp_create_nonce( 'woolentor_save_opt_nonce' ),
311
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
312
  'message'=>[
313
- 'btntxt' => esc_html__( 'Save Changes', 'move' ),
314
- 'loading' => esc_html__( 'Saving...', 'move' ),
315
- 'success' => esc_html__( 'Saved All Data', 'move' ),
 
 
 
 
 
316
  ],
317
  'option_data' => [],
318
 
115
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/modules/flash-sale/assets/css/flash-sale.css',
116
  'version' => WOOLENTOR_VERSION,
117
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  'woolentor-store-feature' => [
119
  'src' => WOOLENTOR_ADDONS_PL_URL . 'assets/css/store-feature.css',
120
  'version' => WOOLENTOR_VERSION
142
  'version' => WOOLENTOR_VERSION,
143
  'deps' => [ 'slick','simple-line-icons-wl' ]
144
  ],
145
+
146
+ 'woolentor-admin' => [
147
+ 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/woolentor-admin.css',
148
+ 'version' => WOOLENTOR_VERSION
149
+ ],
150
+ 'woolentor-selectric' => [
151
+ 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/css/selectric.css',
152
+ 'version' => WOOLENTOR_VERSION
153
+ ],
154
+ 'woolentor-sweetalert' => [
155
+ 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/css/sweetalert2.min.css',
156
+ 'version' => WOOLENTOR_VERSION
157
+ ],
158
+ 'woolentor-temlibray-style' => [
159
+ 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/tmp-style.css',
160
+ 'version' => WOOLENTOR_VERSION
161
+ ],
162
 
163
 
164
  ];
235
  'deps' => [ 'jquery', 'countdown-min' ]
236
  ],
237
 
 
238
  'woolentor-admin-main' =>[
239
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/js/woolentor-admin.js',
240
  'version' => WOOLENTOR_VERSION,
241
  'deps' => [ 'jquery', 'wp-util', 'serializejson' ]
242
  ],
243
+ 'woolentor-sweetalert' => [
244
+ 'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/js/sweetalert2.min.js',
245
+ 'version' => WOOLENTOR_VERSION
246
+ ],
247
  'woolentor-modernizr' => [
248
  'src' => WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/js/modernizr.custom.63321.js',
249
  'version' => WOOLENTOR_VERSION,
316
  'nonce' => wp_create_nonce( 'woolentor_save_opt_nonce' ),
317
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
318
  'message'=>[
319
+ 'btntxt' => esc_html__( 'Save Changes', 'woolentor' ),
320
+ 'loading' => esc_html__( 'Saving...', 'woolentor' ),
321
+ 'success' => esc_html__( 'Saved All Data', 'woolentor' ),
322
+ 'yes' => esc_html__( 'Yes', 'woolentor' ),
323
+ 'cancel' => esc_html__( 'Cancel', 'woolentor' ),
324
+ 'sure' => esc_html__( 'Are you sure?', 'woolentor' ),
325
+ 'reseting'=> esc_html__( 'Reseting...', 'woolentor' ),
326
+ 'reseted' => esc_html__( 'Reset All Settings', 'woolentor' ),
327
  ],
328
  'option_data' => [],
329
 
includes/admin/admin-init.php CHANGED
@@ -113,6 +113,7 @@ class Woolentor_Admin_Init{
113
  */
114
  public function enqueue_scripts( $hook ) {
115
  if( $hook === 'woolentor_page_woolentor' || $hook === 'woolentor_page_woolentor_templates' || $hook === 'woolentor_page_woolentor_extension'){
 
116
  wp_enqueue_style('woolentor-admin');
117
  wp_enqueue_script('woolentor-install-manager');
118
 
@@ -156,6 +157,7 @@ class Woolentor_Admin_Init{
156
  TRUE
157
  );
158
 
 
159
  wp_enqueue_script('woolentor-admin-main');
160
 
161
  wp_localize_script(
@@ -300,6 +302,14 @@ class Woolentor_Admin_Init{
300
  $fileds = ( !empty( $_POST['fileds'] ) ? woolentor_clean( $_POST['fileds'] ) : '' );
301
  $fieldname = ( !empty( $_POST['fieldname'] ) ? sanitize_text_field( $_POST['fieldname'] ) : '' );
302
 
 
 
 
 
 
 
 
 
303
  if( empty( $section ) || empty( $fileds ) ){
304
  return;
305
  }
113
  */
114
  public function enqueue_scripts( $hook ) {
115
  if( $hook === 'woolentor_page_woolentor' || $hook === 'woolentor_page_woolentor_templates' || $hook === 'woolentor_page_woolentor_extension'){
116
+ wp_enqueue_style('woolentor-sweetalert');
117
  wp_enqueue_style('woolentor-admin');
118
  wp_enqueue_script('woolentor-install-manager');
119
 
157
  TRUE
158
  );
159
 
160
+ wp_enqueue_script('woolentor-sweetalert');
161
  wp_enqueue_script('woolentor-admin-main');
162
 
163
  wp_localize_script(
302
  $fileds = ( !empty( $_POST['fileds'] ) ? woolentor_clean( $_POST['fileds'] ) : '' );
303
  $fieldname = ( !empty( $_POST['fieldname'] ) ? sanitize_text_field( $_POST['fieldname'] ) : '' );
304
 
305
+ // Reset Module Data
306
+ if( $subaction === 'reset_data' ){
307
+ if( ! empty( $section ) ){
308
+ delete_option( $section );
309
+ }
310
+ }
311
+
312
+ // Get Module data
313
  if( empty( $section ) || empty( $fileds ) ){
314
  return;
315
  }
includes/admin/assets/css/woolentor-admin.css CHANGED
@@ -1436,7 +1436,7 @@
1436
 
1437
  .woolentor-admin-popup {
1438
  position: fixed;
1439
- z-index: 9999;
1440
  top: 0;
1441
  left: 0;
1442
  display: flex;
@@ -1887,6 +1887,17 @@
1887
  left: 0;
1888
  bottom: 0;
1889
  width: 100%;
 
 
 
 
 
 
 
 
 
 
 
1890
  }
1891
  .woolentor-module-setting-popup-content .woolentor-admin-option{
1892
  padding: 20px 5px 20px 0;
@@ -1947,6 +1958,8 @@
1947
 
1948
  .woolentor-module-setting-popup-content .woolentor-admin-btn {
1949
  margin: 0;
 
 
1950
  }
1951
  .woolentor-module-setting-popup-content .woolentor-admin-popup-close {
1952
  top: -10px;
1436
 
1437
  .woolentor-admin-popup {
1438
  position: fixed;
1439
+ z-index: 999;
1440
  top: 0;
1441
  left: 0;
1442
  display: flex;
1887
  left: 0;
1888
  bottom: 0;
1889
  width: 100%;
1890
+ justify-content: space-between;
1891
+ }
1892
+ .woolentor-admin-module-reset {
1893
+ background: #f6f7f7;
1894
+ border-color: #dddfdf;
1895
+ color: #2271b1;
1896
+ font-weight: normal;
1897
+ }
1898
+ .woolentor-admin-module-reset:hover{
1899
+ background-color: rgb(221, 51, 51) !important;
1900
+ border-color: rgb(221, 51, 51) !important;
1901
  }
1902
  .woolentor-module-setting-popup-content .woolentor-admin-option{
1903
  padding: 20px 5px 20px 0;
1958
 
1959
  .woolentor-module-setting-popup-content .woolentor-admin-btn {
1960
  margin: 0;
1961
+ padding: 7px 35px;
1962
+ transition: 0.4s;
1963
  }
1964
  .woolentor-module-setting-popup-content .woolentor-admin-popup-close {
1965
  top: -10px;
includes/admin/assets/js/woolentor-admin.js CHANGED
@@ -374,6 +374,61 @@
374
 
375
  });
376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
  // Save button active
378
  $('.woolentor-module-setting-popup-content .woolentor-module-setting-data').on( 'click', 'input,select,textarea,.woolentor-admin-number-btn' , function() {
379
  $(this).closest('.woolentor-module-setting-popup-content').find('.woolentor-admin-module-save').removeClass('disabled').attr('disabled', false).text( WOOLENTOR_ADMIN.message.btntxt );
374
 
375
  });
376
 
377
+ // Module Setting Reset
378
+ $('.woolentor-admin-module-reset').on('click',function(event){
379
+ event.preventDefault();
380
+
381
+ var $option_form = $(this).closest('.woolentor-module-setting-popup-content').find('form.woolentor-module-setting-data'),
382
+ $resetbtn = $(this),
383
+ $section = $option_form.data('section');
384
+
385
+ Swal.fire({
386
+ title: WOOLENTOR_ADMIN.message.sure,
387
+ text: 'It will reset all the settings to default, and all the changes you made will be deleted.',
388
+ icon: 'warning',
389
+ showCancelButton: true,
390
+ confirmButtonColor: '#3085d6',
391
+ cancelButtonColor: '#d33',
392
+ confirmButtonText: WOOLENTOR_ADMIN.message.yes,
393
+ cancelButtonText: WOOLENTOR_ADMIN.message.cancel,
394
+ }).then((result) => {
395
+ if ( result.isConfirmed ) {
396
+
397
+ $.ajax( {
398
+ url: WOOLENTOR_ADMIN.ajaxurl,
399
+ type: 'POST',
400
+ data: {
401
+ nonce : WOOLENTOR_ADMIN.nonce,
402
+ section : $section,
403
+ action : 'woolentor_module_data',
404
+ subaction : 'reset_data',
405
+ },
406
+
407
+ beforeSend: function(){
408
+ $resetbtn.removeClass('disabled').addClass('updating-message').text( WOOLENTOR_ADMIN.message.reseting );
409
+ },
410
+
411
+ success: function( response ) {
412
+ $resetbtn.removeClass('updating-message').addClass('disabled').attr('disabled', true).text( WOOLENTOR_ADMIN.message.reseted );
413
+ },
414
+
415
+ complete: function( response ) {
416
+ $resetbtn.removeClass('updating-message').addClass('disabled').attr('disabled', true).text( WOOLENTOR_ADMIN.message.reseted );
417
+ window.location.reload();
418
+ },
419
+
420
+ error: function(errorThrown){
421
+ console.log(errorThrown);
422
+ }
423
+
424
+ });
425
+
426
+
427
+ }
428
+ })
429
+
430
+ });
431
+
432
  // Save button active
433
  $('.woolentor-module-setting-popup-content .woolentor-module-setting-data').on( 'click', 'input,select,textarea,.woolentor-admin-number-btn' , function() {
434
  $(this).closest('.woolentor-module-setting-popup-content').find('.woolentor-admin-module-save').removeClass('disabled').attr('disabled', false).text( WOOLENTOR_ADMIN.message.btntxt );
includes/admin/include/class.template-manager.php CHANGED
@@ -327,14 +327,15 @@ class Woolentor_Template_Manager{
327
  public function enqueue_scripts( $hook ){
328
 
329
  if( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'woolentor-template' ){
330
- wp_enqueue_style( 'woolentor-template-edit-manager', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/template_edit_manager.css' );
331
 
332
- wp_enqueue_style('woolentor-sweetalert', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/css/sweetalert2.min.css');
 
 
333
  wp_enqueue_style('slick', WOOLENTOR_ADDONS_PL_URL . 'assets/css/slick.css' );
 
 
 
334
  wp_enqueue_script('slick', WOOLENTOR_ADDONS_PL_URL . 'assets/js/slick.min.js', array('jquery'), WOOLENTOR_VERSION, true );
335
-
336
- wp_enqueue_script( 'woolentor-sweetalert', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/lib/js/sweetalert2.min.js', WOOLENTOR_VERSION, true );
337
-
338
  wp_enqueue_script( 'woolentor-template-edit-manager', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/js/template_edit_manager.js', array('jquery', 'wp-util'), WOOLENTOR_VERSION, true );
339
 
340
  $localize_data = [
327
  public function enqueue_scripts( $hook ){
328
 
329
  if( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'woolentor-template' ){
 
330
 
331
+ // CSS
332
+ wp_enqueue_style( 'woolentor-template-edit-manager', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/css/template_edit_manager.css' );
333
+ wp_enqueue_style('woolentor-sweetalert');
334
  wp_enqueue_style('slick', WOOLENTOR_ADDONS_PL_URL . 'assets/css/slick.css' );
335
+
336
+ // JS
337
+ wp_enqueue_script('woolentor-sweetalert');
338
  wp_enqueue_script('slick', WOOLENTOR_ADDONS_PL_URL . 'assets/js/slick.min.js', array('jquery'), WOOLENTOR_VERSION, true );
 
 
 
339
  wp_enqueue_script( 'woolentor-template-edit-manager', WOOLENTOR_ADDONS_PL_URL . 'includes/admin/assets/js/template_edit_manager.js', array('jquery', 'wp-util'), WOOLENTOR_VERSION, true );
340
 
341
  $localize_data = [
includes/admin/templates/dashboard-module-setting-popup.php CHANGED
@@ -14,6 +14,7 @@
14
  <form class="woolentor-module-setting-data" id="woolentor-module-setting-form" action="#" method="post" data-section="{{data.section}}" data-fields="{{data.fileds}}">
15
  {{{ data.content }}}
16
  <div class="woolentor-admin-footer">
 
17
  <button class="woolentor-admin-module-save woolentor-admin-btn woolentor-admin-btn-primary hover-effect-1" disabled="disabled"><?php echo esc_html__('Save Changes','woolentor');?></button>
18
  </div>
19
  </form>
14
  <form class="woolentor-module-setting-data" id="woolentor-module-setting-form" action="#" method="post" data-section="{{data.section}}" data-fields="{{data.fileds}}">
15
  {{{ data.content }}}
16
  <div class="woolentor-admin-footer">
17
+ <button class="woolentor-admin-module-reset woolentor-admin-btn woolentor-admin-btn-primary hover-effect-1"><?php echo esc_html__('Reset To Default','woolentor');?></button>
18
  <button class="woolentor-admin-module-save woolentor-admin-btn woolentor-admin-btn-primary hover-effect-1" disabled="disabled"><?php echo esc_html__('Save Changes','woolentor');?></button>
19
  </div>
20
  </form>
includes/base.php CHANGED
@@ -75,12 +75,6 @@ final class Base {
75
  */
76
  public function init() {
77
 
78
- // Check for required PHP version
79
- if ( ! did_action( 'elementor/loaded' ) ) {
80
- add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );
81
- return;
82
- }
83
-
84
  // Check for required PHP version
85
  if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
86
  add_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );
75
  */
76
  public function init() {
77
 
 
 
 
 
 
 
78
  // Check for required PHP version
79
  if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
80
  add_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: hasthemes, htplugins, devitemsllc, tarekht, aslamhasib
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
- Tested up to: 5.9
6
- Stable tag: 2.2.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -345,6 +345,10 @@ Elementor Pro is not required. But you can use wooLentor with Elementor free & P
345
 
346
  == Changelog ==
347
 
 
 
 
 
348
  = Version: 2.2.9 - Date: 22-05-2022 =
349
  * Improved : Dashboard Elements Panel UI.
350
  * Tweak : jQuery UI library has been removed from template library.
2
  Contributors: hasthemes, htplugins, devitemsllc, tarekht, aslamhasib
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
+ Tested up to: 6.0
6
+ Stable tag: 2.3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
345
 
346
  == Changelog ==
347
 
348
+ = Version: 2.3.0 - Date: 25-05-2022 =
349
+ * Added : Module Settings Reset button.
350
+ * Compatibility : With Latest WordPress Version.
351
+
352
  = Version: 2.2.9 - Date: 22-05-2022 =
353
  * Improved : Dashboard Elements Panel UI.
354
  * Tweak : jQuery UI library has been removed from template library.
woolentor_addons_elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
4
  * Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://woolentor.com/
6
- * Version: 2.2.9
7
  * Author: HasThemes
8
  * Author URI: https://hasthemes.com/plugins/woolentor-pro/
9
  * License: GPL-2.0+
@@ -17,7 +17,7 @@
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
- define( 'WOOLENTOR_VERSION', '2.2.9' );
21
  define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
22
  define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
23
  define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );
3
  * Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
4
  * Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://woolentor.com/
6
+ * Version: 2.3.0
7
  * Author: HasThemes
8
  * Author URI: https://hasthemes.com/plugins/woolentor-pro/
9
  * License: GPL-2.0+
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
+ define( 'WOOLENTOR_VERSION', '2.3.0' );
21
  define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
22
  define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
23
  define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );