PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.5
ShopBuilder – WooCommerce Builder For Elementor v2.6.5
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Abstracts/LoopWithProductSlider.php +25 -36 3.4.12.6.5 View file →
@@ -98,8 +98,9 @@
98 98 unset( $fields['orderby'] );
99 99 unset( $fields['order'] );
100 100 }
101 101 if ( 'rtsb-products-archive' === $this->rtsb_base ) {
102 + unset( $fields['posts_per_page'] );
102 103 unset( $fields['columns'] );
103 104 unset( $fields['orderby'] );
104 105 unset( $fields['order'] );
105 106 }
@@ -111,20 +112,18 @@
111 112 *
112 113 * @return void
113 114 */
114 115 public function script_init() {
115 - $handle = Fns::optimized_handle( 'rtsb-public' );
116 - wp_dequeue_script( $handle );
116 + wp_dequeue_script( 'rtsb-public' );
117 117
118 + //wp_enqueue_style( 'swiper' );
118 119 wp_enqueue_script( 'swiper' );
119 - wp_enqueue_script( $handle );
120 + wp_enqueue_script( 'rtsb-public' );
120 121 }
121 122
122 123 /**
123 124 * Product loop start function
124 125 *
125 - * @param string $html html.
126 - *
127 126 * @return string
128 127 */
129 128 public function product_loop_start( $html = '' ) {
130 129 $str = explode( 'products', $html );
@@ -189,10 +188,8 @@
189 188 }
190 189 /**
191 190 * Product loop start function
192 191 *
193 - * @param string $html html.
194 - *
195 192 * @return string
196 193 */
197 194 public function product_loop_end( $html ) {
198 195 $controllers = $this->get_settings_for_display();
@@ -208,10 +205,8 @@
208 205 }
209 206 /**
210 207 * Product loop start function
211 208 *
212 - * @param string $classes classes.
213 - *
214 209 * @return string
215 210 */
216 211 public function post_class( $classes ) {
217 212 $classes[] = 'swiper-slide';
@@ -286,17 +281,18 @@
286 281 remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_link_open', 8 );
287 282 remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_link_close', 12 );
288 283 }
289 284
290 - // Remove Action Button.
285 + // Remove Action Button
291 286 add_filter( 'rtsb/module/wishlist/show_button', '__return_false' );
292 287 add_filter( 'rtsb/module/quick_view/show_button', '__return_false' );
293 288 add_filter( 'rtsb/module/compare/show_button', '__return_false' );
294 289
295 - if ( empty( $controllers['show_quick_checkout'] ) ) {
290 + //TODO:: Pro Will move if necessary
291 + if ( empty( $controllers['show_quick_checkout'] ) ) {
296 292 add_filter( 'rtsb/module/quick_checkout/show_button', '__return_false' );
297 293 }
298 - if ( empty( $controllers['show_flash_sale_countdown'] ) ) {
294 + if ( empty( $controllers['show_flash_sale_countdown'] ) ) {
299 295 add_filter( 'rtsb/module/flash_sale_countdown/show_counter', '__return_false' );
300 296 }
301 297
302 298 // Default Link remove.
@@ -322,21 +318,19 @@
322 318 add_action( 'woocommerce_before_shop_loop_item_title', [ $this, 'product_content_wrapper' ], 13 );
323 319 // Content Wrapper Close.
324 320 add_action( 'woocommerce_after_shop_loop_item', [ $this, 'div_close' ], 99 );
325 321
326 - if ( $this->is_edit_mode() ) {
327 - if ( class_exists( Rtwpvs\Controllers\Hooks::class ) ) {
328 - remove_filter( 'woocommerce_ajax_variationX_threshold', [ Rtwpvs\Controllers\Hooks::class, 'ajax_variation_threshold' ], 99 );
329 - }
330 - add_filter(
331 - 'woocommerce_ajax_variation_threshold',
332 - function () {
333 - return 1;
334 - },
335 - 99
336 - );
337 322
338 - }
323 + if ( $this->is_edit_mode() ){
324 + if( class_exists( Rtwpvs\Controllers\Hooks::class ) ){
325 + remove_filter( 'woocommerce_ajax_variationX_threshold', [ Rtwpvs\Controllers\Hooks::class, 'ajax_variation_threshold' ], 99 );
326 + }
327 + add_filter( 'woocommerce_ajax_variation_threshold', function (){
328 + return 1;
329 + }, 99 );
330 +
331 + }
332 +
339 333 }
340 334 /**
341 335 * Apply hooks function.
342 336 *
@@ -372,8 +366,9 @@
372 366 // Remove Action Button.
373 367 remove_filter( 'rtsb/module/wishlist/show_button', '__return_false' );
374 368 remove_filter( 'rtsb/module/quick_view/show_button', '__return_false' );
375 369 remove_filter( 'rtsb/module/compare/show_button', '__return_false' );
370 +
376 371 }
377 372 /**
378 373 * Related Product Args function'
379 374 *
@@ -408,20 +403,12 @@
408 403 }
409 404 ?>
410 405 <script>
411 406 <?php if ( rtsb()->has_pro() ) { ?>
412 - if (!'<?php echo esc_attr( Fns::is_optimization_enabled() ); ?>') {
413 - setTimeout( function (){
414 - window.rtsbCountdownApply();
415 - }, 1000 );
416 - } else {
417 - if (typeof elementorFrontend !== 'undefined') {
418 - window.waitForRTSB((RTSB) => {
419 - RTSB.modules.get('countdownPro')?.refresh();
420 - });
421 - }
422 - }
423 - <?php } ?>
407 + setTimeout( function (){
408 + window.rtsbCountdownApply();
409 + }, 1000 );
410 + <?php } ?>
424 411 </script>
425 412 <?php
426 413 }
427 414
@@ -464,6 +451,8 @@
464 451 }
465 452
466 453 $this->editor_script();
467 454 $this->editor_cart_icon_script();
455 +
468 456 }
457 +
469 458 }