| @@ -660,20 +660,54 @@ | ||
| 660 | 660 | 'label' => esc_html__( 'Wishlist Table Fields Visibility', 'shopbuilder' ), |
| 661 | 661 | 'tab' => 'page', |
| 662 | 662 | ], |
| 663 | 663 | |
| 664 | + 'shortcode_list_heading' => [ | |
| 665 | + 'id' => 'shortcode_list_heading', | |
| 666 | + 'type' => 'title', | |
| 667 | + 'label' => esc_html__( 'Available Shortcodes', 'shopbuilder' ), | |
| 668 | + 'tab' => 'shortcodes', | |
| 669 | + ], | |
| 670 | + 'shortcode_wishlist_table' => [ | |
| 671 | + 'type' => 'raw', | |
| 672 | + 'label' => esc_html__( 'Wishlist Table', 'shopbuilder' ), | |
| 673 | + 'html' => '<code>[rtsb_wishlist]</code><p class="description">' | |
| 674 | + . esc_html__( 'Displays the wishlist table with all added products. Use this shortcode on the wishlist page.', 'shopbuilder' ) | |
| 675 | + . '</p>', | |
| 676 | + 'tab' => 'shortcodes', | |
| 677 | + ], | |
| 678 | + 'shortcode_wishlist_button' => [ | |
| 679 | + 'type' => 'raw', | |
| 680 | + 'label' => esc_html__( 'Wishlist Button', 'shopbuilder' ), | |
| 681 | + 'html' => '<code>[rtsb_wishlist_button]</code><p class="description">' | |
| 682 | + . esc_html__( 'Displays the "Add to Wishlist" button. Use inside a product loop or on a single product page.', 'shopbuilder' ) | |
| 683 | + . '</p>', | |
| 684 | + 'tab' => 'shortcodes', | |
| 685 | + ], | |
| 686 | + 'shortcode_wishlist_counter' => [ | |
| 687 | + 'type' => 'raw', | |
| 688 | + 'label' => esc_html__( 'Wishlist Counter', 'shopbuilder' ), | |
| 689 | + 'html' => '<code>[rtsb_wishlist_counter]</code><p class="description">' | |
| 690 | + . esc_html__( 'Displays the wishlist item count. Place it in the header or menu to show total wishlist items.', 'shopbuilder' ) | |
| 691 | + . '</p>', | |
| 692 | + 'tab' => 'shortcodes', | |
| 693 | + ], | |
| 694 | + | |
| 664 | 695 | ] |
| 665 | 696 | ), |
| 666 | 697 | 'tabs' => [ |
| 667 | - 'general' => [ | |
| 698 | + 'general' => [ | |
| 668 | 699 | 'title' => esc_html__( 'General', 'shopbuilder' ), |
| 669 | 700 | ], |
| 670 | - 'button' => [ | |
| 701 | + 'button' => [ | |
| 671 | 702 | 'title' => esc_html__( 'Button', 'shopbuilder' ), |
| 672 | 703 | ], |
| 673 | - 'page' => [ | |
| 704 | + 'page' => [ | |
| 674 | 705 | 'title' => esc_html__( 'Page', 'shopbuilder' ), |
| 675 | 706 | ], |
| 707 | + 'shortcodes' => [ | |
| 708 | + 'title' => esc_html__( 'Shortcodes', 'shopbuilder' ), | |
| 709 | + ], | |
| 676 | 710 | ], |
| 677 | 711 | ] |
| 678 | 712 | ), |
| 679 | 713 | 'compare' => apply_filters( |
| @@ -3939,8 +3973,27 @@ | ||
| 3939 | 3973 | 'isPro' => ! rtsb()->has_pro(), |
| 3940 | 3974 | 'label' => esc_html__( 'Image Selector', 'shopbuilder' ), |
| 3941 | 3975 | 'help' => esc_html__( 'Archive product image selector to show variation image. You can also use multiple selectors separated by comma (.attachment-woocommerce_thumbnail, .wp-post-image) ', 'shopbuilder' ), |
| 3942 | 3976 | 'value' => '.wp-post-image, .attachment-woocommerce_thumbnail, .rtsb-product-image', |
| 3977 | + 'dependency' => [ | |
| 3978 | + 'rules' => [ | |
| 3979 | + [ | |
| 3980 | + 'item' => 'modules.variation_swatches.enable_showcase_swatches', | |
| 3981 | + 'value' => 'on', | |
| 3982 | + 'operator' => '==', | |
| 3983 | + ], | |
| 3984 | + ], | |
| 3985 | + ], | |
| 3986 | + 'tab' => 'showcase_shop', | |
| 3987 | + ], | |
| 3988 | + 'showcase_image_size' => [ | |
| 3989 | + 'id' => 'showcase_image_size', | |
| 3990 | + 'label' => esc_html__( 'Showcase Image Size', 'shopbuilder' ), | |
| 3991 | + 'help' => __( 'Choose showcase variation image size.', 'shopbuilder' ) , | |
| 3992 | + 'type' => 'select', | |
| 3993 | + 'isPro' => ! rtsb()->has_pro(), | |
| 3994 | + 'value' => 'woocommerce_thumbnail', | |
| 3995 | + 'options' => array_diff_key( Fns::get_image_sizes(), [ 'rtsb_custom' => '' ] ), | |
| 3943 | 3996 | 'dependency' => [ |
| 3944 | 3997 | 'rules' => [ |
| 3945 | 3998 | [ |
| 3946 | 3999 | 'item' => 'modules.variation_swatches.enable_showcase_swatches', |