PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.3
ShopBuilder – WooCommerce Builder For Elementor v2.1.3
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 +6 -17 2.2.12.1.3 View file →
@@ -16,9 +16,9 @@
16 16
17 17 public function __construct() {
18 18 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] );
19 19
20 - // Gallery Plugin Support rtwpvg_disable_enqueue_scripts.
20 + // Gallery Plugin Support rtwpvg_disable_enqueue_scripts
21 21 add_filter( 'rtwpvg_disable_enqueue_scripts', '__return_false', 11 );
22 22
23 23 // Template.
24 24
@@ -66,9 +66,9 @@
66 66
67 67 public function product_quick_view_ajax() {
68 68 $product_id = isset( $_REQUEST['product_id'] ) ? absint( $_REQUEST['product_id'] ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
69 69
70 - if ( empty( $product_id ) || 'publish' !== get_post_status( $product_id ) ) {
70 + if ( empty( $product_id ) ) {
71 71 wp_send_json_error( esc_html__( 'Product Id not found', 'shopbuilder' ) );
72 72 }
73 73
74 74 global $sitepress;
@@ -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 /**
@@ -228,8 +227,9 @@
228 227 *
229 228 * @return string [HTML]
230 229 */
231 230 public function button_shortcode( $atts, $content = '' ) {
231 + $this->enqueue();
232 232 global $product;
233 233 if ( ! $product instanceof WC_Product ) {
234 234 return '';
235 235 }
@@ -240,19 +240,8 @@
240 240 return ob_get_clean();
241 241 }
242 242
243 243 public function enqueue() {
244 -
245 - wp_enqueue_style( 'elementor-icons-fa-regular' );
246 -
247 - wp_enqueue_style( 'elementor-icons-fa-solid' );
248 - wp_enqueue_style( 'elementor-icons-shared-0' );
249 - // wp_enqueue_style( 'elementor-frontend' );
250 -
251 - if ( ! class_exists('WooProductVariationGallery') && current_theme_supports( 'wc-product-gallery-slider' ) ) {
252 - wp_enqueue_script( 'flexslider' );
253 - }
254 -
255 244 wp_enqueue_script( 'wc-add-to-cart-variation' );
256 245 if ( version_compare( WC()->version, '3.0.0', '>=' ) ) {
257 246 if ( current_theme_supports( 'wc-product-gallery-zoom' ) ) {
258 247 wp_enqueue_script( 'zoom' );
@@ -277,9 +266,9 @@
277 266 ],
278 267 RTSB_VERSION,
279 268 true
280 269 );
281 - wp_enqueue_style( 'rtsb-modules' );
270 + wp_enqueue_style( 'rtsb-modules' );
282 271 wp_enqueue_script( 'rtsb-quick-view' );
283 272
284 273 // Allow user to load custom style and scripts!
285 274 do_action( 'rtsb/modules/quick_view/custom_scripts' );