Changeset 2913809
- Timestamp:
- 05/17/2023 05:03:42 PM (3 years ago)
- Location:
- orderable
- Files:
-
- 16 edited
- 1 copied
-
tags/1.8.1 (copied) (copied from orderable/trunk)
-
tags/1.8.1/docs/actions.json (modified) (8 diffs)
-
tags/1.8.1/docs/filters.json (modified) (11 diffs)
-
tags/1.8.1/inc/modules/location/class-location-single.php (modified) (5 diffs)
-
tags/1.8.1/inc/modules/location/zones/class-location-zones.php (modified) (1 diff)
-
tags/1.8.1/inc/modules/timings/class-timings-settings.php (modified) (1 diff)
-
tags/1.8.1/languages/orderable.pot (modified) (3 diffs)
-
tags/1.8.1/orderable.php (modified) (2 diffs)
-
tags/1.8.1/readme.txt (modified) (3 diffs)
-
trunk/docs/actions.json (modified) (8 diffs)
-
trunk/docs/filters.json (modified) (11 diffs)
-
trunk/inc/modules/location/class-location-single.php (modified) (5 diffs)
-
trunk/inc/modules/location/zones/class-location-zones.php (modified) (1 diff)
-
trunk/inc/modules/timings/class-timings-settings.php (modified) (1 diff)
-
trunk/languages/orderable.pot (modified) (3 diffs)
-
trunk/orderable.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orderable/tags/1.8.1/docs/actions.json
r2912589 r2913809 15 15 }, 16 16 { 17 "name": "orderable_after_create_custom_tables", 18 "file": "inc/database/class-database.php", 19 "type": "action", 20 "doc": { 21 "description": "Fires after creating Orderable custom tables.", 22 "long_description": "", 23 "tags": [ 24 { 25 "name": "since", 26 "content": "1.8.0" 27 }, 28 { 29 "name": "hook", 30 "content": "orderable_after_create_custom_tables" 31 } 32 ], 33 "long_description_html": "" 34 }, 35 "args": 0 36 }, 37 { 17 38 "name": "orderable_after_frontend_assets", 18 39 "file": "inc/class-assets.php", … … 85 106 }, 86 107 { 108 "name": "orderable_asap_order_options", 109 "file": "inc/modules/location/admin/meta-boxes/class-location-order-options-meta-box.php", 110 "type": "action", 111 "doc": { 112 "description": "Output additional ASAP order options.", 113 "long_description": "", 114 "tags": [ 115 { 116 "name": "since", 117 "content": "1.8.0" 118 }, 119 { 120 "name": "param", 121 "content": "Orderable_Location_Single instance.", 122 "types": [ 123 "\\Orderable_Location_Single" 124 ], 125 "variable": "$location" 126 } 127 ], 128 "long_description_html": "" 129 }, 130 "args": 1 131 }, 132 { 133 "name": "orderable_before_create_custom_tables", 134 "file": "inc/database/class-database.php", 135 "type": "action", 136 "doc": { 137 "description": "Fires before creating Orderable custom tables.", 138 "long_description": "", 139 "tags": [ 140 { 141 "name": "since", 142 "content": "1.8.0" 143 }, 144 { 145 "name": "hook", 146 "content": "orderable_before_create_custom_tables" 147 } 148 ], 149 "long_description_html": "" 150 }, 151 "args": 0 152 }, 153 { 87 154 "name": "orderable_before_product_actions", 88 155 "file": "templates/product/actions.php", … … 266 333 }, 267 334 { 335 "name": "orderable_before_save_service_hours", 336 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 337 "type": "action", 338 "doc": { 339 "description": "Fires before saving service hours.", 340 "long_description": "", 341 "tags": [ 342 { 343 "name": "since", 344 "content": "1.8.0" 345 }, 346 { 347 "name": "hook", 348 "content": "orderable_before_save_service_hours" 349 }, 350 { 351 "name": "param", 352 "content": "The location ID.", 353 "types": [ 354 "int" 355 ], 356 "variable": "$location_id" 357 }, 358 { 359 "name": "param", 360 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 361 "types": [ 362 "string" 363 ], 364 "variable": "$service_type" 365 } 366 ], 367 "long_description_html": "" 368 }, 369 "args": 2 370 }, 371 { 372 "name": "orderable_before_time_slots_table_end", 373 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 374 "type": "action", 375 "doc": { 376 "description": "Render content at the end of the time slots table.", 377 "long_description": "", 378 "tags": [ 379 { 380 "name": "since", 381 "content": "1.8.0" 382 } 383 ], 384 "long_description_html": "" 385 }, 386 "args": 4 387 }, 388 { 268 389 "name": "orderable_init", 269 390 "file": "orderable.php", … … 271 392 "doc": { 272 393 "description": "Plugin Name: Orderable - Local Ordering System Author URI: https://orderable.com Description: Take local online ordering to a whole new level with Orderable.", 273 "long_description": "Version: 1.7.2 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.2.2", 274 "tags": [], 275 "long_description_html": "<p>Version: 1.7.2 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.2.2</p>" 276 }, 277 "args": 0 394 "long_description": "Version: 1.8.0 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.7", 395 "tags": [], 396 "long_description_html": "<p>Version: 1.8.0 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.7</p>" 397 }, 398 "args": 0 399 }, 400 { 401 "name": "orderable_location_save_data", 402 "file": "inc/modules/location/admin/class-location-admin.php", 403 "type": "action", 404 "doc": { 405 "description": "Fires when location data is saved.", 406 "long_description": "", 407 "tags": [ 408 { 409 "name": "since", 410 "content": "1.8.0" 411 }, 412 { 413 "name": "hook", 414 "content": "orderable_location_save_data" 415 }, 416 { 417 "name": "param", 418 "content": "The location data.", 419 "types": [ 420 "array" 421 ], 422 "variable": "$data" 423 } 424 ], 425 "long_description_html": "" 426 }, 427 "args": 1 428 }, 429 { 430 "name": "orderable_location_service_hour_inserted", 431 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 432 "type": "action", 433 "doc": { 434 "description": "Fires after inserting a service hour.", 435 "long_description": "", 436 "tags": [ 437 { 438 "name": "since", 439 "content": "1.8.0" 440 }, 441 { 442 "name": "hook", 443 "content": "orderable_location_service_hour_inserted" 444 }, 445 { 446 "name": "param", 447 "content": "The service hour data.", 448 "types": [ 449 "array" 450 ], 451 "variable": "$service_hour" 452 }, 453 { 454 "name": "param", 455 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 456 "types": [ 457 "string" 458 ], 459 "variable": "$service_type" 460 }, 461 { 462 "name": "param", 463 "content": "The location ID.", 464 "types": [ 465 "int" 466 ], 467 "variable": "$location_id" 468 } 469 ], 470 "long_description_html": "" 471 }, 472 "args": 3 473 }, 474 { 475 "name": "orderable_location_service_hour_updated", 476 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 477 "type": "action", 478 "doc": { 479 "description": "Fires after updating a service hour.", 480 "long_description": "", 481 "tags": [ 482 { 483 "name": "since", 484 "content": "1.8.0" 485 }, 486 { 487 "name": "hook", 488 "content": "orderable_location_service_hour_updated" 489 }, 490 { 491 "name": "param", 492 "content": "The service hour data.", 493 "types": [ 494 "array" 495 ], 496 "variable": "$service_hour" 497 }, 498 { 499 "name": "param", 500 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 501 "types": [ 502 "string" 503 ], 504 "variable": "$service_type" 505 }, 506 { 507 "name": "param", 508 "content": "The location ID.", 509 "types": [ 510 "int" 511 ], 512 "variable": "$location_id" 513 } 514 ], 515 "long_description_html": "" 516 }, 517 "args": 3 278 518 }, 279 519 { … … 350 590 }, 351 591 { 592 "name": "orderable_onboard_settings_saved", 593 "file": "inc/class-settings.php", 594 "type": "action", 595 "doc": { 596 "description": "Action hook for when the onboard settings are saved.", 597 "long_description": "", 598 "tags": [ 599 { 600 "name": "param", 601 "content": "The settings.", 602 "types": [ 603 "array" 604 ], 605 "variable": "$fields" 606 } 607 ], 608 "long_description_html": "" 609 }, 610 "args": 1 611 }, 612 { 352 613 "name": "orderable_side_menu_after_product_options", 353 614 "file": "templates/product/options.php", … … 437 698 }, 438 699 "args": 2 700 }, 701 { 702 "name": "orderable_store_services_delivery_wrapper", 703 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 704 "type": "action", 705 "doc": { 706 "description": "Render content inside the delivery wrapper.", 707 "long_description": "", 708 "tags": [ 709 { 710 "name": "since", 711 "content": "1.8.0" 712 } 713 ], 714 "long_description_html": "" 715 }, 716 "args": 0 717 }, 718 { 719 "name": "orderable_store_services_pickup_wrapper", 720 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 721 "type": "action", 722 "doc": { 723 "description": "Render content inside the pickup wrapper.", 724 "long_description": "", 725 "tags": [ 726 { 727 "name": "since", 728 "content": "1.8.0" 729 } 730 ], 731 "long_description_html": "" 732 }, 733 "args": 0 734 }, 735 { 736 "name": "orderable_upgrade_database_routine", 737 "file": "inc/database/class-database.php", 738 "type": "action", 739 "doc": { 740 "description": "Fires on the database upgrade routine.", 741 "long_description": "", 742 "tags": [ 743 { 744 "name": "since", 745 "content": "1.8.0" 746 }, 747 { 748 "name": "hook", 749 "content": "orderable_upgrade_database_routine" 750 }, 751 { 752 "name": "param", 753 "content": "The upgrade version routine. E.g.: 1.8.0.", 754 "types": [ 755 "string" 756 ], 757 "variable": "$version" 758 } 759 ], 760 "long_description_html": "" 761 }, 762 "args": 1 439 763 }, 440 764 { … … 501 825 }, 502 826 { 503 "name": "woocommerce_checkout_update_user_meta",504 "file": "inc/class-ajax.php",505 "type": "action",506 "doc": {507 "description": "",508 "long_description": "",509 "tags": [],510 "long_description_html": ""511 },512 "args": 2513 },514 {515 827 "name": "woocommerce_mini_cart_contents", 516 828 "file": "woocommerce/cart/mini-cart.php", … … 523 835 }, 524 836 "args": 0 525 },526 {527 "name": "woocommerce_shipping_method_chosen",528 "file": "inc/class-ajax.php",529 "type": "action",530 "doc": {531 "description": "",532 "long_description": "",533 "tags": [],534 "long_description_html": ""535 },536 "args": 1537 837 }, 538 838 { -
orderable/tags/1.8.1/docs/filters.json
r2843405 r2913809 15 15 }, 16 16 { 17 "name": "iconic_wds_is_delivery_day",18 "file": "inc/modules/timings/class-timings.php",19 "type": "filter",20 "doc": {21 "description": "",22 "long_description": "",23 "tags": [],24 "long_description_html": ""25 },26 "args": 327 },28 {29 "name": "iconic_wds_is_delivery_day",30 "file": "inc/modules/timings/class-timings.php",31 "type": "filter",32 "doc": {33 "description": "",34 "long_description": "",35 "tags": [],36 "long_description_html": ""37 },38 "args": 339 },40 {41 "name": "iconic_wds_is_delivery_day",42 "file": "inc/modules/timings/class-timings.php",43 "type": "filter",44 "doc": {45 "description": "",46 "long_description": "",47 "tags": [],48 "long_description_html": ""49 },50 "args": 351 },52 {53 "name": "orderable-service-dates",54 "file": "inc/modules/timings/class-timings.php",55 "type": "filter",56 "doc": {57 "description": "",58 "long_description": "",59 "tags": [],60 "long_description_html": ""61 },62 "args": 263 },64 {65 "name": "orderable-service-dates",66 "file": "inc/modules/timings/class-timings.php",67 "type": "filter",68 "doc": {69 "description": "",70 "long_description": "",71 "tags": [],72 "long_description_html": ""73 },74 "args": 275 },76 {77 "name": "orderable-service-dates",78 "file": "inc/modules/timings/class-timings.php",79 "type": "filter",80 "doc": {81 "description": "",82 "long_description": "",83 "tags": [],84 "long_description_html": ""85 },86 "args": 287 },88 {89 "name": "orderable-service-dates",90 "file": "inc/modules/timings/class-timings.php",91 "type": "filter",92 "doc": {93 "description": "",94 "long_description": "",95 "tags": [],96 "long_description_html": ""97 },98 "args": 299 },100 {101 17 "name": "orderable_add_to_cart_button_args", 102 18 "file": "inc/class-products.php", … … 169 85 }, 170 86 { 171 "name": "orderable_date_available",172 "file": "inc/modules/timings/class-timings.php",173 "type": "filter",174 "doc": {175 "description": "",176 "long_description": "",177 "tags": [],178 "long_description_html": ""179 },180 "args": 4181 },182 {183 87 "name": "orderable_default_settings", 184 88 "file": "inc/class-settings.php", … … 328 232 "type": "filter", 329 233 "doc": { 330 "description": "", 331 "long_description": "", 332 "tags": [], 333 "long_description_html": "" 334 }, 335 "args": 2 336 }, 337 { 338 "name": "orderable_get_holiday_timestamps_by_type", 339 "file": "inc/modules/timings/class-timings.php", 340 "type": "filter", 341 "doc": { 342 "description": "", 343 "long_description": "", 344 "tags": [], 345 "long_description_html": "" 346 }, 347 "args": 2 348 }, 349 { 350 "name": "orderable_get_holiday_timestamps_by_type", 351 "file": "inc/modules/timings/class-timings.php", 352 "type": "filter", 353 "doc": { 354 "description": "", 355 "long_description": "", 356 "tags": [], 357 "long_description_html": "" 358 }, 359 "args": 2 360 }, 361 { 362 "name": "orderable_get_holidays", 363 "file": "inc/modules/timings/class-timings.php", 364 "type": "filter", 365 "doc": { 366 "description": "", 367 "long_description": "", 368 "tags": [], 369 "long_description_html": "" 370 }, 371 "args": 1 372 }, 373 { 374 "name": "orderable_get_holidays", 375 "file": "inc/modules/timings/class-timings.php", 376 "type": "filter", 377 "doc": { 378 "description": "", 379 "long_description": "", 380 "tags": [], 381 "long_description_html": "" 382 }, 383 "args": 1 234 "description": "Module: Timings.", 235 "long_description": "Delivery/pickup date and time and lead times.", 236 "tags": [ 237 { 238 "name": "package", 239 "content": "Orderable/Classes" 240 } 241 ], 242 "long_description_html": "<p>Delivery/pickup date and time and lead times.</p>" 243 }, 244 "args": 2 384 245 }, 385 246 { … … 512 373 }, 513 374 { 514 "name": "orderable_get_service_hours_settings",515 "file": "inc/modules/timings/class-timings-settings.php",516 "type": "filter",517 "doc": {518 "description": "",519 "long_description": "",520 "tags": [],521 "long_description_html": ""522 },523 "args": 2524 },525 {526 "name": "orderable_get_service_hours_settings",527 "file": "inc/modules/timings/class-timings-settings.php",528 "type": "filter",529 "doc": {530 "description": "",531 "long_description": "",532 "tags": [],533 "long_description_html": ""534 },535 "args": 2536 },537 {538 375 "name": "orderable_get_service_type", 539 376 "file": "inc/modules/services/class-services-order.php", … … 565 402 }, 566 403 { 567 "name": "orderable_get_slots",568 "file": "inc/modules/timings/class-timings.php",569 "type": "filter",570 "doc": {571 "description": "",572 "long_description": "",573 "tags": [],574 "long_description_html": ""575 },576 "args": 3577 },578 {579 404 "name": "orderable_get_time_slot_fields", 580 405 "file": "inc/modules/timings/class-timings-settings.php", … … 681 506 }, 682 507 { 683 "name": "orderable_is_delivery_day",684 "file": "inc/modules/timings/class-timings.php",685 "type": "filter",686 "doc": {687 "description": "",688 "long_description": "",689 "tags": [],690 "long_description_html": ""691 },692 "args": 3693 },694 {695 508 "name": "orderable_is_settings_page", 696 509 "file": "inc/class-settings.php", … … 801 614 }, 802 615 { 616 "name": "orderable_location_allowed_pages_to_load_assets", 617 "file": "inc/modules/location/admin/class-location-admin.php", 618 "type": "filter", 619 "doc": { 620 "description": "Filter the pages allowed to load the location assets.", 621 "long_description": "", 622 "tags": [ 623 { 624 "name": "since", 625 "content": "1.18.0" 626 }, 627 { 628 "name": "hook", 629 "content": "orderable_location_allowed_pages_to_load_assets" 630 }, 631 { 632 "name": "param", 633 "content": "The allowed pages.", 634 "types": [ 635 "array" 636 ], 637 "variable": "$allowed_pages" 638 }, 639 { 640 "name": "param", 641 "content": "The type of asset:<code>styles</code> or <code>scripts</code>.", 642 "types": [ 643 "string" 644 ], 645 "variable": "$asset_type" 646 }, 647 { 648 "name": "param", 649 "content": "The ID of screen.", 650 "types": [ 651 "string" 652 ], 653 "variable": "$current_screen_id" 654 }, 655 { 656 "name": "return", 657 "content": "New value", 658 "types": [ 659 "array" 660 ] 661 } 662 ], 663 "long_description_html": "" 664 }, 665 "args": 3 666 }, 667 { 668 "name": "orderable_location_get_default_open_hours", 669 "file": "inc/modules/location/class-location.php", 670 "type": "filter", 671 "doc": { 672 "description": "Since we intercept the `Orderable_Settings::get_setting()` function to keep compatible with Location feature, we need to check it to avoid hitting the database early.", 673 "long_description": "", 674 "tags": [], 675 "long_description_html": "" 676 }, 677 "args": 1 678 }, 679 { 680 "name": "orderable_location_get_save_data", 681 "file": "inc/modules/location/admin/class-location-admin.php", 682 "type": "filter", 683 "doc": { 684 "description": "Filter the location data to be saved.", 685 "long_description": "", 686 "tags": [ 687 { 688 "name": "since", 689 "content": "1.8.0" 690 }, 691 { 692 "name": "hook", 693 "content": "orderable_location_get_save_data" 694 }, 695 { 696 "name": "param", 697 "content": "The data to be saved.", 698 "types": [ 699 "array" 700 ], 701 "variable": "$data" 702 }, 703 { 704 "name": "param", 705 "content": "The post ID.", 706 "types": [ 707 "int" 708 ], 709 "variable": "$post_id" 710 }, 711 { 712 "name": "return", 713 "content": "New value", 714 "types": [ 715 "array" 716 ] 717 } 718 ], 719 "long_description_html": "" 720 }, 721 "args": 1 722 }, 723 { 724 "name": "orderable_location_get_selected_location", 725 "file": "inc/modules/location/class-location.php", 726 "type": "filter", 727 "doc": { 728 "description": "Filter the selected location.", 729 "long_description": "", 730 "tags": [ 731 { 732 "name": "since", 733 "content": "1.8.0" 734 }, 735 { 736 "name": "hook", 737 "content": "orderable_location_get_selected_location" 738 }, 739 { 740 "name": "param", 741 "content": "The location object.", 742 "types": [ 743 "\\Orderable_Location", 744 "false" 745 ], 746 "variable": "$location" 747 } 748 ], 749 "long_description_html": "" 750 }, 751 "args": 1 752 }, 753 { 754 "name": "orderable_location_get_selected_location_id", 755 "file": "inc/modules/location/class-location.php", 756 "type": "filter", 757 "doc": { 758 "description": "Filter the selected location ID.", 759 "long_description": "", 760 "tags": [ 761 { 762 "name": "since", 763 "content": "1.8.0" 764 }, 765 { 766 "name": "hook", 767 "content": "orderable_location_get_selected_location_id" 768 }, 769 { 770 "name": "param", 771 "content": "The location ID.", 772 "types": [ 773 "int", 774 "false" 775 ], 776 "variable": "$location_id" 777 } 778 ], 779 "long_description_html": "" 780 }, 781 "args": 1 782 }, 783 { 784 "name": "orderable_location_lead_time_period_field_options", 785 "file": "inc/modules/location/admin/meta-boxes/class-location-order-options-meta-box.php", 786 "type": "filter", 787 "doc": { 788 "description": "Filter the options for the Lead Time Period select field.", 789 "long_description": "", 790 "tags": [ 791 { 792 "name": "since", 793 "content": "1.18.0" 794 }, 795 { 796 "name": "hook", 797 "content": "orderable_location_lead_time_period_field_options" 798 }, 799 { 800 "name": "param", 801 "content": "The Lead Time Period field options.", 802 "types": [ 803 "array" 804 ], 805 "variable": "$options" 806 }, 807 { 808 "name": "return", 809 "content": "New value", 810 "types": [ 811 "array" 812 ] 813 } 814 ], 815 "long_description_html": "" 816 }, 817 "args": 1 818 }, 819 { 803 820 "name": "orderable_main_class", 804 821 "file": "inc/modules/layouts/templates/main.php", … … 846 863 }, 847 864 { 848 "name": "orderable_open_hours", 849 "file": "inc/modules/timings/class-timings.php", 850 "type": "filter", 851 "doc": { 852 "description": "Module: Timings.", 853 "long_description": "Delivery/pickup date and time and lead times.", 865 "name": "orderable_pointers", 866 "file": "inc/class-settings.php", 867 "type": "filter", 868 "doc": { 869 "description": "", 870 "long_description": "", 871 "tags": [], 872 "long_description_html": "" 873 }, 874 "args": 1 875 }, 876 { 877 "name": "orderable_product_hero_image_size", 878 "file": "templates/product/hero.php", 879 "type": "filter", 880 "doc": { 881 "description": "Allow product hero image size to be updated.", 882 "long_description": "", 883 "tags": [ 884 { 885 "name": "param", 886 "content": "Product.", 887 "types": [ 888 "\\WC_Product" 889 ], 890 "variable": "$product" 891 }, 892 { 893 "name": "param", 894 "content": "Argumentss passed to the Layout shortcode.", 895 "types": [ 896 "array" 897 ], 898 "variable": "$args" 899 } 900 ], 901 "long_description_html": "" 902 }, 903 "args": 3 904 }, 905 { 906 "name": "orderable_service_labels", 907 "file": "inc/modules/services/class-services.php", 908 "type": "filter", 909 "doc": { 910 "description": "Module: Services.", 911 "long_description": "Delivery/pickup services.", 854 912 "tags": [ 855 913 { … … 858 916 } 859 917 ], 860 "long_description_html": "<p>Delivery/pickup date and time and lead times.</p>"861 },862 "args": 1863 },864 {865 "name": "orderable_product_hero_image_size",866 "file": "templates/product/hero.php",867 "type": "filter",868 "doc": {869 "description": "Allow product hero image size to be updated.",870 "long_description": "",871 "tags": [872 {873 "name": "param",874 "content": "Product.",875 "types": [876 "\\WC_Product"877 ],878 "variable": "$product"879 },880 {881 "name": "param",882 "content": "Argumentss passed to the Layout shortcode.",883 "types": [884 "array"885 ],886 "variable": "$args"887 }888 ],889 "long_description_html": ""890 },891 "args": 3892 },893 {894 "name": "orderable_service_fragments",895 "file": "inc/class-ajax.php",896 "type": "filter",897 "doc": {898 "description": "",899 "long_description": "",900 "tags": [],901 "long_description_html": ""902 },903 "args": 1904 },905 {906 "name": "orderable_service_labels",907 "file": "inc/modules/services/class-services.php",908 "type": "filter",909 "doc": {910 "description": "Module: Services.",911 "long_description": "Delivery/pickup services.",912 "tags": [913 {914 "name": "package",915 "content": "Orderable/Classes"916 }917 ],918 918 "long_description_html": "<p>Delivery/pickup services.</p>" 919 919 }, … … 945 945 }, 946 946 { 947 "name": "orderable_settings", 948 "file": "inc/class-settings.php", 949 "type": "filter", 950 "doc": { 951 "description": "Filter the orderable settings.", 952 "long_description": "", 953 "tags": [ 954 { 955 "name": "since", 956 "content": "1.8.0" 957 }, 958 { 959 "name": "hook", 960 "content": "orderable_settings" 961 }, 962 { 963 "name": "param", 964 "content": "The orderable settings.", 965 "types": [ 966 "false", 967 "array" 968 ], 969 "variable": "$settings" 970 }, 971 { 972 "name": "param", 973 "content": "The setting name to be retrieved.", 974 "types": [ 975 "string" 976 ], 977 "variable": "$setting_name" 978 }, 979 { 980 "name": "return", 981 "content": "New value", 982 "types": [ 983 "false", 984 "array" 985 ] 986 } 987 ], 988 "long_description_html": "" 989 }, 990 "args": 2 991 }, 992 { 947 993 "name": "orderable_short_description", 948 994 "file": "templates/product/card-content.php", … … 999 1045 }, 1000 1046 "args": 3 1047 }, 1048 { 1049 "name": "orderable_skip_migrate_main_location_data_to_custom_table", 1050 "file": "inc/database/tables/class-location-locations-table.php", 1051 "type": "filter", 1052 "doc": { 1053 "description": "Filter whether we should skip the migration of the main location data from `orderable_settings` to the orderable custom table.", 1054 "long_description": "By default, we don't migrate if the custom table already has the main location data.", 1055 "tags": [ 1056 { 1057 "name": "since", 1058 "content": "1.8.0" 1059 }, 1060 { 1061 "name": "hook", 1062 "content": "orderable_skip_migrate_main_location_data_to_custom_table" 1063 }, 1064 { 1065 "name": "param", 1066 "content": "If we should migrate.", 1067 "types": [ 1068 "bool" 1069 ], 1070 "variable": "$skip_migration" 1071 }, 1072 { 1073 "name": "return", 1074 "content": "New value", 1075 "types": [ 1076 "bool" 1077 ] 1078 } 1079 ], 1080 "long_description_html": "<p>By default, we don't migrate if the custom table already has the main location data.</p>" 1081 }, 1082 "args": 1 1083 }, 1084 { 1085 "name": "orderable_skip_migrate_main_location_time_slots_data_to_custom_table", 1086 "file": "inc/database/tables/class-location-time-slots-table.php", 1087 "type": "filter", 1088 "doc": { 1089 "description": "Filter whether we should skip the migration of the main location time slots data from `orderable_settings` to the orderable custom table.", 1090 "long_description": "By default, we don't migrate if the custom table already has the main location time slots data.", 1091 "tags": [ 1092 { 1093 "name": "since", 1094 "content": "1.8.0" 1095 }, 1096 { 1097 "name": "hook", 1098 "content": "orderable_skip_migrate_main_location_time_slots_data_to_custom_table" 1099 }, 1100 { 1101 "name": "param", 1102 "content": "If we should migrate.", 1103 "types": [ 1104 "bool" 1105 ], 1106 "variable": "$skip_migration" 1107 }, 1108 { 1109 "name": "return", 1110 "content": "New value", 1111 "types": [ 1112 "bool" 1113 ] 1114 } 1115 ], 1116 "long_description_html": "<p>By default, we don't migrate if the custom table already has the main location time slots data.</p>" 1117 }, 1118 "args": 1 1001 1119 }, 1002 1120 { -
orderable/tags/1.8.1/inc/modules/location/class-location-single.php
r2912589 r2913809 104 104 105 105 /** 106 * Does the location have any services enabled. 107 * 108 * @return bool 109 */ 110 public function has_services() { 111 return ! empty( $this->get_services() ); 112 } 113 114 /** 106 115 * Get lead time period. 107 116 * … … 145 154 */ 146 155 public function get_preorder_days() { 147 return ! empty( $this->location_data['preorder'] ) ? absint( $this->location_data['preorder'] ) : 7;156 return isset( $this->location_data['preorder'] ) ? absint( $this->location_data['preorder'] ) : 7; 148 157 } 149 158 … … 527 536 } 528 537 538 if ( has_filter( 'orderable_get_slots' ) ) { 539 _deprecated_hook( 'orderable_get_slots', '1.8.0', 'orderable_location_get_slots' ); 540 541 /** 542 * Filter location slots. 543 * 544 * @since 1.0.0 545 * @hook orderable_get_slots 546 * @deprecated 1.8.0 Use orderable_location_get_slots instead. 547 * 548 * @param array $slots Location slots. 549 * @param int $timestamp Timestamp (GMT). 550 * @param string $type The service type. Either 'delivery' or 'pickup'. 551 * @param Orderable_Location_Single $location Location object. 552 */ 553 $slots = apply_filters( 'orderable_get_slots', $slots, $timestamp, $type, $this ); 554 } 555 529 556 /** 530 557 * Filter location slots. … … 532 559 * @since 1.8.0 533 560 * @hook orderable_location_get_slots 561 * 534 562 * @param array $slots Location slots. 535 563 * @param int $timestamp Timestamp (GMT). … … 795 823 796 824 if ( ! empty( $service_days ) ) { 825 /** 826 * Filter the max index date. 827 * 828 * Since the condition to break the loop that 829 * searchs for service dates relies on the 830 * preorder days limit, we check against $max_index_date 831 * to prevent an infinite loop case preorder days 832 * limit fail multiple times. 833 * 834 * @since 1.8.1 835 * @hook orderable_location_max_index_date 836 * @param int $max_index_date The max index date value. Default: 365. 837 * @param string $type The type. Can be 'delivery' or 'pickup'. 838 * @param Orderable_Location_Single $location The location. 839 * @return int New value 840 */ 841 $max_index_date = apply_filters( 'orderable_location_max_index_date', 365, $type, $this ); 842 797 843 foreach ( $date_range as $index => $date ) { 844 // Check to avoid an infinite loop. 845 if ( $index > $max_index_date ) { 846 break; 847 } 848 798 849 // If we're at the preorder day limit, break the loop. 799 850 if ( $counted_preorder_days > $preorder_days ) { -
orderable/tags/1.8.1/inc/modules/location/zones/class-location-zones.php
r2912589 r2913809 35 35 WC()->session->set( 'orderable_chosen_zone_id', $zone_id ); 36 36 37 if ( ! $selected_location ) {37 if ( ! $selected_location || ! $selected_location->has_services() ) { 38 38 return $rates; 39 39 } -
orderable/tags/1.8.1/inc/modules/timings/class-timings-settings.php
r2912589 r2913809 18 18 */ 19 19 public static $open_hours_key = 'store_general_open_hours'; 20 21 /** 22 * Service hours settings key. 23 * 24 * @var string 25 * @deprecated 1.8.0 No longer used. 26 */ 27 public static $service_hours_key = 'store_general_service_hours'; 20 28 21 29 /** -
orderable/tags/1.8.1/languages/orderable.pot
r2912589 r2913809 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-05-1 5 15:43+0000\n"9 "POT-Creation-Date: 2023-05-17 16:39+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 623 623 msgstr "" 624 624 625 #: inc/modules/location/class-location-single.php:45 0625 #: inc/modules/location/class-location-single.php:459 626 626 msgid "Closed" 627 627 msgstr "" 628 628 629 #: inc/modules/location/class-location-single.php:4 56629 #: inc/modules/location/class-location-single.php:465 630 630 msgid "Holiday" 631 631 msgstr "" 632 632 633 #: inc/modules/location/class-location-single.php:5 18, inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php:490633 #: inc/modules/location/class-location-single.php:527, inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php:490 634 634 msgid "All Day" 635 635 msgstr "" … … 845 845 msgstr "" 846 846 847 #: inc/modules/timings/class-timings-settings.php: 88, inc/modules/location/admin/meta-boxes/class-location-open-hours-meta-box.php:347847 #: inc/modules/timings/class-timings-settings.php:96, inc/modules/location/admin/meta-boxes/class-location-open-hours-meta-box.php:347 848 848 msgid "Max Orders (Day)" 849 849 msgstr "" 850 850 851 #: inc/modules/timings/class-timings-settings.php:1 09851 #: inc/modules/timings/class-timings-settings.php:117 852 852 msgid "Hours" 853 853 msgstr "" 854 854 855 #: inc/modules/timings/class-timings-settings.php:1 17855 #: inc/modules/timings/class-timings-settings.php:125 856 856 msgid "Frequency (Mins)" 857 857 msgstr "" 858 858 859 #: inc/modules/timings/class-timings-settings.php:1 22859 #: inc/modules/timings/class-timings-settings.php:130 860 860 msgid "Lead Time (Mins)" 861 861 msgstr "" 862 862 863 #: inc/modules/timings/class-timings-settings.php:1 27863 #: inc/modules/timings/class-timings-settings.php:135 864 864 msgid "Max Orders (Slot)" 865 865 msgstr "" -
orderable/tags/1.8.1/orderable.php
r2912589 r2913809 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.8. 06 * Version: 1.8.1 7 7 * Author: Orderable 8 8 * Text Domain: orderable … … 20 20 * @var string Plugin version. 21 21 */ 22 public static $version = '1.8. 0';22 public static $version = '1.8.1'; 23 23 24 24 /** 25 25 * @var string Required pro version. 26 26 */ 27 public static $required_pro_version = '1. 5.0';27 public static $required_pro_version = '1.8.0'; 28 28 29 29 /** -
orderable/tags/1.8.1/readme.txt
r2912597 r2913809 5 5 Tested up to: 6.2 6 6 Requires PHP: 5.6 7 Stable tag: 1.8. 07 Stable tag: 1.8.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 74 74 Here are all the additional features you get with Orderable Pro: 75 75 76 **Multi-Location** 77 Unlock the power of scalability with Orderable's Multi-Location feature. Seamlessly manage multiple pickup and delivery locations, catering to a wider customer base and streamlining your operations like never before. 78 76 79 **Product Add-ons** 77 80 Allow customers to add toppings, make a dish vegan, or add a side with product add-ons. Include additional fees or add images to help customers make a decision. … … 142 145 143 146 == Changelog == 147 148 **v1.8.1** (17 May 2023) 149 [new] Filter `orderable_location_max_index_date` 150 [fix] Update the required Pro version to 1.8.0 151 [fix] Ensure time slots still work if Pro isn't updated 152 [fix] Preorder Days field default value 153 [fix] Allow checkout when services disabled 154 144 155 **v1.8.0** (15 May 2023) 145 156 [new] [Multi-location functionality](https://orderable.com/docs/how-to-set-up-multiple-locations/?utm_source=orderable&utm_medium=wp.org&utm_campaign=changelog) -
orderable/trunk/docs/actions.json
r2912589 r2913809 15 15 }, 16 16 { 17 "name": "orderable_after_create_custom_tables", 18 "file": "inc/database/class-database.php", 19 "type": "action", 20 "doc": { 21 "description": "Fires after creating Orderable custom tables.", 22 "long_description": "", 23 "tags": [ 24 { 25 "name": "since", 26 "content": "1.8.0" 27 }, 28 { 29 "name": "hook", 30 "content": "orderable_after_create_custom_tables" 31 } 32 ], 33 "long_description_html": "" 34 }, 35 "args": 0 36 }, 37 { 17 38 "name": "orderable_after_frontend_assets", 18 39 "file": "inc/class-assets.php", … … 85 106 }, 86 107 { 108 "name": "orderable_asap_order_options", 109 "file": "inc/modules/location/admin/meta-boxes/class-location-order-options-meta-box.php", 110 "type": "action", 111 "doc": { 112 "description": "Output additional ASAP order options.", 113 "long_description": "", 114 "tags": [ 115 { 116 "name": "since", 117 "content": "1.8.0" 118 }, 119 { 120 "name": "param", 121 "content": "Orderable_Location_Single instance.", 122 "types": [ 123 "\\Orderable_Location_Single" 124 ], 125 "variable": "$location" 126 } 127 ], 128 "long_description_html": "" 129 }, 130 "args": 1 131 }, 132 { 133 "name": "orderable_before_create_custom_tables", 134 "file": "inc/database/class-database.php", 135 "type": "action", 136 "doc": { 137 "description": "Fires before creating Orderable custom tables.", 138 "long_description": "", 139 "tags": [ 140 { 141 "name": "since", 142 "content": "1.8.0" 143 }, 144 { 145 "name": "hook", 146 "content": "orderable_before_create_custom_tables" 147 } 148 ], 149 "long_description_html": "" 150 }, 151 "args": 0 152 }, 153 { 87 154 "name": "orderable_before_product_actions", 88 155 "file": "templates/product/actions.php", … … 266 333 }, 267 334 { 335 "name": "orderable_before_save_service_hours", 336 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 337 "type": "action", 338 "doc": { 339 "description": "Fires before saving service hours.", 340 "long_description": "", 341 "tags": [ 342 { 343 "name": "since", 344 "content": "1.8.0" 345 }, 346 { 347 "name": "hook", 348 "content": "orderable_before_save_service_hours" 349 }, 350 { 351 "name": "param", 352 "content": "The location ID.", 353 "types": [ 354 "int" 355 ], 356 "variable": "$location_id" 357 }, 358 { 359 "name": "param", 360 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 361 "types": [ 362 "string" 363 ], 364 "variable": "$service_type" 365 } 366 ], 367 "long_description_html": "" 368 }, 369 "args": 2 370 }, 371 { 372 "name": "orderable_before_time_slots_table_end", 373 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 374 "type": "action", 375 "doc": { 376 "description": "Render content at the end of the time slots table.", 377 "long_description": "", 378 "tags": [ 379 { 380 "name": "since", 381 "content": "1.8.0" 382 } 383 ], 384 "long_description_html": "" 385 }, 386 "args": 4 387 }, 388 { 268 389 "name": "orderable_init", 269 390 "file": "orderable.php", … … 271 392 "doc": { 272 393 "description": "Plugin Name: Orderable - Local Ordering System Author URI: https://orderable.com Description: Take local online ordering to a whole new level with Orderable.", 273 "long_description": "Version: 1.7.2 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.2.2", 274 "tags": [], 275 "long_description_html": "<p>Version: 1.7.2 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.2.2</p>" 276 }, 277 "args": 0 394 "long_description": "Version: 1.8.0 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.7", 395 "tags": [], 396 "long_description_html": "<p>Version: 1.8.0 Author: Orderable Text Domain: orderable WC requires at least: 5.4.0 WC tested up to: 7.7</p>" 397 }, 398 "args": 0 399 }, 400 { 401 "name": "orderable_location_save_data", 402 "file": "inc/modules/location/admin/class-location-admin.php", 403 "type": "action", 404 "doc": { 405 "description": "Fires when location data is saved.", 406 "long_description": "", 407 "tags": [ 408 { 409 "name": "since", 410 "content": "1.8.0" 411 }, 412 { 413 "name": "hook", 414 "content": "orderable_location_save_data" 415 }, 416 { 417 "name": "param", 418 "content": "The location data.", 419 "types": [ 420 "array" 421 ], 422 "variable": "$data" 423 } 424 ], 425 "long_description_html": "" 426 }, 427 "args": 1 428 }, 429 { 430 "name": "orderable_location_service_hour_inserted", 431 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 432 "type": "action", 433 "doc": { 434 "description": "Fires after inserting a service hour.", 435 "long_description": "", 436 "tags": [ 437 { 438 "name": "since", 439 "content": "1.8.0" 440 }, 441 { 442 "name": "hook", 443 "content": "orderable_location_service_hour_inserted" 444 }, 445 { 446 "name": "param", 447 "content": "The service hour data.", 448 "types": [ 449 "array" 450 ], 451 "variable": "$service_hour" 452 }, 453 { 454 "name": "param", 455 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 456 "types": [ 457 "string" 458 ], 459 "variable": "$service_type" 460 }, 461 { 462 "name": "param", 463 "content": "The location ID.", 464 "types": [ 465 "int" 466 ], 467 "variable": "$location_id" 468 } 469 ], 470 "long_description_html": "" 471 }, 472 "args": 3 473 }, 474 { 475 "name": "orderable_location_service_hour_updated", 476 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 477 "type": "action", 478 "doc": { 479 "description": "Fires after updating a service hour.", 480 "long_description": "", 481 "tags": [ 482 { 483 "name": "since", 484 "content": "1.8.0" 485 }, 486 { 487 "name": "hook", 488 "content": "orderable_location_service_hour_updated" 489 }, 490 { 491 "name": "param", 492 "content": "The service hour data.", 493 "types": [ 494 "array" 495 ], 496 "variable": "$service_hour" 497 }, 498 { 499 "name": "param", 500 "content": "The service type: <code>delivery</code> or <code>pickup</code>.", 501 "types": [ 502 "string" 503 ], 504 "variable": "$service_type" 505 }, 506 { 507 "name": "param", 508 "content": "The location ID.", 509 "types": [ 510 "int" 511 ], 512 "variable": "$location_id" 513 } 514 ], 515 "long_description_html": "" 516 }, 517 "args": 3 278 518 }, 279 519 { … … 350 590 }, 351 591 { 592 "name": "orderable_onboard_settings_saved", 593 "file": "inc/class-settings.php", 594 "type": "action", 595 "doc": { 596 "description": "Action hook for when the onboard settings are saved.", 597 "long_description": "", 598 "tags": [ 599 { 600 "name": "param", 601 "content": "The settings.", 602 "types": [ 603 "array" 604 ], 605 "variable": "$fields" 606 } 607 ], 608 "long_description_html": "" 609 }, 610 "args": 1 611 }, 612 { 352 613 "name": "orderable_side_menu_after_product_options", 353 614 "file": "templates/product/options.php", … … 437 698 }, 438 699 "args": 2 700 }, 701 { 702 "name": "orderable_store_services_delivery_wrapper", 703 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 704 "type": "action", 705 "doc": { 706 "description": "Render content inside the delivery wrapper.", 707 "long_description": "", 708 "tags": [ 709 { 710 "name": "since", 711 "content": "1.8.0" 712 } 713 ], 714 "long_description_html": "" 715 }, 716 "args": 0 717 }, 718 { 719 "name": "orderable_store_services_pickup_wrapper", 720 "file": "inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php", 721 "type": "action", 722 "doc": { 723 "description": "Render content inside the pickup wrapper.", 724 "long_description": "", 725 "tags": [ 726 { 727 "name": "since", 728 "content": "1.8.0" 729 } 730 ], 731 "long_description_html": "" 732 }, 733 "args": 0 734 }, 735 { 736 "name": "orderable_upgrade_database_routine", 737 "file": "inc/database/class-database.php", 738 "type": "action", 739 "doc": { 740 "description": "Fires on the database upgrade routine.", 741 "long_description": "", 742 "tags": [ 743 { 744 "name": "since", 745 "content": "1.8.0" 746 }, 747 { 748 "name": "hook", 749 "content": "orderable_upgrade_database_routine" 750 }, 751 { 752 "name": "param", 753 "content": "The upgrade version routine. E.g.: 1.8.0.", 754 "types": [ 755 "string" 756 ], 757 "variable": "$version" 758 } 759 ], 760 "long_description_html": "" 761 }, 762 "args": 1 439 763 }, 440 764 { … … 501 825 }, 502 826 { 503 "name": "woocommerce_checkout_update_user_meta",504 "file": "inc/class-ajax.php",505 "type": "action",506 "doc": {507 "description": "",508 "long_description": "",509 "tags": [],510 "long_description_html": ""511 },512 "args": 2513 },514 {515 827 "name": "woocommerce_mini_cart_contents", 516 828 "file": "woocommerce/cart/mini-cart.php", … … 523 835 }, 524 836 "args": 0 525 },526 {527 "name": "woocommerce_shipping_method_chosen",528 "file": "inc/class-ajax.php",529 "type": "action",530 "doc": {531 "description": "",532 "long_description": "",533 "tags": [],534 "long_description_html": ""535 },536 "args": 1537 837 }, 538 838 { -
orderable/trunk/docs/filters.json
r2843405 r2913809 15 15 }, 16 16 { 17 "name": "iconic_wds_is_delivery_day",18 "file": "inc/modules/timings/class-timings.php",19 "type": "filter",20 "doc": {21 "description": "",22 "long_description": "",23 "tags": [],24 "long_description_html": ""25 },26 "args": 327 },28 {29 "name": "iconic_wds_is_delivery_day",30 "file": "inc/modules/timings/class-timings.php",31 "type": "filter",32 "doc": {33 "description": "",34 "long_description": "",35 "tags": [],36 "long_description_html": ""37 },38 "args": 339 },40 {41 "name": "iconic_wds_is_delivery_day",42 "file": "inc/modules/timings/class-timings.php",43 "type": "filter",44 "doc": {45 "description": "",46 "long_description": "",47 "tags": [],48 "long_description_html": ""49 },50 "args": 351 },52 {53 "name": "orderable-service-dates",54 "file": "inc/modules/timings/class-timings.php",55 "type": "filter",56 "doc": {57 "description": "",58 "long_description": "",59 "tags": [],60 "long_description_html": ""61 },62 "args": 263 },64 {65 "name": "orderable-service-dates",66 "file": "inc/modules/timings/class-timings.php",67 "type": "filter",68 "doc": {69 "description": "",70 "long_description": "",71 "tags": [],72 "long_description_html": ""73 },74 "args": 275 },76 {77 "name": "orderable-service-dates",78 "file": "inc/modules/timings/class-timings.php",79 "type": "filter",80 "doc": {81 "description": "",82 "long_description": "",83 "tags": [],84 "long_description_html": ""85 },86 "args": 287 },88 {89 "name": "orderable-service-dates",90 "file": "inc/modules/timings/class-timings.php",91 "type": "filter",92 "doc": {93 "description": "",94 "long_description": "",95 "tags": [],96 "long_description_html": ""97 },98 "args": 299 },100 {101 17 "name": "orderable_add_to_cart_button_args", 102 18 "file": "inc/class-products.php", … … 169 85 }, 170 86 { 171 "name": "orderable_date_available",172 "file": "inc/modules/timings/class-timings.php",173 "type": "filter",174 "doc": {175 "description": "",176 "long_description": "",177 "tags": [],178 "long_description_html": ""179 },180 "args": 4181 },182 {183 87 "name": "orderable_default_settings", 184 88 "file": "inc/class-settings.php", … … 328 232 "type": "filter", 329 233 "doc": { 330 "description": "", 331 "long_description": "", 332 "tags": [], 333 "long_description_html": "" 334 }, 335 "args": 2 336 }, 337 { 338 "name": "orderable_get_holiday_timestamps_by_type", 339 "file": "inc/modules/timings/class-timings.php", 340 "type": "filter", 341 "doc": { 342 "description": "", 343 "long_description": "", 344 "tags": [], 345 "long_description_html": "" 346 }, 347 "args": 2 348 }, 349 { 350 "name": "orderable_get_holiday_timestamps_by_type", 351 "file": "inc/modules/timings/class-timings.php", 352 "type": "filter", 353 "doc": { 354 "description": "", 355 "long_description": "", 356 "tags": [], 357 "long_description_html": "" 358 }, 359 "args": 2 360 }, 361 { 362 "name": "orderable_get_holidays", 363 "file": "inc/modules/timings/class-timings.php", 364 "type": "filter", 365 "doc": { 366 "description": "", 367 "long_description": "", 368 "tags": [], 369 "long_description_html": "" 370 }, 371 "args": 1 372 }, 373 { 374 "name": "orderable_get_holidays", 375 "file": "inc/modules/timings/class-timings.php", 376 "type": "filter", 377 "doc": { 378 "description": "", 379 "long_description": "", 380 "tags": [], 381 "long_description_html": "" 382 }, 383 "args": 1 234 "description": "Module: Timings.", 235 "long_description": "Delivery/pickup date and time and lead times.", 236 "tags": [ 237 { 238 "name": "package", 239 "content": "Orderable/Classes" 240 } 241 ], 242 "long_description_html": "<p>Delivery/pickup date and time and lead times.</p>" 243 }, 244 "args": 2 384 245 }, 385 246 { … … 512 373 }, 513 374 { 514 "name": "orderable_get_service_hours_settings",515 "file": "inc/modules/timings/class-timings-settings.php",516 "type": "filter",517 "doc": {518 "description": "",519 "long_description": "",520 "tags": [],521 "long_description_html": ""522 },523 "args": 2524 },525 {526 "name": "orderable_get_service_hours_settings",527 "file": "inc/modules/timings/class-timings-settings.php",528 "type": "filter",529 "doc": {530 "description": "",531 "long_description": "",532 "tags": [],533 "long_description_html": ""534 },535 "args": 2536 },537 {538 375 "name": "orderable_get_service_type", 539 376 "file": "inc/modules/services/class-services-order.php", … … 565 402 }, 566 403 { 567 "name": "orderable_get_slots",568 "file": "inc/modules/timings/class-timings.php",569 "type": "filter",570 "doc": {571 "description": "",572 "long_description": "",573 "tags": [],574 "long_description_html": ""575 },576 "args": 3577 },578 {579 404 "name": "orderable_get_time_slot_fields", 580 405 "file": "inc/modules/timings/class-timings-settings.php", … … 681 506 }, 682 507 { 683 "name": "orderable_is_delivery_day",684 "file": "inc/modules/timings/class-timings.php",685 "type": "filter",686 "doc": {687 "description": "",688 "long_description": "",689 "tags": [],690 "long_description_html": ""691 },692 "args": 3693 },694 {695 508 "name": "orderable_is_settings_page", 696 509 "file": "inc/class-settings.php", … … 801 614 }, 802 615 { 616 "name": "orderable_location_allowed_pages_to_load_assets", 617 "file": "inc/modules/location/admin/class-location-admin.php", 618 "type": "filter", 619 "doc": { 620 "description": "Filter the pages allowed to load the location assets.", 621 "long_description": "", 622 "tags": [ 623 { 624 "name": "since", 625 "content": "1.18.0" 626 }, 627 { 628 "name": "hook", 629 "content": "orderable_location_allowed_pages_to_load_assets" 630 }, 631 { 632 "name": "param", 633 "content": "The allowed pages.", 634 "types": [ 635 "array" 636 ], 637 "variable": "$allowed_pages" 638 }, 639 { 640 "name": "param", 641 "content": "The type of asset:<code>styles</code> or <code>scripts</code>.", 642 "types": [ 643 "string" 644 ], 645 "variable": "$asset_type" 646 }, 647 { 648 "name": "param", 649 "content": "The ID of screen.", 650 "types": [ 651 "string" 652 ], 653 "variable": "$current_screen_id" 654 }, 655 { 656 "name": "return", 657 "content": "New value", 658 "types": [ 659 "array" 660 ] 661 } 662 ], 663 "long_description_html": "" 664 }, 665 "args": 3 666 }, 667 { 668 "name": "orderable_location_get_default_open_hours", 669 "file": "inc/modules/location/class-location.php", 670 "type": "filter", 671 "doc": { 672 "description": "Since we intercept the `Orderable_Settings::get_setting()` function to keep compatible with Location feature, we need to check it to avoid hitting the database early.", 673 "long_description": "", 674 "tags": [], 675 "long_description_html": "" 676 }, 677 "args": 1 678 }, 679 { 680 "name": "orderable_location_get_save_data", 681 "file": "inc/modules/location/admin/class-location-admin.php", 682 "type": "filter", 683 "doc": { 684 "description": "Filter the location data to be saved.", 685 "long_description": "", 686 "tags": [ 687 { 688 "name": "since", 689 "content": "1.8.0" 690 }, 691 { 692 "name": "hook", 693 "content": "orderable_location_get_save_data" 694 }, 695 { 696 "name": "param", 697 "content": "The data to be saved.", 698 "types": [ 699 "array" 700 ], 701 "variable": "$data" 702 }, 703 { 704 "name": "param", 705 "content": "The post ID.", 706 "types": [ 707 "int" 708 ], 709 "variable": "$post_id" 710 }, 711 { 712 "name": "return", 713 "content": "New value", 714 "types": [ 715 "array" 716 ] 717 } 718 ], 719 "long_description_html": "" 720 }, 721 "args": 1 722 }, 723 { 724 "name": "orderable_location_get_selected_location", 725 "file": "inc/modules/location/class-location.php", 726 "type": "filter", 727 "doc": { 728 "description": "Filter the selected location.", 729 "long_description": "", 730 "tags": [ 731 { 732 "name": "since", 733 "content": "1.8.0" 734 }, 735 { 736 "name": "hook", 737 "content": "orderable_location_get_selected_location" 738 }, 739 { 740 "name": "param", 741 "content": "The location object.", 742 "types": [ 743 "\\Orderable_Location", 744 "false" 745 ], 746 "variable": "$location" 747 } 748 ], 749 "long_description_html": "" 750 }, 751 "args": 1 752 }, 753 { 754 "name": "orderable_location_get_selected_location_id", 755 "file": "inc/modules/location/class-location.php", 756 "type": "filter", 757 "doc": { 758 "description": "Filter the selected location ID.", 759 "long_description": "", 760 "tags": [ 761 { 762 "name": "since", 763 "content": "1.8.0" 764 }, 765 { 766 "name": "hook", 767 "content": "orderable_location_get_selected_location_id" 768 }, 769 { 770 "name": "param", 771 "content": "The location ID.", 772 "types": [ 773 "int", 774 "false" 775 ], 776 "variable": "$location_id" 777 } 778 ], 779 "long_description_html": "" 780 }, 781 "args": 1 782 }, 783 { 784 "name": "orderable_location_lead_time_period_field_options", 785 "file": "inc/modules/location/admin/meta-boxes/class-location-order-options-meta-box.php", 786 "type": "filter", 787 "doc": { 788 "description": "Filter the options for the Lead Time Period select field.", 789 "long_description": "", 790 "tags": [ 791 { 792 "name": "since", 793 "content": "1.18.0" 794 }, 795 { 796 "name": "hook", 797 "content": "orderable_location_lead_time_period_field_options" 798 }, 799 { 800 "name": "param", 801 "content": "The Lead Time Period field options.", 802 "types": [ 803 "array" 804 ], 805 "variable": "$options" 806 }, 807 { 808 "name": "return", 809 "content": "New value", 810 "types": [ 811 "array" 812 ] 813 } 814 ], 815 "long_description_html": "" 816 }, 817 "args": 1 818 }, 819 { 803 820 "name": "orderable_main_class", 804 821 "file": "inc/modules/layouts/templates/main.php", … … 846 863 }, 847 864 { 848 "name": "orderable_open_hours", 849 "file": "inc/modules/timings/class-timings.php", 850 "type": "filter", 851 "doc": { 852 "description": "Module: Timings.", 853 "long_description": "Delivery/pickup date and time and lead times.", 865 "name": "orderable_pointers", 866 "file": "inc/class-settings.php", 867 "type": "filter", 868 "doc": { 869 "description": "", 870 "long_description": "", 871 "tags": [], 872 "long_description_html": "" 873 }, 874 "args": 1 875 }, 876 { 877 "name": "orderable_product_hero_image_size", 878 "file": "templates/product/hero.php", 879 "type": "filter", 880 "doc": { 881 "description": "Allow product hero image size to be updated.", 882 "long_description": "", 883 "tags": [ 884 { 885 "name": "param", 886 "content": "Product.", 887 "types": [ 888 "\\WC_Product" 889 ], 890 "variable": "$product" 891 }, 892 { 893 "name": "param", 894 "content": "Argumentss passed to the Layout shortcode.", 895 "types": [ 896 "array" 897 ], 898 "variable": "$args" 899 } 900 ], 901 "long_description_html": "" 902 }, 903 "args": 3 904 }, 905 { 906 "name": "orderable_service_labels", 907 "file": "inc/modules/services/class-services.php", 908 "type": "filter", 909 "doc": { 910 "description": "Module: Services.", 911 "long_description": "Delivery/pickup services.", 854 912 "tags": [ 855 913 { … … 858 916 } 859 917 ], 860 "long_description_html": "<p>Delivery/pickup date and time and lead times.</p>"861 },862 "args": 1863 },864 {865 "name": "orderable_product_hero_image_size",866 "file": "templates/product/hero.php",867 "type": "filter",868 "doc": {869 "description": "Allow product hero image size to be updated.",870 "long_description": "",871 "tags": [872 {873 "name": "param",874 "content": "Product.",875 "types": [876 "\\WC_Product"877 ],878 "variable": "$product"879 },880 {881 "name": "param",882 "content": "Argumentss passed to the Layout shortcode.",883 "types": [884 "array"885 ],886 "variable": "$args"887 }888 ],889 "long_description_html": ""890 },891 "args": 3892 },893 {894 "name": "orderable_service_fragments",895 "file": "inc/class-ajax.php",896 "type": "filter",897 "doc": {898 "description": "",899 "long_description": "",900 "tags": [],901 "long_description_html": ""902 },903 "args": 1904 },905 {906 "name": "orderable_service_labels",907 "file": "inc/modules/services/class-services.php",908 "type": "filter",909 "doc": {910 "description": "Module: Services.",911 "long_description": "Delivery/pickup services.",912 "tags": [913 {914 "name": "package",915 "content": "Orderable/Classes"916 }917 ],918 918 "long_description_html": "<p>Delivery/pickup services.</p>" 919 919 }, … … 945 945 }, 946 946 { 947 "name": "orderable_settings", 948 "file": "inc/class-settings.php", 949 "type": "filter", 950 "doc": { 951 "description": "Filter the orderable settings.", 952 "long_description": "", 953 "tags": [ 954 { 955 "name": "since", 956 "content": "1.8.0" 957 }, 958 { 959 "name": "hook", 960 "content": "orderable_settings" 961 }, 962 { 963 "name": "param", 964 "content": "The orderable settings.", 965 "types": [ 966 "false", 967 "array" 968 ], 969 "variable": "$settings" 970 }, 971 { 972 "name": "param", 973 "content": "The setting name to be retrieved.", 974 "types": [ 975 "string" 976 ], 977 "variable": "$setting_name" 978 }, 979 { 980 "name": "return", 981 "content": "New value", 982 "types": [ 983 "false", 984 "array" 985 ] 986 } 987 ], 988 "long_description_html": "" 989 }, 990 "args": 2 991 }, 992 { 947 993 "name": "orderable_short_description", 948 994 "file": "templates/product/card-content.php", … … 999 1045 }, 1000 1046 "args": 3 1047 }, 1048 { 1049 "name": "orderable_skip_migrate_main_location_data_to_custom_table", 1050 "file": "inc/database/tables/class-location-locations-table.php", 1051 "type": "filter", 1052 "doc": { 1053 "description": "Filter whether we should skip the migration of the main location data from `orderable_settings` to the orderable custom table.", 1054 "long_description": "By default, we don't migrate if the custom table already has the main location data.", 1055 "tags": [ 1056 { 1057 "name": "since", 1058 "content": "1.8.0" 1059 }, 1060 { 1061 "name": "hook", 1062 "content": "orderable_skip_migrate_main_location_data_to_custom_table" 1063 }, 1064 { 1065 "name": "param", 1066 "content": "If we should migrate.", 1067 "types": [ 1068 "bool" 1069 ], 1070 "variable": "$skip_migration" 1071 }, 1072 { 1073 "name": "return", 1074 "content": "New value", 1075 "types": [ 1076 "bool" 1077 ] 1078 } 1079 ], 1080 "long_description_html": "<p>By default, we don't migrate if the custom table already has the main location data.</p>" 1081 }, 1082 "args": 1 1083 }, 1084 { 1085 "name": "orderable_skip_migrate_main_location_time_slots_data_to_custom_table", 1086 "file": "inc/database/tables/class-location-time-slots-table.php", 1087 "type": "filter", 1088 "doc": { 1089 "description": "Filter whether we should skip the migration of the main location time slots data from `orderable_settings` to the orderable custom table.", 1090 "long_description": "By default, we don't migrate if the custom table already has the main location time slots data.", 1091 "tags": [ 1092 { 1093 "name": "since", 1094 "content": "1.8.0" 1095 }, 1096 { 1097 "name": "hook", 1098 "content": "orderable_skip_migrate_main_location_time_slots_data_to_custom_table" 1099 }, 1100 { 1101 "name": "param", 1102 "content": "If we should migrate.", 1103 "types": [ 1104 "bool" 1105 ], 1106 "variable": "$skip_migration" 1107 }, 1108 { 1109 "name": "return", 1110 "content": "New value", 1111 "types": [ 1112 "bool" 1113 ] 1114 } 1115 ], 1116 "long_description_html": "<p>By default, we don't migrate if the custom table already has the main location time slots data.</p>" 1117 }, 1118 "args": 1 1001 1119 }, 1002 1120 { -
orderable/trunk/inc/modules/location/class-location-single.php
r2912589 r2913809 104 104 105 105 /** 106 * Does the location have any services enabled. 107 * 108 * @return bool 109 */ 110 public function has_services() { 111 return ! empty( $this->get_services() ); 112 } 113 114 /** 106 115 * Get lead time period. 107 116 * … … 145 154 */ 146 155 public function get_preorder_days() { 147 return ! empty( $this->location_data['preorder'] ) ? absint( $this->location_data['preorder'] ) : 7;156 return isset( $this->location_data['preorder'] ) ? absint( $this->location_data['preorder'] ) : 7; 148 157 } 149 158 … … 527 536 } 528 537 538 if ( has_filter( 'orderable_get_slots' ) ) { 539 _deprecated_hook( 'orderable_get_slots', '1.8.0', 'orderable_location_get_slots' ); 540 541 /** 542 * Filter location slots. 543 * 544 * @since 1.0.0 545 * @hook orderable_get_slots 546 * @deprecated 1.8.0 Use orderable_location_get_slots instead. 547 * 548 * @param array $slots Location slots. 549 * @param int $timestamp Timestamp (GMT). 550 * @param string $type The service type. Either 'delivery' or 'pickup'. 551 * @param Orderable_Location_Single $location Location object. 552 */ 553 $slots = apply_filters( 'orderable_get_slots', $slots, $timestamp, $type, $this ); 554 } 555 529 556 /** 530 557 * Filter location slots. … … 532 559 * @since 1.8.0 533 560 * @hook orderable_location_get_slots 561 * 534 562 * @param array $slots Location slots. 535 563 * @param int $timestamp Timestamp (GMT). … … 795 823 796 824 if ( ! empty( $service_days ) ) { 825 /** 826 * Filter the max index date. 827 * 828 * Since the condition to break the loop that 829 * searchs for service dates relies on the 830 * preorder days limit, we check against $max_index_date 831 * to prevent an infinite loop case preorder days 832 * limit fail multiple times. 833 * 834 * @since 1.8.1 835 * @hook orderable_location_max_index_date 836 * @param int $max_index_date The max index date value. Default: 365. 837 * @param string $type The type. Can be 'delivery' or 'pickup'. 838 * @param Orderable_Location_Single $location The location. 839 * @return int New value 840 */ 841 $max_index_date = apply_filters( 'orderable_location_max_index_date', 365, $type, $this ); 842 797 843 foreach ( $date_range as $index => $date ) { 844 // Check to avoid an infinite loop. 845 if ( $index > $max_index_date ) { 846 break; 847 } 848 798 849 // If we're at the preorder day limit, break the loop. 799 850 if ( $counted_preorder_days > $preorder_days ) { -
orderable/trunk/inc/modules/location/zones/class-location-zones.php
r2912589 r2913809 35 35 WC()->session->set( 'orderable_chosen_zone_id', $zone_id ); 36 36 37 if ( ! $selected_location ) {37 if ( ! $selected_location || ! $selected_location->has_services() ) { 38 38 return $rates; 39 39 } -
orderable/trunk/inc/modules/timings/class-timings-settings.php
r2912589 r2913809 18 18 */ 19 19 public static $open_hours_key = 'store_general_open_hours'; 20 21 /** 22 * Service hours settings key. 23 * 24 * @var string 25 * @deprecated 1.8.0 No longer used. 26 */ 27 public static $service_hours_key = 'store_general_service_hours'; 20 28 21 29 /** -
orderable/trunk/languages/orderable.pot
r2912589 r2913809 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-05-1 5 15:43+0000\n"9 "POT-Creation-Date: 2023-05-17 16:39+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 623 623 msgstr "" 624 624 625 #: inc/modules/location/class-location-single.php:45 0625 #: inc/modules/location/class-location-single.php:459 626 626 msgid "Closed" 627 627 msgstr "" 628 628 629 #: inc/modules/location/class-location-single.php:4 56629 #: inc/modules/location/class-location-single.php:465 630 630 msgid "Holiday" 631 631 msgstr "" 632 632 633 #: inc/modules/location/class-location-single.php:5 18, inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php:490633 #: inc/modules/location/class-location-single.php:527, inc/modules/location/admin/meta-boxes/class-location-store-services-meta-box.php:490 634 634 msgid "All Day" 635 635 msgstr "" … … 845 845 msgstr "" 846 846 847 #: inc/modules/timings/class-timings-settings.php: 88, inc/modules/location/admin/meta-boxes/class-location-open-hours-meta-box.php:347847 #: inc/modules/timings/class-timings-settings.php:96, inc/modules/location/admin/meta-boxes/class-location-open-hours-meta-box.php:347 848 848 msgid "Max Orders (Day)" 849 849 msgstr "" 850 850 851 #: inc/modules/timings/class-timings-settings.php:1 09851 #: inc/modules/timings/class-timings-settings.php:117 852 852 msgid "Hours" 853 853 msgstr "" 854 854 855 #: inc/modules/timings/class-timings-settings.php:1 17855 #: inc/modules/timings/class-timings-settings.php:125 856 856 msgid "Frequency (Mins)" 857 857 msgstr "" 858 858 859 #: inc/modules/timings/class-timings-settings.php:1 22859 #: inc/modules/timings/class-timings-settings.php:130 860 860 msgid "Lead Time (Mins)" 861 861 msgstr "" 862 862 863 #: inc/modules/timings/class-timings-settings.php:1 27863 #: inc/modules/timings/class-timings-settings.php:135 864 864 msgid "Max Orders (Slot)" 865 865 msgstr "" -
orderable/trunk/orderable.php
r2912589 r2913809 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.8. 06 * Version: 1.8.1 7 7 * Author: Orderable 8 8 * Text Domain: orderable … … 20 20 * @var string Plugin version. 21 21 */ 22 public static $version = '1.8. 0';22 public static $version = '1.8.1'; 23 23 24 24 /** 25 25 * @var string Required pro version. 26 26 */ 27 public static $required_pro_version = '1. 5.0';27 public static $required_pro_version = '1.8.0'; 28 28 29 29 /** -
orderable/trunk/readme.txt
r2912597 r2913809 5 5 Tested up to: 6.2 6 6 Requires PHP: 5.6 7 Stable tag: 1.8. 07 Stable tag: 1.8.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 74 74 Here are all the additional features you get with Orderable Pro: 75 75 76 **Multi-Location** 77 Unlock the power of scalability with Orderable's Multi-Location feature. Seamlessly manage multiple pickup and delivery locations, catering to a wider customer base and streamlining your operations like never before. 78 76 79 **Product Add-ons** 77 80 Allow customers to add toppings, make a dish vegan, or add a side with product add-ons. Include additional fees or add images to help customers make a decision. … … 142 145 143 146 == Changelog == 147 148 **v1.8.1** (17 May 2023) 149 [new] Filter `orderable_location_max_index_date` 150 [fix] Update the required Pro version to 1.8.0 151 [fix] Ensure time slots still work if Pro isn't updated 152 [fix] Preorder Days field default value 153 [fix] Allow checkout when services disabled 154 144 155 **v1.8.0** (15 May 2023) 145 156 [new] [Multi-location functionality](https://orderable.com/docs/how-to-set-up-multiple-locations/?utm_source=orderable&utm_medium=wp.org&utm_campaign=changelog)
Note: See TracChangeset
for help on using the changeset viewer.