PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.4
ShopBuilder – WooCommerce Builder For Elementor v2.6.4
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 +16 -17 2.1.132.6.4 View file →
@@ -49,9 +49,9 @@
49 49 * @return void
50 50 * @since 1.0.0
51 51 */
52 52 public function quick_view_action_template() {
53 -
53 + wp_enqueue_style( 'elementor-frontend' );
54 54 // Image.
55 55 add_action( 'rtsb/wcqv/product/image', 'woocommerce_show_product_sale_flash', 10 );
56 56 add_action( 'rtsb/wcqv/product/image', 'woocommerce_show_product_images', 20 );
57 57
@@ -85,10 +85,10 @@
85 85 if ( defined( 'RTWPVG_VERSION' ) ) {
86 86 remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
87 87 }
88 88 if ( ! defined( 'RTWPVG_VERSION' ) ) {
89 - //add_action( 'woocommerce_product_thumbnails', [ $this, 'woocommerce_product_thumbnails_before' ], 1 );
90 - //add_action( 'woocommerce_product_thumbnails', [ $this, 'woocommerce_product_thumbnails_after' ], 25 );
89 + // add_action( 'woocommerce_product_thumbnails', [ $this, 'woocommerce_product_thumbnails_before' ], 1 );
90 + // add_action( 'woocommerce_product_thumbnails', [ $this, 'woocommerce_product_thumbnails_after' ], 25 );
91 91 }
92 92
93 93 ob_start();
94 94 Fns::load_template( 'quick-view/content' );
@@ -178,9 +178,8 @@
178 178 global $product;
179 179 if ( $product instanceof WC_Product ) {
180 180 do_action( 'rtsb/modules/quick_view/print_button', $product->get_id() );
181 181 }
182 -
183 182 }
184 183
185 184
186 185 /**
@@ -203,14 +202,15 @@
203 202 $icon_html = '<i class="rtsb-icon rtsb-icon-eye"></i>';
204 203 // get product type.
205 204 $product_type = $product->get_type();
206 205 $params = [
207 - 'classes' => $classes,
208 - 'product_id' => $product->get_id(),
209 - 'product_type' => $product_type,
210 - 'button_text' => $button_text,
211 - 'left_text' => apply_filters( 'rtsb/module/quick_view/button_left_text', '' ),
212 - 'right_text' => apply_filters( 'rtsb/module/quick_view/button_right_text', '' ),
206 + 'classes' => $classes,
207 + 'product_id' => $product->get_id(),
208 + 'product_type' => $product_type,
209 + 'button_text' => $button_text,
210 + 'has_button_text' => ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) ),
211 + 'left_text' => apply_filters( 'rtsb/module/quick_view/button_left_text', '' ),
212 + 'right_text' => apply_filters( 'rtsb/module/quick_view/button_right_text', '' ),
213 213 ];
214 214 // let third party developer filter options.
215 215 $atts = apply_filters( 'rtsb/module/quick_view/button_params', $params );
216 216 // set fragment options.
@@ -228,9 +228,8 @@
228 228 *
229 229 * @return string [HTML]
230 230 */
231 231 public function button_shortcode( $atts, $content = '' ) {
232 - $this->enqueue();
233 232 global $product;
234 233 if ( ! $product instanceof WC_Product ) {
235 234 return '';
236 235 }
@@ -242,15 +241,15 @@
242 241 }
243 242
244 243 public function enqueue() {
245 244
246 - wp_enqueue_style( 'elementor-icons-fa-regular' );
245 + wp_enqueue_style( 'elementor-icons-fa-regular' );
247 246
248 - wp_enqueue_style( 'elementor-icons-fa-solid' );
249 - wp_enqueue_style( 'elementor-icons-shared-0' );
250 - // wp_enqueue_style( 'elementor-frontend' );
247 + wp_enqueue_style( 'elementor-icons-fa-solid' );
248 + wp_enqueue_style( 'elementor-icons-shared-0' );
249 + // wp_enqueue_style( 'elementor-frontend' );
251 250
252 - if ( ! class_exists('WooProductVariationGallery') && current_theme_supports( 'wc-product-gallery-slider' ) ) {
251 + if ( ! class_exists( 'WooProductVariationGallery' ) && current_theme_supports( 'wc-product-gallery-slider' ) ) {
253 252 wp_enqueue_script( 'flexslider' );
254 253 }
255 254
256 255 wp_enqueue_script( 'wc-add-to-cart-variation' );
@@ -278,9 +277,9 @@
278 277 ],
279 278 RTSB_VERSION,
280 279 true
281 280 );
282 - wp_enqueue_style( 'rtsb-modules' );
281 + wp_enqueue_style( 'rtsb-modules' );
283 282 wp_enqueue_script( 'rtsb-quick-view' );
284 283
285 284 // Allow user to load custom style and scripts!
286 285 do_action( 'rtsb/modules/quick_view/custom_scripts' );