← All changes
|
app/Elementor/Widgets/Controls/ModuleBtnControls.php
+4
-4
2.1.7
→
3.2.4
View file →
| @@ -241,9 +241,9 @@ | ||
| 241 | 241 | 'operator' => '===', |
| 242 | 242 | 'value' => 'yes', |
| 243 | 243 | ]; |
| 244 | 244 | } |
| 245 | - if ( Fns::is_module_active( 'quick_view' ) ) { | |
| 245 | + if ( Fns::is_module_active( 'quick_view' ) && isset( $fields['quick_view_button'] ) ) { | |
| 246 | 246 | $fields['module_section']['conditions']['terms'][] = [ |
| 247 | 247 | 'name' => 'quick_view_button', |
| 248 | 248 | 'operator' => '===', |
| 249 | 249 | 'value' => 'yes', |
| @@ -262,9 +262,9 @@ | ||
| 262 | 262 | $fields = []; |
| 263 | 263 | if ( Fns::is_module_active( 'wishlist' ) ) { |
| 264 | 264 | $fields['wishlist_button'] = [ |
| 265 | 265 | 'type' => 'switch', |
| 266 | - 'label' => esc_html__( 'Show Product Wishlist?', 'shopbuilder' ), | |
| 266 | + 'label' => esc_html__( 'Show Wishlist Button?', 'shopbuilder' ), | |
| 267 | 267 | 'description' => esc_html__( 'Switch on to show product wishlist.', 'shopbuilder' ), |
| 268 | 268 | 'default' => 'yes', |
| 269 | 269 | ]; |
| 270 | 270 | } |
| @@ -270,9 +270,9 @@ | ||
| 270 | 270 | } |
| 271 | 271 | if ( Fns::is_module_active( 'compare' ) ) { |
| 272 | 272 | $fields['comparison_button'] = [ |
| 273 | 273 | 'type' => 'switch', |
| 274 | - 'label' => esc_html__( 'Show Product Comparison?', 'shopbuilder' ), | |
| 274 | + 'label' => esc_html__( 'Show Compare Button?', 'shopbuilder' ), | |
| 275 | 275 | 'description' => esc_html__( 'Switch on to show product comparison.', 'shopbuilder' ), |
| 276 | 276 | 'default' => 'yes', |
| 277 | 277 | ]; |
| 278 | 278 | } |
| @@ -278,9 +278,9 @@ | ||
| 278 | 278 | } |
| 279 | 279 | if ( Fns::is_module_active( 'quick_view' ) ) { |
| 280 | 280 | $fields['quick_view_button'] = [ |
| 281 | 281 | 'type' => 'switch', |
| 282 | - 'label' => esc_html__( 'Show Product Quick View?', 'shopbuilder' ), | |
| 282 | + 'label' => esc_html__( 'Show Quick View Button?', 'shopbuilder' ), | |
| 283 | 283 | 'description' => esc_html__( 'Switch on to show product quick view.', 'shopbuilder' ), |
| 284 | 284 | 'default' => 'yes', |
| 285 | 285 | ]; |
| 286 | 286 | } |