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.0.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.0.0
Comparing to
See all releases

Code changes from version 1.9.9 to 2.0.0

assets/css/woolentor-widgets.css CHANGED
@@ -2057,7 +2057,7 @@
2057
  display: flex !important;
2058
  flex-flow: row wrap;
2059
  column-gap: 0;
2060
- justify-content: space-between;
2061
  }
2062
  [class*="woolentorducts-columns-"] ul.products li.product{
2063
  margin-left: 0 !important;
@@ -2324,7 +2324,6 @@ span.wlvideo-button {
2324
  }
2325
 
2326
  /* Call for Price */
2327
- .wl-call-forprice{}
2328
  .wl-call-forprice a {
2329
  padding: 8px 15px;
2330
  display: inline-block;
@@ -4401,7 +4400,6 @@ h2.wl_filter_title {
4401
  /* Product curvy end */
4402
 
4403
  /* Product Horizontal Filter Start */
4404
- .woolentor-horizontal-filter-wrap {}
4405
 
4406
  .woolentor-horizontal-filter-wrap .woolentor-heaer-box-area {
4407
  padding: 40px 50px;
@@ -4602,8 +4600,6 @@ h2.wl_filter_title {
4602
  }
4603
  }
4604
 
4605
- .woolentor-horizontal-filter-wrap #filter-item {}
4606
-
4607
  .woolentor-horizontal-filter-wrap .woolentor-filter-field-wrap {
4608
  display: -webkit-box;
4609
  display: -webkit-flex;
2057
  display: flex !important;
2058
  flex-flow: row wrap;
2059
  column-gap: 0;
2060
+ justify-content: start;
2061
  }
2062
  [class*="woolentorducts-columns-"] ul.products li.product{
2063
  margin-left: 0 !important;
2324
  }
2325
 
2326
  /* Call for Price */
 
2327
  .wl-call-forprice a {
2328
  padding: 8px 15px;
2329
  display: inline-block;
4400
  /* Product curvy end */
4401
 
4402
  /* Product Horizontal Filter Start */
 
4403
 
4404
  .woolentor-horizontal-filter-wrap .woolentor-heaer-box-area {
4405
  padding: 40px 50px;
4600
  }
4601
  }
4602
 
 
 
4603
  .woolentor-horizontal-filter-wrap .woolentor-filter-field-wrap {
4604
  display: -webkit-box;
4605
  display: -webkit-flex;
classes/class.default_data.php CHANGED
@@ -32,6 +32,7 @@ class WooLentor_Default_Data{
32
  */
33
  function __construct(){
34
  add_action( 'init', [ $this, 'init'] );
 
35
  }
36
 
37
  /**
@@ -72,6 +73,95 @@ class WooLentor_Default_Data{
72
  return $classes;
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  /**
76
  * [default] Show Default data in Elementor Editor Mode
77
  * @param string $addons Addon Name
@@ -131,10 +221,10 @@ class WooLentor_Default_Data{
131
  break;
132
 
133
  case 'wl-single-product-rating':
 
134
  if ( 'no' === get_option( 'woocommerce_enable_review_rating' ) ) {
135
- return;
136
  }
137
- ob_start();
138
  $rating_count = $product->get_rating_count();
139
  $review_count = $product->get_review_count();
140
  $average = $product->get_average_rating();
@@ -153,6 +243,7 @@ class WooLentor_Default_Data{
153
  <?php else:?>
154
  <?php echo '<div class="wl-nodata">'.__('No Rating Available','woolentor').'</div>';?>
155
  <?php endif;
 
156
  break;
157
 
158
  case 'wl-single-product-image':
32
  */
33
  function __construct(){
34
  add_action( 'init', [ $this, 'init'] );
35
+ add_action('elementor/element/before_section_start', [$this, 'theme_hook_reactive'], 10, 2);
36
  }
37
 
38
  /**
73
  return $classes;
74
  }
75
 
76
+ /**
77
+ * [theme_hook_reactive]
78
+ * @param [object] $element
79
+ * @param [int] $section_id
80
+ */
81
+ public function theme_hook_reactive( $element, $section_id ){
82
+ $is_editor_mode = \Elementor\Plugin::$instance->editor->is_edit_mode();
83
+ if( 'woolentor-product-archive-addons' === $element->get_name() && $is_editor_mode) {
84
+ $this->theme_hooks( $element->get_name() );
85
+ }else if( 'wl-single-product-upsell' === $element->get_name() && $is_editor_mode ){
86
+ $this->theme_hooks( $element->get_name() );
87
+ }
88
+ }
89
+
90
+ /**
91
+ * [theme_hooks]
92
+ * @return [void]
93
+ */
94
+ public function theme_hooks( $name = '' ){
95
+
96
+ $current_theme = wp_get_theme();
97
+
98
+ // For Astra Theme
99
+ if( 'astra' === $current_theme->get( 'TextDomain' ) ){
100
+
101
+ if( $name === 'woolentor-product-archive-addons' ){
102
+
103
+ if( has_action('woocommerce_before_shop_loop', 'woocommerce_result_count') === false ) {
104
+ add_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 10);
105
+ }
106
+ if( has_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering') === false ) {
107
+ add_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);
108
+ }
109
+ if( has_action('woocommerce_after_shop_loop', 'woocommerce_pagination') === false ) {
110
+ add_action('woocommerce_after_shop_loop', 'woocommerce_pagination', 10);
111
+ }
112
+
113
+ if( has_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper') === false ) {
114
+ add_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
115
+ }
116
+ if( has_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end') === false ) {
117
+ add_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
118
+ }
119
+
120
+ if( has_action('woocommerce_sidebar', 'woocommerce_get_sidebar') === false ) {
121
+ add_action('woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
122
+ }
123
+
124
+ }
125
+
126
+ if( has_action('woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash') === false ) {
127
+ add_action('woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10);
128
+ }
129
+ if( has_action('woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail') === false ) {
130
+ add_action('woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10);
131
+ }
132
+ if( has_action('woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title') === false ) {
133
+ add_action('woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10);
134
+ }
135
+ if( has_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price') === false ) {
136
+ add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10);
137
+ }
138
+
139
+ if( has_action('woocommerce_before_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_start') !== false ) {
140
+ remove_action('woocommerce_before_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_start', 6);
141
+ }
142
+ if( has_action('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_thumbnail') !== false ) {
143
+ remove_action('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_thumbnail', 9);
144
+ }
145
+ if( has_action('woocommerce_before_shop_loop_item', 'woocommerce_show_product_loop_sale_flash') !== false ) {
146
+ remove_action('woocommerce_before_shop_loop_item', 'woocommerce_show_product_loop_sale_flash', 9);
147
+ }
148
+ if( has_action('woocommerce_after_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_end') !== false ) {
149
+ remove_action('woocommerce_after_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_end', 8);
150
+ }
151
+ if( has_action('woocommerce_shop_loop_item_title', 'astra_woo_shop_out_of_stock') !== false ) {
152
+ remove_action('woocommerce_shop_loop_item_title', 'astra_woo_shop_out_of_stock', 8);
153
+ }
154
+ if( has_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart') === false ) {
155
+ add_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
156
+ }
157
+ if( has_action('woocommerce_after_shop_loop_item', 'astra_woo_woocommerce_shop_product_content') !== false ) {
158
+ remove_action('woocommerce_after_shop_loop_item', 'astra_woo_woocommerce_shop_product_content');
159
+ }
160
+
161
+ }
162
+
163
+ }
164
+
165
  /**
166
  * [default] Show Default data in Elementor Editor Mode
167
  * @param string $addons Addon Name
221
  break;
222
 
223
  case 'wl-single-product-rating':
224
+ ob_start();
225
  if ( 'no' === get_option( 'woocommerce_enable_review_rating' ) ) {
226
+ echo '<div class="wl-nodata">'.__('Rating dose not enable','woolentor').'</div>';
227
  }
 
228
  $rating_count = $product->get_rating_count();
229
  $review_count = $product->get_review_count();
230
  $average = $product->get_average_rating();
243
  <?php else:?>
244
  <?php echo '<div class="wl-nodata">'.__('No Rating Available','woolentor').'</div>';?>
245
  <?php endif;
246
+ return ob_get_clean();
247
  break;
248
 
249
  case 'wl-single-product-image':
includes/admin/include/template-library.php CHANGED
@@ -183,7 +183,7 @@ class Woolentor_Template_Library{
183
  }
184
 
185
  if ( $new_post_id && ! is_wp_error( $new_post_id ) ) {
186
- update_post_meta( $new_post_id, '_wp_page_template', !empty( $response_data['page_template'] ) ? $response_data['page_template'] : 'elementor_canvas' );
187
  }
188
 
189
  echo json_encode(
183
  }
184
 
185
  if ( $new_post_id && ! is_wp_error( $new_post_id ) ) {
186
+ update_post_meta( $new_post_id, '_wp_page_template', !empty( $response_data['page_template'] ) ? $response_data['page_template'] : 'elementor_header_footer' );
187
  }
188
 
189
  echo json_encode(
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: hasthemes, htplugins, devitemsllc, tarekht
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
  Tested up to: 5.8.1
6
- Stable tag: 1.9.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -322,6 +322,11 @@ Elementor Pro is not required. But you can use wooLentor with Elementor free & P
322
 
323
  == Changelog ==
324
 
 
 
 
 
 
325
  = Version: 1.9.9 - Date: 2021-10-16 =
326
  * Added : width option for sales notification.
327
  * Added : Option for show/display all products associated with each order.
3
  Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
4
  Requires at least: 4.7
5
  Tested up to: 5.8.1
6
+ Stable tag: 2.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
322
 
323
  == Changelog ==
324
 
325
+ = Version: 2.0.0 - Date: 2021-10-31 =
326
+ * Changed : Template library data import page template.
327
+ * Solved : Archive product column spacing issue.
328
+ * Solved : Archive data showing issue in editor mode for astra theme.
329
+
330
  = Version: 1.9.9 - Date: 2021-10-16 =
331
  * Added : width option for sales notification.
332
  * Added : Option for show/display all products associated with each order.
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: 1.9.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', '1.9.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.0.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.0.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 ) );