PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
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/Elementor/Widgets/Controls/AddToCartSettings.php +24 -9 2.2.23.2.6 View file →
@@ -34,8 +34,9 @@
34 34 private static $selectors = [];
35 35 /**
36 36 * Widget Field
37 37 *
38 + * @param object $widget object.
38 39 * @return array
39 40 */
40 41 public static function widget_fields( $widget ) {
41 42 self::$widget = $widget;
@@ -83,9 +84,10 @@
83 84 'condition' => [
84 85 'quantity_style!' => 'default',
85 86 ],
86 87 'selectors' => [
87 - self::$selectors['cart_icon_align'] => 'order: {{VALUE}};',
88 + self::$selectors['cart_icon_align']['icon'] => 'order: {{VALUE}};',
89 + self::$selectors['cart_icon_align']['svg'] => 'order: {{VALUE}};',
88 90 ],
89 91 ],
90 92 'cart_icon_gap' => [
91 93 'label' => esc_html__( 'Gap', 'shopbuilder' ),
@@ -370,14 +372,19 @@
370 372 'min' => 10,
371 373 'max' => 200,
372 374 ],
373 375 ],
376 + 'default' => [
377 + 'unit' => 'px',
378 + 'size' => '30',
379 + ],
374 380 'selectors' => [
375 381 self::$selectors['variation_height'] => 'height: {{SIZE}}{{UNIT}};',
382 + ':root' => '--details-page-attr-height:{{SIZE}}{{UNIT}};',
376 383 ],
377 384 ],
378 385 'variation_width' => [
379 - 'label' => esc_html__( 'Width', 'shopbuilder' ),
386 + 'label' => esc_html__( 'Min Width', 'shopbuilder' ),
380 387 'size_units' => [ 'px', '%' ],
381 388 'type' => 'slider',
382 389 'range' => [
383 390 'px' => [
@@ -388,10 +395,15 @@
388 395 'min' => 0,
389 396 'max' => 100,
390 397 ],
391 398 ],
399 + 'default' => [
400 + 'unit' => 'px',
401 + 'size' => '30',
402 + ],
392 403 'selectors' => [
393 - self::$selectors['variation_width'] => 'width: {{SIZE}}{{UNIT}};',
404 + self::$selectors['variation_width'] => 'min-width: {{SIZE}}{{UNIT}};',
405 + ':root' => '--details-page-attr-width:{{SIZE}}{{UNIT}};',
394 406 ],
395 407 ],
396 408 'variation_border' => [
397 409 'mode' => 'group',
@@ -404,15 +416,17 @@
404 416 'size_units' => [ 'px', '%' ],
405 417 'type' => 'slider',
406 418 'selectors' => [
407 419 self::$selectors['variation_border_radius'] => 'border-radius: {{SIZE}}{{UNIT}};',
420 + ':root' => '--variation-attr-border-radius:{{SIZE}}{{UNIT}};',
408 421 ],
409 422 ],
410 423 'variation_padding' => [
411 - 'label' => esc_html__( 'Padding', 'shopbuilder' ),
412 - 'type' => 'dimensions',
413 - 'size_units' => [ 'px' ],
414 - 'default' => [
424 + 'label' => esc_html__( 'Padding ', 'shopbuilder' ),
425 + 'description' => esc_html__( 'Note: Only for Select And Button Field.', 'shopbuilder' ),
426 + 'type' => 'dimensions',
427 + 'size_units' => [ 'px' ],
428 + 'default' => [
415 429 'top' => '10',
416 430 'right' => '10',
417 431 'bottom' => '10',
418 432 'left' => '10',
@@ -418,11 +432,12 @@
418 432 'left' => '10',
419 433 'unit' => 'px',
420 434 'isLinked' => true,
421 435 ],
422 - 'separator' => 'default',
423 - 'selectors' => [
436 + 'separator' => 'default',
437 + 'selectors' => [
424 438 self::$selectors['variation_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
439 + ':root' => '--variation-padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
425 440 ],
426 441 ],
427 442 'variation_label_margin' => [
428 443 'label' => esc_html__( 'Label Margin', 'shopbuilder' ),