PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.1.2
ShopBuilder – WooCommerce Builder For Elementor v3.1.2
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/Modules/QuickView/QuickViewFrontEnd.php +7 -12 3.4.03.1.2 View file →
@@ -32,9 +32,9 @@
32 32 /**
33 33 * Class constructor.
34 34 */
35 35 public function __construct() {
36 - add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ], 99 );
36 + add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ], 20 );
37 37
38 38 // Gallery Plugin Support rtwpvg_disable_enqueue_scripts.
39 39 add_filter( 'rtwpvg_disable_enqueue_scripts', '__return_false', 11 );
40 40
@@ -188,16 +188,11 @@
188 188 if ( ! $product instanceof WC_Product && $product_id ) {
189 189 $product = wc_get_product( $product_id );
190 190 }
191 191
192 - $classes = [];
193 - $button_text = Fns::get_option( 'modules', 'quick_view', 'button_text', esc_html__( 'Quick View', 'shopbuilder' ) );
194 - $has_button_text = ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) );
192 + $classes = [];
193 + $button_text = Fns::get_option( 'modules', 'quick_view', 'button_text', esc_html__( 'Quick View', 'shopbuilder' ) );
195 194
196 - if ( $has_button_text ) {
197 - $classes[] = 'has-text';
198 - }
199 -
200 195 $icon_html = '<i class="rtsb-icon rtsb-icon-eye"></i>';
201 196 // get product type.
202 197 $product_type = $product->get_type();
203 198 $params = [
@@ -204,9 +199,9 @@
204 199 'classes' => $classes,
205 200 'product_id' => $product->get_id(),
206 201 'product_type' => $product_type,
207 202 'button_text' => $button_text,
208 - 'has_button_text' => $has_button_text,
203 + 'has_button_text' => ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) ),
209 204 'left_text' => apply_filters( 'rtsb/module/quick_view/button_left_text', '' ),
210 205 'right_text' => apply_filters( 'rtsb/module/quick_view/button_right_text', '' ),
211 206 ];
212 207 // let third party developer filter options.
@@ -245,9 +240,9 @@
245 240 wp_enqueue_style( 'elementor-icons-fa-solid' );
246 241 wp_enqueue_style( 'elementor-icons-shared-0' );
247 242
248 243 if ( ! class_exists( 'WooProductVariationGallery' ) && current_theme_supports( 'wc-product-gallery-slider' ) ) {
249 - wp_enqueue_script( 'wc-flexslider' );
244 + wp_enqueue_script( 'flexslider' );
250 245 }
251 246
252 247 wp_enqueue_script( 'wc-add-to-cart-variation' );
253 248
@@ -252,13 +247,13 @@
252 247 wp_enqueue_script( 'wc-add-to-cart-variation' );
253 248
254 249 if ( version_compare( WC()->version, '3.0.0', '>=' ) ) {
255 250 if ( current_theme_supports( 'wc-product-gallery-zoom' ) ) {
256 - wp_enqueue_script( 'wc-zoom' );
251 + wp_enqueue_script( 'zoom' );
257 252 }
258 253
259 254 if ( current_theme_supports( 'wc-product-gallery-lightbox' ) ) {
260 - wp_enqueue_script( 'wc-photoswipe-ui-default' );
255 + wp_enqueue_script( 'photoswipe-ui-default' );
261 256 wp_enqueue_style( 'photoswipe-default-skin' );
262 257
263 258 if ( has_action( 'wp_footer', 'woocommerce_photoswipe' ) === false ) {
264 259 add_action( 'wp_footer', 'woocommerce_photoswipe', 15 );