PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.4.2
ShopBuilder – WooCommerce Builder For Elementor v3.4.2
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/Models/ElementList.php +625 -41 2.1.93.4.2 View file →
@@ -11,9 +11,9 @@
11 11 use RadiusTheme\SB\Elementor\Widgets\Cart;
12 12 use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 13 use RadiusTheme\SB\Elementor\Widgets\General;
14 14 use RadiusTheme\SB\Elementor\Widgets\Single;
15 -use RadiusTheme\SB\Helpers\Fns;
15 +use RadiusTheme\SB\Helpers\SvgIcons;
16 16 use RadiusTheme\SB\Models\Base\ListModel;
17 17 use RadiusTheme\SB\Traits\SingletonTrait;
18 18 use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro;
19 19
@@ -50,9 +50,9 @@
50 50 'shop' => [
51 51 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
52 52 ],
53 53 'product' => [
54 - 'title' => esc_html__( 'Single', 'shopbuilder' ),
54 + 'title' => esc_html__( 'Product Page', 'shopbuilder' ),
55 55 ],
56 56 'quick_view' => [
57 57 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
58 58 ],
@@ -88,15 +88,193 @@
88 88 + $this->shop_archive_page_widget_list()
89 89 + $this->cart_page_widget_list()
90 90 + $this->checkout_page_widget_list()
91 91 + $this->thankyou_page_widget_list()
92 + + $this->orderpay_page_widget_list()
92 93 + $this->my_account_page_widget_list()
93 94 + $this->myaccount_auth_page_widget_list();
94 95
96 + // Inject SVG icons per element.
97 + $icon_map = self::element_icon_map();
98 + foreach ( $list as $key => &$item ) {
99 + $item['icon'] = SvgIcons::get( $icon_map[ $key ] ?? 'default' );
100 + }
101 + unset( $item );
102 +
95 103 return apply_filters( 'rtsb/core/elements/raw_list', $list );
96 104 }
97 105
98 106 /**
107 + * Maps element IDs to SvgIcons keys.
108 + *
109 + * @return array<string, string>
110 + */
111 + private static function element_icon_map() {
112 + return [
113 + // General.
114 + 'products_grid' => 'grid',
115 + 'products_list' => 'list',
116 + 'products_slider' => 'slider',
117 + 'highlighted_product' => 'star',
118 + 'products_single_cateogory' => 'category',
119 + 'product_cateogories' => 'category',
120 + 'product_lookbook' => 'image',
121 + 'category_showcase_tabs' => 'tabs',
122 + 'rtsb_wishlist' => 'heart',
123 + 'social_share' => 'share',
124 + 'wc_breadcrumbs' => 'breadcrumb',
125 + 'product_notice' => 'notification',
126 + 'advanced_heading' => 'heading',
127 + 'dropcaps' => 'text',
128 + 'shopbuilder_button' => 'button',
129 + 'shopbuilder_cta' => 'cta',
130 + 'shopbuilder_info_box' => 'info_box',
131 + 'shopbuilder_flip_box' => 'flip_box',
132 + 'shopbuilder_pricing_table' => 'pricing',
133 + 'image_hotspots' => 'hotspot',
134 + 'coupon_list' => 'coupon',
135 + 'hero_slider' => 'slider',
136 + 'shopbuilder_counter' => 'counter',
137 + 'shopbuilder_countdown' => 'countdown',
138 + 'shopbuilder_progress_bar' => 'progress',
139 + 'image_accordion' => 'accordion',
140 + 'shopbuilder_faq' => 'faq',
141 + 'logo_slider_and_grid' => 'logo',
142 + 'testimonial' => 'testimonial',
143 + 'team_member' => 'user',
144 + 'post_grid' => 'grid',
145 + 'post_list' => 'list',
146 + 'advanced_ajax_search' => 'search',
147 + 'save_for_buy_later' => 'heart',
148 +
149 + // Single product.
150 + 'product_title' => 'heading',
151 + 'product_description' => 'document',
152 + 'product_short_description' => 'document',
153 + 'product_images' => 'product_page',
154 + 'product_onsale' => 'onsale',
155 + 'product_additional_info' => 'info_box',
156 + 'product_price' => 'counter',
157 + 'product_meta' => 'tag',
158 + 'product_categories' => 'category',
159 + 'product_rating' => 'star',
160 + 'product_tags' => 'tag',
161 + 'product_sku' => 'tag',
162 + 'product_stock' => 'chart',
163 + 'actions_button' => 'button',
164 + 'product_add_to_cart' => 'cart',
165 + 'product_share' => 'share',
166 + 'product_sales_count' => 'counter',
167 + 'product_stock_counter' => 'chart',
168 + 'flash_sale_countdown' => 'countdown',
169 + 'product_size_chart' => 'chart',
170 + 'product_quick_checkout' => 'checkout',
171 + 'product_tabs' => 'tabs',
172 + 'advance_product_tabs' => 'tabs',
173 + 'product_qr_code' => 'qr',
174 + 'product_reviews' => 'star',
175 + 'upsells_product' => 'onsale',
176 + 'upsells_product_custom' => 'onsale',
177 + 'upsells_products_slider_custom' => 'onsale',
178 + 'related_product' => 'grid',
179 + 'related_product_custom' => 'grid',
180 + 'related_products_slider_custom' => 'slider',
181 +
182 + // Quick view.
183 + 'qv_product_title' => 'heading',
184 + 'qv_product_description' => 'document',
185 + 'qv_product_short_description' => 'document',
186 + 'qv_product_images' => 'product_page',
187 + 'qv_product_badges' => 'onsale',
188 + 'qv_product_additional_info' => 'info_box',
189 + 'qv_product_price' => 'counter',
190 + 'qv_product_meta' => 'tag',
191 + 'qv_product_categories' => 'category',
192 + 'qv_product_rating' => 'star',
193 + 'qv_product_tags' => 'tag',
194 + 'qv_product_sku' => 'tag',
195 + 'qv_product_stock' => 'chart',
196 + 'qv_actions_button' => 'button',
197 + 'qv_product_add_to_cart' => 'cart',
198 + 'qv_product_sales_count' => 'counter',
199 + 'qv_social_share' => 'share',
200 + 'qv_product_quick_checkout' => 'checkout',
201 + 'qv_product_size_chart' => 'chart',
202 +
203 + // Shop / Archive.
204 + 'archive_title' => 'heading',
205 + 'archive_description' => 'document',
206 + 'products_archive_catalog' => 'grid',
207 + 'products_archive_catalog_custom' => 'grid',
208 + 'ajax_product_filters' => 'filter',
209 + 'product_filters' => 'filter',
210 + 'archive_result_count' => 'counter',
211 + 'archive_products_ordering' => 'progress',
212 + 'archive_product_mode' => 'grid',
213 +
214 + // Cart.
215 + 'cart_table' => 'cart',
216 + 'cart_totals' => 'counter',
217 + 'cart_coupon_form' => 'coupon',
218 + 'cross_sells' => 'grid',
219 + 'cross_sells_custom' => 'grid',
220 + 'cross_sells_custom_slider' => 'slider',
221 + 'save_for_later_preview' => 'heart',
222 +
223 + // Checkout.
224 + 'billing_form' => 'form',
225 + 'shipping_form' => 'address',
226 + 'order_notes' => 'note',
227 + 'order_review' => 'checkout',
228 + 'checkout_payment' => 'payment',
229 + 'coupon_form' => 'coupon',
230 + 'checkout_login_form' => 'lock',
231 + 'shipping_method' => 'address',
232 + 'multi_step_checkout_widget' => 'multi_step',
233 +
234 + // Thank you / Order received.
235 + 'order_received_text' => 'document',
236 + 'order_details_summary' => 'checkout',
237 + 'order_details_table' => 'document',
238 + 'downloadable_products' => 'download',
239 + 'order_billing_address' => 'address',
240 + 'order_shipping_address' => 'address',
241 + 'order_custom_fields_data' => 'document',
242 +
243 + // My Account.
244 + 'order_pay_form' => 'payment',
245 + 'account_avatar' => 'user',
246 + 'account_navigation_edit_shipping' => 'address',
247 + 'account_dashboard' => 'user',
248 + 'account_orders' => 'document',
249 + 'account_downloads' => 'download',
250 + 'account_gift_cards' => 'gift',
251 + 'account_gift_card_details' => 'gift',
252 + 'account_billing_address' => 'address',
253 + 'account_shipping_address' => 'address',
254 + 'account_address_description' => 'document',
255 + 'account_details' => 'user',
256 + 'account_order_status' => 'chart',
257 + 'account_order_details_download' => 'download',
258 + 'account_order_details_note' => 'note',
259 + 'account_order_details_table' => 'document',
260 + 'account_order_details_order_again' => 'cart',
261 + 'account_order_details_order_shipping' => 'address',
262 + 'account_order_details_order_billing' => 'address',
263 + 'account_edit_billing_address' => 'form',
264 + 'account_edit_shipping_address' => 'form',
265 + 'account_payment_methods' => 'payment',
266 + 'account_add_payment_method' => 'payment',
267 +
268 + // Others / Auth.
269 + 'account_login' => 'lock',
270 + 'account_login_form' => 'lock',
271 + 'account_registration_form' => 'user',
272 + 'account_lost_password' => 'lock',
273 + ];
274 + }
275 +
276 + /**
99 277 * GLobal Widget List.
100 278 *
101 279 * @return array
102 280 */
@@ -125,9 +303,8 @@
125 303 'package' => 'free',
126 304 'fields' => [],
127 305 ]
128 306 ),
129 -
130 307 'products_slider' => apply_filters(
131 308 'rtsb/elements/products_slider/options',
132 309 [
133 310 'id' => 'products_slider',
@@ -138,9 +315,19 @@
138 315 'package' => 'free',
139 316 'fields' => [],
140 317 ]
141 318 ),
142 -
319 + 'highlighted_product' => apply_filters(
320 + 'rtsb/elements/highlighted_product/options',
321 + [
322 + 'id' => 'highlighted_product',
323 + 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ),
324 + 'category' => 'general',
325 + 'active' => '',
326 + 'package' => $this->pro_package(),
327 + 'fields' => [],
328 + ]
329 + ),
143 330 'products_single_cateogory' => apply_filters(
144 331 'rtsb/elements/products_single_cateogory/options',
145 332 [
146 333 'id' => 'products_single_cateogory',
@@ -163,8 +350,42 @@
163 350 'package' => 'free',
164 351 'fields' => [],
165 352 ]
166 353 ),
354 + 'product_lookbook' => apply_filters(
355 + 'rtsb/elements/product_lookbook/options',
356 + [
357 + 'id' => 'product_lookbook',
358 + 'title' => esc_html__( 'Product LookBook', 'shopbuilder' ),
359 + 'category' => 'general',
360 + 'active' => '',
361 + 'package' => $this->pro_package(),
362 + 'fields' => [],
363 + ]
364 + ),
365 + 'category_showcase_tabs' => apply_filters(
366 + 'rtsb/elements/category_showcase_tabs/options',
367 + [
368 + 'id' => 'category_showcase_tabs',
369 + 'title' => esc_html__( 'Category Showcase Tabs', 'shopbuilder' ),
370 + 'category' => 'general',
371 + 'active' => '',
372 + 'package' => $this->pro_package(),
373 + 'fields' => [],
374 + ]
375 + ),
376 + 'rtsb_wishlist' => apply_filters(
377 + 'rtsb/elements/rtsb_wishlist/options',
378 + [
379 + 'id' => 'rtsb_wishlist',
380 + 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ),
381 + 'base_class' => General\Wishlist::class,
382 + 'category' => 'general',
383 + 'active' => 'on',
384 + 'package' => 'free',
385 + 'fields' => [],
386 + ]
387 + ),
167 388 'social_share' => apply_filters(
168 389 'rtsb/elements/social_share/options',
169 390 [
170 391 'id' => 'social_share',
@@ -199,14 +420,14 @@
199 420 'package' => 'free',
200 421 'fields' => [],
201 422 ]
202 423 ),
203 - 'rtsb_wishlist' => apply_filters(
204 - 'rtsb/elements/rtsb_wishlist/options',
424 + 'advanced_heading' => apply_filters(
425 + 'rtsb/elements/advanced_heading/options',
205 426 [
206 - 'id' => 'rtsb_wishlist',
207 - 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ),
208 - 'base_class' => General\Wishlist::class,
427 + 'id' => 'advanced_heading',
428 + 'title' => esc_html__( 'Advanced Heading', 'shopbuilder' ),
429 + 'base_class' => General\AdvancedHeading\AdvancedHeading::class,
209 430 'category' => 'general',
210 431 'active' => 'on',
211 432 'package' => 'free',
212 433 'fields' => [],
@@ -211,13 +432,85 @@
211 432 'package' => 'free',
212 433 'fields' => [],
213 434 ]
214 435 ),
215 - 'highlighted_product' => apply_filters(
216 - 'rtsb/elements/highlighted_product/options',
436 + 'dropcaps' => apply_filters(
437 + 'rtsb/elements/dropcaps/options',
217 438 [
218 - 'id' => 'highlighted_product',
219 - 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ),
439 + 'id' => 'dropcaps',
440 + 'title' => esc_html__( 'Dropcaps', 'shopbuilder' ),
441 + 'base_class' => General\DropCaps\DropCaps::class,
442 + 'category' => 'general',
443 + 'active' => 'on',
444 + 'package' => 'free',
445 + 'fields' => [],
446 + ]
447 + ),
448 + 'shopbuilder_button' => apply_filters(
449 + 'rtsb/elements/shopbuilder_button/options',
450 + [
451 + 'id' => 'shopbuilder_button',
452 + 'title' => esc_html__( 'Advanced Button', 'shopbuilder' ),
453 + 'base_class' => General\ShopBuilderButton\ShopBuilderButton::class,
454 + 'category' => 'general',
455 + 'active' => 'on',
456 + 'package' => 'free',
457 + 'fields' => [],
458 + ]
459 + ),
460 + 'shopbuilder_cta' => apply_filters(
461 + 'rtsb/elements/shopbuilder_cta/options',
462 + [
463 + 'id' => 'shopbuilder_cta',
464 + 'title' => esc_html__( 'Call To Action', 'shopbuilder' ),
465 + 'base_class' => General\CallToAction\CallToAction::class,
466 + 'category' => 'general',
467 + 'active' => 'on',
468 + 'package' => 'free',
469 + 'fields' => [],
470 + ]
471 + ),
472 + 'shopbuilder_info_box' => apply_filters(
473 + 'rtsb/elements/shopbuilder_info_box/options',
474 + [
475 + 'id' => 'shopbuilder_info_box',
476 + 'title' => esc_html__( 'Info Box', 'shopbuilder' ),
477 + 'base_class' => General\InfoBox\InfoBox::class,
478 + 'category' => 'general',
479 + 'active' => 'on',
480 + 'package' => 'free',
481 + 'fields' => [],
482 + ]
483 + ),
484 + 'shopbuilder_flip_box' => apply_filters(
485 + 'rtsb/elements/shopbuilder_flip_box/options',
486 + [
487 + 'id' => 'shopbuilder_flip_box',
488 + 'title' => esc_html__( 'Flip Box', 'shopbuilder' ),
489 + 'base_class' => General\FlipBox\FlipBox::class,
490 + 'category' => 'general',
491 + 'active' => 'on',
492 + 'package' => 'free',
493 + 'fields' => [],
494 + ]
495 + ),
496 + 'shopbuilder_pricing_table' => apply_filters(
497 + 'rtsb/elements/shopbuilder_pricing_table/options',
498 + [
499 + 'id' => 'shopbuilder_pricing_table',
500 + 'title' => esc_html__( 'Pricing Table', 'shopbuilder' ),
501 + 'base_class' => General\PricingTable\PricingTable::class,
502 + 'category' => 'general',
503 + 'active' => 'on',
504 + 'package' => 'free',
505 + 'fields' => [],
506 + ]
507 + ),
508 + 'image_hotspots' => apply_filters(
509 + 'rtsb/elements/image_hotspots/options',
510 + [
511 + 'id' => 'image_hotspots',
512 + 'title' => esc_html__( 'Image Hotspots', 'shopbuilder' ),
220 513 'category' => 'general',
221 514 'active' => '',
222 515 'package' => $this->pro_package(),
223 516 'fields' => [],
@@ -222,11 +515,173 @@
222 515 'package' => $this->pro_package(),
223 516 'fields' => [],
224 517 ]
225 518 ),
226 -
519 + 'coupon_list' => apply_filters(
520 + 'rtsb/elements/coupon_list/options',
521 + [
522 + 'id' => 'coupon_list',
523 + 'title' => esc_html__( 'Coupon List', 'shopbuilder' ),
524 + 'category' => 'general',
525 + 'active' => '',
526 + 'package' => $this->pro_package(),
527 + 'fields' => [],
528 + ]
529 + ),
530 + 'hero_slider' => apply_filters(
531 + 'rtsb/elements/hero_slider/options',
532 + [
533 + 'id' => 'hero_slider',
534 + 'title' => esc_html__( 'Hero Slider', 'shopbuilder' ),
535 + 'category' => 'general',
536 + 'active' => '',
537 + 'package' => $this->pro_package(),
538 + 'fields' => [],
539 + ]
540 + ),
541 + 'shopbuilder_counter' => apply_filters(
542 + 'rtsb/elements/shopbuilder_counter/options',
543 + [
544 + 'id' => 'shopbuilder_counter',
545 + 'title' => esc_html__( 'Fun Facts', 'shopbuilder' ),
546 + 'base_class' => General\Counter\Counter::class,
547 + 'category' => 'general',
548 + 'active' => 'on',
549 + 'package' => 'free',
550 + 'fields' => [],
551 + ]
552 + ),
553 + 'shopbuilder_countdown' => apply_filters(
554 + 'rtsb/elements/shopbuilder_countdown/options',
555 + [
556 + 'id' => 'shopbuilder_countdown',
557 + 'title' => esc_html__( 'Countdown', 'shopbuilder' ),
558 + 'base_class' => General\CountDown\CountDown::class,
559 + 'category' => 'general',
560 + 'active' => 'on',
561 + 'package' => 'free',
562 + 'fields' => [],
563 + ]
564 + ),
565 + 'shopbuilder_progress_bar' => apply_filters(
566 + 'rtsb/elements/shopbuilder_progress_bar/options',
567 + [
568 + 'id' => 'shopbuilder_progress_bar',
569 + 'title' => esc_html__( 'Progress Bar', 'shopbuilder' ),
570 + 'base_class' => General\ProgressBar\ProgressBar::class,
571 + 'category' => 'general',
572 + 'active' => 'on',
573 + 'package' => 'free',
574 + 'fields' => [],
575 + ]
576 + ),
577 + 'image_accordion' => apply_filters(
578 + 'rtsb/elements/image_accordion/options',
579 + [
580 + 'id' => 'image_accordion',
581 + 'title' => esc_html__( 'Image Accordion', 'shopbuilder' ),
582 + 'base_class' => General\ImageAccordion\ImageAccordion::class,
583 + 'category' => 'general',
584 + 'active' => 'on',
585 + 'package' => 'free',
586 + 'fields' => [],
587 + ]
588 + ),
589 + 'shopbuilder_faq' => apply_filters(
590 + 'rtsb/elements/shopbuilder_faq/options',
591 + [
592 + 'id' => 'shopbuilder_faq',
593 + 'title' => esc_html__( 'FAQ', 'shopbuilder' ),
594 + 'base_class' => General\ShopBuilderFaq\ShopBuilderFaq::class,
595 + 'category' => 'general',
596 + 'active' => 'on',
597 + 'package' => 'free',
598 + 'fields' => [],
599 + ]
600 + ),
601 + 'logo_slider_and_grid' => apply_filters(
602 + 'rtsb/elements/logo_slider_and_grid/options',
603 + [
604 + 'id' => 'logo_slider_and_grid',
605 + 'title' => esc_html__( 'Logo Slider and Grid', 'shopbuilder' ),
606 + 'base_class' => General\LogoSliderAndGrid\LogoSliderAndGrid::class,
607 + 'category' => 'general',
608 + 'active' => 'on',
609 + 'package' => 'free',
610 + 'fields' => [],
611 + ]
612 + ),
613 + 'testimonial' => apply_filters(
614 + 'rtsb/elements/testimonial/options',
615 + [
616 + 'id' => 'testimonial',
617 + 'title' => esc_html__( 'Testimonials', 'shopbuilder' ),
618 + 'base_class' => General\Testimonial\Testimonial::class,
619 + 'category' => 'general',
620 + 'active' => 'on',
621 + 'package' => 'free',
622 + 'fields' => [],
623 + ]
624 + ),
625 + 'team_member' => apply_filters(
626 + 'rtsb/elements/team_member/options',
627 + [
628 + 'id' => 'team_member',
629 + 'title' => esc_html__( 'Team Members', 'shopbuilder' ),
630 + 'base_class' => General\TeamMember\TeamMember::class,
631 + 'category' => 'general',
632 + 'active' => 'on',
633 + 'package' => 'free',
634 + 'fields' => [],
635 + ]
636 + ),
637 + 'post_grid' => apply_filters(
638 + 'rtsb/elements/post_grid/options',
639 + [
640 + 'id' => 'post_grid',
641 + 'title' => esc_html__( 'Post Grid', 'shopbuilder' ),
642 + 'base_class' => General\PostGrid\PostGrid::class,
643 + 'category' => 'general',
644 + 'active' => 'on',
645 + 'package' => 'free',
646 + 'fields' => [],
647 + ]
648 + ),
649 + 'post_list' => apply_filters(
650 + 'rtsb/elements/post_list/options',
651 + [
652 + 'id' => 'post_list',
653 + 'title' => esc_html__( 'Post List', 'shopbuilder' ),
654 + 'base_class' => General\PostList\PostList::class,
655 + 'category' => 'general',
656 + 'active' => 'on',
657 + 'package' => 'free',
658 + 'fields' => [],
659 + ]
660 + ),
661 + 'advanced_ajax_search' => apply_filters(
662 + 'rtsb/elements/advanced_ajax_search/options',
663 + [
664 + 'id' => 'advanced_ajax_search',
665 + 'title' => esc_html__( 'Advanced Ajax Search', 'shopbuilder' ),
666 + 'category' => 'general',
667 + 'active' => '',
668 + 'package' => $this->pro_package(),
669 + 'fields' => [],
670 + ]
671 + ),
672 + 'save_for_buy_later' => apply_filters(
673 + 'rtsb/elements/save_for_buy_later/options',
674 + [
675 + 'id' => 'save_for_buy_later',
676 + 'title' => esc_html__( 'Saved For Buy Later', 'shopbuilder' ),
677 + 'category' => 'general',
678 + 'active' => '',
679 + 'package' => $this->pro_package(),
680 + 'fields' => [],
681 + ]
682 + ),
227 683 ];
228 -
229 684 return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
230 685 }
231 686
232 687 /**
@@ -506,8 +961,19 @@
506 961 'package' => $this->pro_package(),
507 962 'fields' => [],
508 963 ]
509 964 ),
965 + 'product_qr_code' => apply_filters(
966 + 'rtsb/elements/product_qr_code/options',
967 + [
968 + 'id' => 'product_qr_code',
969 + 'title' => esc_html__( 'QR Code', 'shopbuilder' ),
970 + 'category' => 'product',
971 + 'active' => '',
972 + 'package' => $this->pro_package(),
973 + 'fields' => [],
974 + ]
975 + ),
510 976 'product_reviews' => apply_filters(
511 977 'rtsb/elements/product_reviews/options',
512 978 [
513 979 'id' => 'product_reviews',
@@ -924,8 +1390,20 @@
924 1390 'package' => $this->pro_package(),
925 1391 'fields' => [],
926 1392 ]
927 1393 ),
1394 + 'product_filters' => apply_filters(
1395 + 'rtsb/elements/product_filters/options',
1396 + [
1397 + 'id' => 'product_filters',
1398 + 'title' => esc_html__( 'Product Filters', 'shopbuilder' ),
1399 + 'base_class' => Archive\ProductFilters\ProductFilters::class,
1400 + 'category' => 'shop',
1401 + 'active' => 'on',
1402 + 'package' => 'free',
1403 + 'fields' => [],
1404 + ]
1405 + ),
928 1406
929 1407 'archive_result_count' => apply_filters(
930 1408 'rtsb/elements/archive_result_count/options',
931 1409 [
@@ -1044,8 +1522,20 @@
1044 1522 'package' => 'free',
1045 1523 'fields' => [],
1046 1524 ]
1047 1525 ),
1526 + 'save_for_later_preview' => apply_filters(
1527 + 'rtsb/elements/save_for_later_preview/options',
1528 + [
1529 + 'id' => 'save_for_later_preview',
1530 + 'title' => esc_html__( 'Save For Later Preview', 'shopbuilder' ),
1531 + 'base_class' => Cart\SaveForLaterPreview::class,
1532 + 'category' => 'cart',
1533 + 'active' => 'on',
1534 + 'package' => $this->pro_package(),
1535 + 'fields' => [],
1536 + ]
1537 + ),
1048 1538 ];
1049 1539
1050 1540 return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1051 1541 }
@@ -1164,9 +1654,8 @@
1164 1654 'package' => $this->pro_package(),
1165 1655 'fields' => [],
1166 1656 ]
1167 1657 ),
1168 -
1169 1658 ];
1170 1659
1171 1660 return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1172 1661 }
@@ -1177,9 +1666,9 @@
1177 1666 * @return array
1178 1667 */
1179 1668 protected function thankyou_page_widget_list() {
1180 1669 return [
1181 - 'order_received_text' => apply_filters(
1670 + 'order_received_text' => apply_filters(
1182 1671 'rtsb/elements/order_received_text/options',
1183 1672 [
1184 1673 'id' => 'order_received_text',
1185 1674 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
@@ -1189,9 +1678,9 @@
1189 1678 'package' => $this->pro_package(),
1190 1679 'fields' => [],
1191 1680 ]
1192 1681 ),
1193 - 'order_details_summary' => apply_filters(
1682 + 'order_details_summary' => apply_filters(
1194 1683 'rtsb/elements/order_details_summary/options',
1195 1684 [
1196 1685 'id' => 'order_details_summary',
1197 1686 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
@@ -1201,9 +1690,9 @@
1201 1690 'package' => $this->pro_package(),
1202 1691 'fields' => [],
1203 1692 ]
1204 1693 ),
1205 - 'order_details_table' => apply_filters(
1694 + 'order_details_table' => apply_filters(
1206 1695 'rtsb/elements/order_details_table/options',
1207 1696 [
1208 1697 'id' => 'order_details_table',
1209 1698 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
@@ -1213,9 +1702,9 @@
1213 1702 'package' => $this->pro_package(),
1214 1703 'fields' => [],
1215 1704 ]
1216 1705 ),
1217 - 'downloadable_products' => apply_filters(
1706 + 'downloadable_products' => apply_filters(
1218 1707 'rtsb/elements/downloadable_products/options',
1219 1708 [
1220 1709 'id' => 'downloadable_products',
1221 1710 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
@@ -1225,9 +1714,9 @@
1225 1714 'package' => $this->pro_package(),
1226 1715 'fields' => [],
1227 1716 ]
1228 1717 ),
1229 - 'order_billing_address' => apply_filters(
1718 + 'order_billing_address' => apply_filters(
1230 1719 'rtsb/elements/order_billing_address/options',
1231 1720 [
1232 1721 'id' => 'order_billing_address',
1233 1722 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
@@ -1237,9 +1726,9 @@
1237 1726 'package' => $this->pro_package(),
1238 1727 'fields' => [],
1239 1728 ]
1240 1729 ),
1241 - 'order_shipping_address' => apply_filters(
1730 + 'order_shipping_address' => apply_filters(
1242 1731 'rtsb/elements/order_shipping_address/options',
1243 1732 [
1244 1733 'id' => 'order_shipping_address',
1245 1734 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
@@ -1249,11 +1738,45 @@
1249 1738 'package' => $this->pro_package(),
1250 1739 'fields' => [],
1251 1740 ]
1252 1741 ),
1742 + 'order_custom_fields_data' => apply_filters(
1743 + 'rtsb/elements/order_custom_fields_data/options',
1744 + [
1745 + 'id' => 'order_custom_fields_data',
1746 + 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ),
1747 + 'category' => 'thank_you',
1748 + 'is_front_page' => 'thank_you',
1749 + 'active' => 'on',
1750 + 'package' => $this->pro_package(),
1751 + 'fields' => [],
1752 + ]
1753 + ),
1253 1754 ];
1254 1755 }
1756 + /**
1757 + * Checkout Page Order Pay Widget List.
1758 + *
1759 + * @return array
1760 + */
1761 + protected function orderpay_page_widget_list() {
1762 + return [
1763 + 'order_pay_form' => apply_filters(
1764 + 'rtsb/elements/order_pay_form/options',
1765 + [
1766 + 'id' => 'order_pay_form',
1767 + 'title' => esc_html__( 'Order Pay Form', 'shopbuilder' ),
1768 + 'category' => 'myaccount_dashboard',
1769 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1770 + 'active' => 'on',
1771 + 'package' => $this->pro_package(),
1772 + 'fields' => [],
1773 + ]
1774 + ),
1255 1775
1776 + ];
1777 + }
1778 +
1256 1779 /**
1257 1780 * Checkout Page Widget List.
1258 1781 *
1259 1782 * @return array
@@ -1258,10 +1781,21 @@
1258 1781 *
1259 1782 * @return array
1260 1783 */
1261 1784 protected function my_account_page_widget_list() {
1262 - return [
1263 -
1785 + $widgets = [
1786 + 'account_avatar' => apply_filters(
1787 + 'rtsb/elements/account_avatar/options',
1788 + [
1789 + 'id' => 'account_avatar',
1790 + 'title' => esc_html__( 'Account Avatar', 'shopbuilder' ),
1791 + 'category' => 'myaccount_dashboard',
1792 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1793 + 'active' => 'on',
1794 + 'package' => $this->pro_package(),
1795 + 'fields' => [],
1796 + ]
1797 + ),
1264 1798 'account_navigation_edit_shipping' => apply_filters(
1265 1799 'rtsb/elements/account_navigation_edit_shipping/options',
1266 1800 [
1267 1801 'id' => 'account_navigation_edit_shipping',
@@ -1278,9 +1812,9 @@
1278 1812 [
1279 1813 'id' => 'account_dashboard',
1280 1814 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1281 1815 'category' => 'myaccount_dashboard',
1282 - 'is_front_page' => 'myaccount_dashboard',
1816 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1283 1817 'active' => 'on',
1284 1818 'package' => $this->pro_package(),
1285 1819 'fields' => [],
1286 1820 ]
@@ -1290,9 +1824,9 @@
1290 1824 [
1291 1825 'id' => 'account_orders',
1292 1826 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1293 1827 'category' => 'myaccount_dashboard',
1294 - 'is_front_page' => 'myaccount_order',
1828 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1295 1829 'active' => 'on',
1296 1830 'package' => $this->pro_package(),
1297 1831 'fields' => [],
1298 1832 ]
@@ -1302,14 +1836,38 @@
1302 1836 [
1303 1837 'id' => 'account_downloads',
1304 1838 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1305 1839 'category' => 'myaccount_dashboard',
1306 - 'is_front_page' => 'myaccount_downloads',
1840 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1307 1841 'active' => 'on',
1308 1842 'package' => $this->pro_package(),
1309 1843 'fields' => [],
1310 1844 ]
1311 1845 ),
1846 + 'account_gift_cards' => apply_filters(
1847 + 'rtsb/elements/account_gift_cards/options',
1848 + [
1849 + 'id' => 'account_gift_cards',
1850 + 'title' => esc_html__( 'Account Gift Cards', 'shopbuilder' ),
1851 + 'category' => 'myaccount_dashboard',
1852 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1853 + 'active' => 'on',
1854 + 'package' => $this->pro_package(),
1855 + 'fields' => [],
1856 + ]
1857 + ),
1858 + 'account_gift_card_details' => apply_filters(
1859 + 'rtsb/elements/account_gift_card_details/options',
1860 + [
1861 + 'id' => 'account_gift_card_details',
1862 + 'title' => esc_html__( 'Account Gift Card Details', 'shopbuilder' ),
1863 + 'category' => 'myaccount_dashboard',
1864 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1865 + 'active' => 'on',
1866 + 'package' => $this->pro_package(),
1867 + 'fields' => [],
1868 + ]
1869 + ),
1312 1870 'account_billing_address' => apply_filters(
1313 1871 'rtsb/elements/account_billing_address/options',
1314 1872 [
1315 1873 'id' => 'account_billing_address',
@@ -1314,9 +1872,9 @@
1314 1872 [
1315 1873 'id' => 'account_billing_address',
1316 1874 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1317 1875 'category' => 'myaccount_dashboard',
1318 - 'is_front_page' => 'myaccount_address',
1876 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1319 1877 'active' => 'on',
1320 1878 'package' => $this->pro_package(),
1321 1879 'fields' => [],
1322 1880 ]
@@ -1326,9 +1884,9 @@
1326 1884 [
1327 1885 'id' => 'account_shipping_address',
1328 1886 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1329 1887 'category' => 'myaccount_dashboard',
1330 - 'is_front_page' => 'myaccount_address',
1888 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1331 1889 'active' => 'on',
1332 1890 'package' => $this->pro_package(),
1333 1891 'fields' => [],
1334 1892 ]
@@ -1338,9 +1896,9 @@
1338 1896 [
1339 1897 'id' => 'account_address_description',
1340 1898 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1341 1899 'category' => 'myaccount_dashboard',
1342 - 'is_front_page' => 'myaccount_address',
1900 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1343 1901 'active' => 'on',
1344 1902 'package' => $this->pro_package(),
1345 1903 'fields' => [],
1346 1904 ]
@@ -1350,9 +1908,9 @@
1350 1908 [
1351 1909 'id' => 'account_details',
1352 1910 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1353 1911 'category' => 'myaccount_dashboard',
1354 - 'is_front_page' => 'myaccount_edit_details',
1912 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1355 1913 'active' => 'on',
1356 1914 'package' => $this->pro_package(),
1357 1915 'fields' => [],
1358 1916 ]
@@ -1362,9 +1920,9 @@
1362 1920 [
1363 1921 'id' => 'account_order_status',
1364 1922 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1365 1923 'category' => 'myaccount_dashboard',
1366 - 'is_front_page' => 'myaccount_orders_details',
1924 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1367 1925 'active' => 'on',
1368 1926 'package' => $this->pro_package(),
1369 1927 'fields' => [],
1370 1928 ]
@@ -1374,9 +1932,9 @@
1374 1932 [
1375 1933 'id' => 'account_order_details_download',
1376 1934 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1377 1935 'category' => 'myaccount_dashboard',
1378 - 'is_front_page' => 'myaccount_orders_details',
1936 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1379 1937 'active' => 'on',
1380 1938 'package' => $this->pro_package(),
1381 1939 'fields' => [],
1382 1940 ]
@@ -1386,9 +1944,9 @@
1386 1944 [
1387 1945 'id' => 'account_order_details_note',
1388 1946 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1389 1947 'category' => 'myaccount_dashboard',
1390 - 'is_front_page' => 'myaccount_orders_details',
1948 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1391 1949 'active' => 'on',
1392 1950 'package' => $this->pro_package(),
1393 1951 'fields' => [],
1394 1952 ]
@@ -1398,9 +1956,9 @@
1398 1956 [
1399 1957 'id' => 'account_order_details_table',
1400 1958 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1401 1959 'category' => 'myaccount_dashboard',
1402 - 'is_front_page' => 'myaccount_orders_details',
1960 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1403 1961 'active' => 'on',
1404 1962 'package' => $this->pro_package(),
1405 1963 'fields' => [],
1406 1964 ]
@@ -1410,9 +1968,9 @@
1410 1968 [
1411 1969 'id' => 'account_order_details_order_again',
1412 1970 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1413 1971 'category' => 'myaccount_dashboard',
1414 - 'is_front_page' => 'myaccount_orders_details',
1972 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1415 1973 'active' => 'on',
1416 1974 'package' => $this->pro_package(),
1417 1975 'fields' => [],
1418 1976 ]
@@ -1422,9 +1980,9 @@
1422 1980 [
1423 1981 'id' => 'account_order_details_order_shipping',
1424 1982 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1425 1983 'category' => 'myaccount_dashboard',
1426 - 'is_front_page' => 'myaccount_orders_details',
1984 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1427 1985 'active' => 'on',
1428 1986 'package' => $this->pro_package(),
1429 1987 'fields' => [],
1430 1988 ]
@@ -1434,9 +1992,9 @@
1434 1992 [
1435 1993 'id' => 'account_order_details_order_billing',
1436 1994 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1437 1995 'category' => 'myaccount_dashboard',
1438 - 'is_front_page' => 'myaccount_orders_details',
1996 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1439 1997 'active' => 'on',
1440 1998 'package' => $this->pro_package(),
1441 1999 'fields' => [],
1442 2000 ]
@@ -1446,9 +2004,9 @@
1446 2004 [
1447 2005 'id' => 'account_edit_billing_address',
1448 2006 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1449 2007 'category' => 'myaccount_dashboard',
1450 - 'is_front_page' => 'myaccount_edit_billing_address',
2008 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1451 2009 'active' => 'on',
1452 2010 'package' => $this->pro_package(),
1453 2011 'fields' => [],
1454 2012 ]
@@ -1458,15 +2016,41 @@
1458 2016 [
1459 2017 'id' => 'account_edit_shipping_address',
1460 2018 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1461 2019 'category' => 'myaccount_dashboard',
1462 - 'is_front_page' => 'myaccount_edit_shipping_address',
2020 + 'is_front_page' => 'all_myaccount_dashboard_inner',
1463 2021 'active' => 'on',
1464 2022 'package' => $this->pro_package(),
1465 2023 'fields' => [],
1466 2024 ]
1467 2025 ),
2026 + 'account_payment_methods' => apply_filters(
2027 + 'rtsb/elements/account_payment_methods/options',
2028 + [
2029 + 'id' => 'account_payment_methods',
2030 + 'title' => esc_html__( 'Payment Methods', 'shopbuilder' ),
2031 + 'category' => 'myaccount_dashboard',
2032 + 'is_front_page' => 'all_myaccount_dashboard_inner',
2033 + 'active' => 'on',
2034 + 'package' => $this->pro_package(),
2035 + 'fields' => [],
2036 + ]
2037 + ),
2038 + 'account_add_payment_method' => apply_filters(
2039 + 'rtsb/elements/account_add_payment_method/options',
2040 + [
2041 + 'id' => 'account_add_payment_method',
2042 + 'title' => esc_html__( 'Add Payment Method', 'shopbuilder' ),
2043 + 'category' => 'myaccount_dashboard',
2044 + 'is_front_page' => 'all_myaccount_dashboard_inner',
2045 + 'active' => 'on',
2046 + 'package' => $this->pro_package(),
2047 + 'fields' => [],
2048 + ]
2049 + ),
1468 2050 ];
2051 +
2052 + return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets );
1469 2053 }
1470 2054
1471 2055 /***
1472 2056 * @return array
@@ -1514,9 +2098,9 @@
1514 2098 [
1515 2099 'id' => 'account_lost_password',
1516 2100 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1517 2101 'category' => 'others_widget',
1518 - 'is_front_page' => 'myaccount_lost_password',
2102 + 'is_front_page' => 'myaccount_auth',
1519 2103 'active' => 'on',
1520 2104 'package' => $this->pro_package(),
1521 2105 'fields' => [],
1522 2106 ]