Plugin Directory

Changeset 2559105


Ignore:
Timestamp:
07/06/2021 06:46:04 AM (5 years ago)
Author:
checkrobin
Message:

0.0.11

  • [Added] Tested and added WooCommerce "WC tested up to"-Tag (Support testet up to 5.4.1)
  • [Added] New Functionality, to define order status to trigger sync!
  • [Added] Added missing datatabe assets
  • [Added] Added method getLastCronRunDate + show last cron run date in settings page
  • [Added] Added support for basic roles and capabilities management: introduced custom capability "edit_checkrobin" (Note: capability is initialy ONLY added to user role "administrator".)
  • [Enhancement] Added seperate menu for checkrobin plugin
Location:
checkrobin/trunk
Files:
12 added
21 edited

Legend:

Unmodified
Added
Removed
  • checkrobin/trunk/assets/css/jquery.dataTables.min.css

    r2410353 r2559105  
    1111 */
    1212
    13  table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("/DataTables-1.10.21/images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("/DataTables-1.10.21/images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("/DataTables-1.10.21/images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("/DataTables-1.10.21/images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("/DataTables-1.10.21/images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}
     13 table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("/wp-content/plugins/checkrobin/assets/css/DataTables-1.10.21/images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("/wp-content/plugins/checkrobin/assets/css/DataTables-1.10.21/images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("/wp-content/plugins/checkrobin/assets/css/DataTables-1.10.21/images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("/wp-content/plugins/checkrobin/assets/css/DataTables-1.10.21/images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("/wp-content/plugins/checkrobin/assets/css/DataTables-1.10.21/images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}
  • checkrobin/trunk/changelog.txt

    r2422319 r2559105  
    22All notable changes to this project will be documented in this file.
    33
    4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
    5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     4= 0.0.11 =
     5* [Added] Tested and added WooCommerce "WC tested up to"-Tag (Support testet up to 5.4.1)
     6* [Added] New Functionality, to define order status to trigger sync!
     7* [Added] Added missing datatabe assets
     8* [Added] Added method getLastCronRunDate + show last cron run date in settings page
     9* [Added] Added support for basic roles and capabilities management: introduced custom capability "edit_checkrobin" (Note: capability is initialy ONLY added to user role "administrator".)
     10* [Enhancement] Added seperate menu for checkrobin plugin
    611
    7 ## [0.0.10] - 2020-11-20
    8 ### Fixed
    9 - Removed frontend assets request to missing file /plugin.min.js
     12= 0.0.10 =
     13* [Fixed] Removed frontend assets request to missing file /plugin.min.js
    1014
    11 ## [0.0.9] - 2020-11-13
    12 ### Added
    13 - Enhancement: If an order contains a maximum of 1 product, the dimensions of this product are now used as the basis for the dimensions of the outer box
    14 ### Changed
    15 - Changed: The menu item "Settings" has been renamed to "Checkrobin Settings"
    16 - Changed: Updated /doc
     15= 0.0.9 =
     16* [Enhancement] If an order contains a maximum of 1 product, the dimensions of this product are now used as the basis for the dimensions of the outer box
     17* [Changed] The menu item "Settings" has been renamed to "Checkrobin Settings"
     18* [Changed] Updated /doc
    1719
    18 ## [0.0.8] - 2020-10-31
    19 ### Added
    20 - Enhancement: Translate Plugin Title and Description, optimize i18n
    21 ### Changed
    22 - Changed: Headline of Tracking-List Page
     20= 0.0.8 =
     21* [Enhancement] Translate Plugin Title and Description, optimize i18n
     22* [Changed] Headline of Tracking-List Page
    2323
    24 ## [0.0.7] - 2020-10-19
    25 ### Added
    26 - Compatibility to Wordpress 5.5+ and WooCommerce 4.6+
    27 ### Changed
    28 - Fixed date comparison; send orders also if plugin-activation-date is the same as order-date
     24= 0.0.7 =
     25* [Added] Compatibility to Wordpress 5.5+ and WooCommerce 4.6+
     26* [Changed] Fixed date comparison; send orders also if plugin-activation-date is the same as order-date
    2927
    30 ## [0.0.6] - 2020-06-29
    31 ### Added
    32 - First release version for wordpress repository
     28= 0.0.6 =
     29* [Added] First release version for wordpress repository
    3330
    34 ## [0.0.5] - 2020-02-26
    35 ### Fixed
    36 - Avoid settings link in module overview overloading other modules settings links
     31= 0.0.5 =
     32* [Fixed] Avoid settings link in module overview overloading other modules settings links
    3733
    38 ## [0.0.4] - 2020-01-27
    39 ### Added
    40 - count(): Parameter must be an array or an object that implements Countable as of as of PHP 7.2
    41 - Updating composer/installers (v1.5.0 => v1.7.0)
     34= 0.0.4 =
     35* [Added] count(): Parameter must be an array or an object that implements Countable as of as of PHP 7.2
     36* [Added] Updating composer/installers (v1.5.0 => v1.7.0)
    4237
    43 ## [0.0.3] - 2018-04-27
    44 ### Added
    45 - Added defined check and prefix to constants.php
    46 - Re-Worked Failsave email
     38= 0.0.3 =
     39* [Added] Added defined check and prefix to constants.php
     40* [Added] Re-Worked Failsave email
    4741
    48 ## [0.0.2] - 2018-04-27
    49 ### Added
    50 - Disabled Failsave email
    51 - Make sure default timezone is set
     42= 0.0.2 =
     43* [Added] Disabled Failsave email
     44* [Added] Make sure default timezone is set
    5245
    53 ## [0.0.1] - 2018-04-13
    54 ### Added
    55 - Started changelog
     46= 0.0.1 =
     47* [Added] Started Changelog
  • checkrobin/trunk/checkrobin.php

    r2422325 r2559105  
    55 * Checkrobin
    66 *
    7  * @package           Checkrobin
    8  * @author            checkrobin GmbH <support@checkrobin.com>
    9  * @copyright         2018-2020 checkrobin GmbH
    10  * @license           GPL-2.0-or-later
     7 * @package                 Checkrobin
     8 * @author                  checkrobin GmbH <support@checkrobin.com>
     9 * @copyright               2018-2020 checkrobin GmbH
     10 * @license                 GPL-2.0-or-later
    1111 *
    1212 * @wordpress-plugin
    13  * Plugin Name:       Checkrobin
    14  * Plugin URI:        https://www.checkrobin.com/de/integration
    15  * Description:       The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    16  * Version:           0.0.10
    17  * Requires at least: 4.0
    18  * Requires PHP:      7.2
    19  * Author:            checkrobin
    20  * Author URI:        https://www.checkrobin.com/
    21  * Text Domain:       checkrobin
    22  * Domain Path:       /languages
    23  * License:           GPL v2 or later
    24  * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     13 * Plugin Name:             Checkrobin
     14 * Plugin URI:              https://www.checkrobin.com/de/integration
     15 * Description:             The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
     16 * Version:                 0.0.11
     17 * Requires at least:       4.0
     18 * Requires PHP:            7.2
     19 *
     20 * WC requires at least:    3.0.0
     21 * WC tested up to:         5.4
     22 *
     23 * Author:                  checkrobin
     24 * Author URI:              https://www.checkrobin.com/
     25 * Text Domain:             checkrobin
     26 * Domain Path:             /languages
     27 * License:                 GPL v2 or later
     28 * License URI:             https://www.gnu.org/licenses/gpl-2.0.html
    2529 */
    2630
     
    5256 **/
    5357if (!defined('CHECKROBIN_PLUGIN_VERSION')) {
    54     define('CHECKROBIN_PLUGIN_VERSION', '0.0.10');
     58    define('CHECKROBIN_PLUGIN_VERSION', '0.0.11');
    5559}
    5660
  • checkrobin/trunk/languages/checkrobin-de_DE.po

    r2417943 r2559105  
    22msgstr ""
    33"Project-Id-Version: Checkrobin\n"
    4 "POT-Creation-Date: 2020-10-31 15:21+0100\n"
    5 "PO-Revision-Date: 2020-11-13 12:09+0100\n"
     4"POT-Creation-Date: 2021-07-06 08:41+0100\n"
     5"PO-Revision-Date: 2021-07-06 08:42+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: Checkrobin GmbH <support@checkrobin.com>\n"
     
    2020"X-Poedit-SearchPath-2: templates\n"
    2121
    22 #: src/Admin.php:142 src/Admin.php:155 src/Settings.php:62
     22#: src/Admin.php:142 src/Admin.php:173 src/Admin.php:174 src/Settings.php:69
    2323msgid "Checkrobin Settings"
    2424msgstr "Checkrobin Einstellungen"
    2525
    26 #: src/Admin.php:156
     26#: src/Admin.php:159 src/Admin.php:160
    2727msgid "Checkrobin Tracking"
    2828msgstr "Checkrobin Tracking"
    2929
    30 #: src/Admin.php:191
     30#: src/Admin.php:210
    3131msgid "<strong>Your Tracking-URL:</strong><br /> "
    3232msgstr "<strong>Ihr Tracking-Link:</strong><br /> "
    3333
    34 #: src/Admin.php:217
    35 msgid "You do not have sufficient permissions to access this page."
    36 msgstr "Sie haben nicht ausreichend Rechte um auf diese Seite zuzugreifen."
    37 
    38 #: src/Admin.php:231 src/Settings.php:117
     34#: src/Admin.php:236 src/Settings.php:43
     35msgid ""
     36"You dont have permission to manage options. Please contact site "
     37"administrator. You need the capability (access right) \\'edit_checkrobin\\'."
     38msgstr ""
     39"Sie haben nicht ausreichend Rechte um Optionen zu verwalten. Bitte "
     40"kontaktieren Sie den Administrator dieser Seite. Sie benötigen das "
     41"Zugriffsrecht \\'edit_checkrobin\\'."
     42
     43#: src/Admin.php:251 src/Settings.php:126
    3944msgid "Sorry, your nonce was not correct. Please try again."
    4045msgstr ""
     
    5560msgstr "Fehler bei der Vorbereitung des API Aufrufs"
    5661
    57 #: src/CheckrobinCreate.php:446
     62#: src/CheckrobinCreate.php:460
    5863msgid "Successfully created parcel. Order ID: "
    5964msgstr "Order/Packet erfolgreich an Checkrobin-Business übertragen! Order-ID:"
    6065
    61 #: src/CheckrobinCreate.php:468
     66#: src/CheckrobinCreate.php:482
    6267msgid ""
    6368"Connection/Parcel create error. Please check the shop-admins E-Mail inbox "
     
    6772"Mail Adresse die Sie in den Checkrobin-Plugin-Einstellungen hinterlegt haben."
    6873
    69 #: src/CheckrobinCreate.php:485
     74#: src/CheckrobinCreate.php:499
    7075msgid ""
    7176"Your Token seems to be invalid. Please go to the WooCommerce > Settings > "
     
    152157"direkt an Checkrobin übertragen."
    153158
    154 #: src/Settings.php:74
    155 msgid ""
    156 "You dont have permission to manage options. Please contact site administrator"
    157 msgstr ""
    158 "Sie haben nicht ausreichend Rechte um Optionen zu verwalten. Bitte "
    159 "kontaktieren Sie den Administrator dieser Seite."
    160 
    161 #: src/Settings.php:160
     159#: src/Settings.php:169
    162160msgid "Your username or password were invalid."
    163161msgstr "Ihr Benutzername oder Passwort ist nicht korrekt."
    164162
    165 #: src/Settings.php:181
     163#: src/Settings.php:190
     164msgid "Status settings updated successfully."
     165msgstr "Die Status-Einstellungen wurden erfolgreich aktualisiert!"
     166
     167#: src/Settings.php:208
    166168msgid "Please enter a valid email address!"
    167169msgstr "Bitte geben Sie eine gültige E-Mail Adresse ein!"
    168170
    169 #: src/Settings.php:192
     171#: src/Settings.php:219
    170172msgid "Successfully updated E-Mail address!"
    171173msgstr "Ihre E-Mail Adresse wurde erfolgreich aktualisiert!"
     
    195197msgstr "Checkrobin-Business Passwort"
    196198
    197 #: templates/page.backend.settings.php:54
     199#: templates/page.backend.settings.php:56
     200msgid "Allowed order status"
     201msgstr "Zu berücksichtigende Übertragungs-Status für Bestellungen"
     202
     203#: templates/page.backend.settings.php:61
     204msgid ""
     205"The transfer of an order to Checkrobin depends on the status of the order. "
     206"Please make sure to configure all status that you would like to use for "
     207"sending to checkrobin here. An order is sent to Checkrobin for each status "
     208"configured (selected)."
     209msgstr ""
     210"Die Übertragung von Bestellungen zu Checkrobin hängt vom Status der "
     211"jeweiligen Bestellung ab. Bitte stellen Sie sicher, dass Sie hier "
     212"ausschließlich Bestelle-Status auswählen, die zu Checkrobin übertragen "
     213"werden sollen. Wechselt eine bisher nicht übertragene Bestellung in einen "
     214"hier selektierbaren Status so wird diese zu Checkrobin übertragen. "
     215"Übertragungen finden alle 5 Minuten oder beim manuellen Betätigen des "
     216"Buttons in der Übertragungsliste statt."
     217
     218#: templates/page.backend.settings.php:65
     219msgid "-- DISABLE ALL --"
     220msgstr "-- ALLE DEAKTIVIEREN (Keine Übertragung!) --"
     221
     222#: templates/page.backend.settings.php:80
    198223msgid "E-Mail Settings"
    199224msgstr "E-Mail Einstellungen"
    200225
    201 #: templates/page.backend.settings.php:59
     226#: templates/page.backend.settings.php:85
    202227msgid "E-Mail for failure messages"
    203228msgstr "E-Mail Adresse für Fehler E-Mails"
    204229
    205 #: templates/page.backend.settings.php:63
     230#: templates/page.backend.settings.php:89
    206231msgid "Add Tracking-Link to WooCommerce order E-Mails?"
    207232msgstr ""
     
    209234"hinzufügen?"
    210235
    211 #: templates/page.backend.settings.php:64
     236#: templates/page.backend.settings.php:90
    212237msgid " checked "
    213238msgstr " checked "
     239
     240#: templates/page.backend.settings.php:98
     241msgid "Last automatic cron run"
     242msgstr "Zeitpunkt des letzten automatischen Abgleichs"
     243
     244#: templates/page.backend.settings.php:103
     245msgid ""
     246"Cron runs every 5 minutes. Here you can see the time of the last automatic "
     247"cron run:"
     248msgstr ""
     249"Alle 5 Minuten findet ein automatischer Abgleich zwischen Checkrobin und "
     250"WordPress statt. Hier können Sie den Zeitpunkt des letzten -automatischen- "
     251"Abgleichs sehen."
    214252
    215253#: templates/page.backend.tracking.php:12
     
    276314msgstr "Tracking-Code Informationen anzeigen"
    277315
     316#~ msgid "You do not have sufficient permissions to access this page."
     317#~ msgstr "Sie haben nicht ausreichend Rechte um auf diese Seite zuzugreifen."
     318
    278319#~ msgid "Checkrobin-Business Tracking-List"
    279320#~ msgstr "Checkrobin-Business - Übertragungsliste"
  • checkrobin/trunk/readme.txt

    r2422319 r2559105  
    33Tags: checkrobin, woocommerce, parcel, shipping, logistic, delivery, courier, wordpress, plugin
    44Requires at least: 4.0
    5 Tested up to: 5.5
     5Tested up to: 5.7
    66Stable tag: trunk
    77Requires PHP: 7.2
     
    9393== Changelog ==
    9494
     95= 0.0.11 =
     96* [Added] Tested and added WooCommerce "WC tested up to"-Tag (Support testet up to 5.4.1)
     97* [Added] New Functionality, to define order status to trigger sync!
     98* [Added] Added missing datatabe assets
     99* [Added] Added method getLastCronRunDate + show last cron run date in settings page
     100* [Added] Added support for basic roles and capabilities management: introduced custom capability "edit_checkrobin" (Note: capability is initialy ONLY added to user role "administrator".)
     101* [Enhancement] Added seperate menu for checkrobin plugin
     102
    95103= 0.0.10 =
    96104* [Fixed] Removed frontend assets request to missing file /plugin.min.js
  • checkrobin/trunk/src/Activator.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/Admin.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    121121    public function checkrobin_plugin_menu() {
    122122
    123         add_submenu_page(
    124             'woocommerce',
    125             __('Checkrobin Settings', 'checkrobin'),
     123        $notification_count = false;
     124        if (!$this->helper->getCheckrobinApiToken()) {
     125            $notification_count = 1;
     126        }
     127
     128            add_menu_page(
    126129            __('Checkrobin Tracking', 'checkrobin'),
    127             'manage_options',
    128             'checkrobin',
     130            __('Checkrobin Tracking', 'checkrobin'),
     131            'edit_checkrobin',
     132            'checkrobin',
    129133            array(
    130134                $this,
    131135                'checkrobin_tracking_list'
    132             )
     136            ),
     137            'dashicons-migrate',
     138            6
    133139        );
    134140
     141        add_submenu_page(
     142            'checkrobin',
     143            __('Checkrobin Settings', 'checkrobin'),
     144            $notification_count ? __('Checkrobin Settings', 'checkrobin') . ' ' . sprintf( ' <span class="awaiting-mod">%d</span>', $notification_count ) : __('Checkrobin Settings', 'checkrobin'),
     145            'edit_checkrobin',
     146            admin_url('admin.php?page=wc-settings&tab=checkrobin_tab')
     147        );
     148
    135149            }
    136150
     
    138152
    139153        $status = $order->get_status();
     154
    140155        if (in_array($status, array('processing', 'completed'))) {
    141156
     
    169184    public function checkrobin_tracking_list() {
    170185
    171         if (!current_user_can('manage_options'))  {
    172             wp_die(__('You do not have sufficient permissions to access this page.'));
     186        if (!current_user_can('edit_checkrobin')) {
     187            __("You dont have permission to manage options. Please contact site administrator. You need the capability (access right) \'edit_checkrobin\'.", 'checkrobin');
     188            return;
    173189        }
    174190
  • checkrobin/trunk/src/CheckrobinCreate.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    9393
    9494
     95
     96        $checkrobin_transfer_settings = get_option('orderstatus', array('wc-processing'));
     97        if (!is_array($checkrobin_transfer_settings) || $checkrobin_transfer_settings[0] == '999') {
     98            return;
     99        }
     100
    95101        $trackingTableName = CHECKROBIN_TABLE_TRACKING;
    96102        $ordersToSubmit = $wpdb->get_results("SELECT {$wpdb->prefix}posts.ID
    97103                                                FROM {$wpdb->prefix}posts
    98104                                                LEFT JOIN {$trackingTableName} ON {$trackingTableName}.orderId = {$wpdb->prefix}posts.ID
    99                                                     WHERE {$wpdb->prefix}posts.post_status = 'wc-processing'
     105                                                    WHERE {$wpdb->prefix}posts.post_status IN ('". implode("','", $checkrobin_transfer_settings) ."')
    100106                                                        AND UNIX_TIMESTAMP({$wpdb->prefix}posts.post_date) >= UNIX_TIMESTAMP('". $pluginInstallationDateTimestamp . "')
    101107                                                        AND UNIX_TIMESTAMP({$wpdb->prefix}posts.post_date) < CURRENT_TIMESTAMP
  • checkrobin/trunk/src/CheckrobinHelper.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    358358    }
    359359
    360 }
     360    public function getLastCronRunDate()
     361    {
     362        $checkrobin_cron_last_run = $this->db->get_row("SELECT `cValue` FROM " . CHECKROBIN_TABLE_SETTINGS . " WHERE `cName` = 'checkrobin_cron_last_run'", ARRAY_A);
     363        return $checkrobin_cron_last_run['cValue'];
     364    }
     365
     366
     367
     368    }
  • checkrobin/trunk/src/Deactivator.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/Frontend.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/I18n.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/Loader.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/Plugin.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    100100        $this->loader->run();
    101101
     102        $role = get_role( 'administrator' );
     103
     104        $role->add_cap( 'edit_checkrobin', true );
     105
    102106        new Settings($this);
    103107        new Tools($this);
  • checkrobin/trunk/src/Settings.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    3535
    3636    public $helper;
     37    public $orderStatusFromSystem = array();
    3738
    3839    public function __construct($plugin) {
    3940
    40         $this->plugin = $plugin;
     41        if (!current_user_can('edit_checkrobin')) {
     42            __("You dont have permission to manage options. Please contact site administrator. You need the capability (access right) \'edit_checkrobin\'.", 'checkrobin');
     43            return;
     44        }
     45
     46                $this->plugin = $plugin;
    4147
    4248        $this->helper = new CheckrobinHelper($plugin);
     
    4551
    4652        $this->tab_name = $this->plugin->get_name();
     53
    4754
    4855                \add_filter('woocommerce_settings_tabs_array', array($this, 'addSettingsTab'), 90);
     
    6067    public function settingsTab() {
    6168
    62         if (!current_user_can('manage_options')) {
    63             __('You dont have permission to manage options. Please contact site administrator', 'checkrobin');
    64             return;
    65         }
    66 
    6769        $resetSettings = isset($_POST['checkrobin_reset_settings']) ? (int) $_POST['checkrobin_reset_settings'] : 0;
    6870        if ($resetSettings === 1) {
     
    7476        $token = $this->helper->getCheckrobinApiToken();
    7577
     78        $orderStatusFromSystem = $this->orderStatusFromSystem = wc_get_order_statuses();
     79
     80        $orderStatusSelected = get_option('orderstatus', array('wc-processing'));
     81
     82
     83        $checkrobin_cron_last_run = $this->helper->getLastCronRunDate();
    7684
    7785        do_action('show_checkrobin_notices', $this->helper->messages);
     
    132140
    133141
     142            if ((isset($_POST['checkrobin_transfer_settings']) && !empty($_POST['checkrobin_transfer_settings'])) && $_POST['checkrobin_transfer_settings'] != '999') {
     143
     144                $checkrobin_transfer_settings = $_POST['checkrobin_transfer_settings'];
     145                update_option('orderstatus', $checkrobin_transfer_settings);
     146
     147                $this->helper->messages['success'][] = __('Status settings updated successfully.', 'checkrobin');
     148
     149            } else {
     150
     151                update_option('orderstatus', array('999'));
     152
     153            }
     154
     155
    134156
    135157                        $checkrobin_admin_email = isset($_POST['checkrobin_admin_email']) ? sanitize_email($_POST['checkrobin_admin_email']) : '';
  • checkrobin/trunk/src/Tools.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/src/constants.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/templates/page.backend.settings.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
     
    3232                </tr>
    3333
    34                                 <!-- Reset-Settings Button -->
     34                <!-- Reset-Settings Button -->
    3535                <tr>
    3636                    <th><label for="checkrobin_reset_settings">&nbsp;</label></th>
     
    5656    </table>
    5757
     58    <br />
     59
     60        <h2><?php esc_html_e('Allowed order status', 'checkrobin'); ?></h2>
     61    <table class="form-table settings">
     62        <tbody>
     63            <!-- Status for sync field -->
     64            <tr>
     65                <th><label for="checkrobin_transfer_settings"><?php esc_html_e('The transfer of an order to Checkrobin depends on the status of the order. Please make sure to configure all status that you would like to use for sending to checkrobin here. An order is sent to Checkrobin for each status configured (selected).', 'checkrobin'); ?></label></th>
     66                <td>
     67                <select id="status" name="checkrobin_transfer_settings[]" multiple="multiple" size="10" style="height: 100%;" autocomplete="off">
     68                    <option <?php if ($orderStatusSelected[0] == '999') { echo ' selected'; } ?> value="999">
     69                        <?php esc_html_e('-- DISABLE ALL --', 'checkrobin'); ?>
     70                    </option>
     71                    <?php foreach ($orderStatusFromSystem as $key => $value) { ?>
     72                        <option <?php if ($orderStatusSelected[0] != '999' && in_array($key, $orderStatusSelected)) { echo ' selected'; } ?> value="<?php esc_html_e($key) ?>">
     73                            <?php esc_html_e($value); ?> (ID: <?php esc_html_e($key); ?>)
     74                        </option>
     75                    <?php } ?>
     76                </select>
     77                </td>
     78            </tr>
     79        </tbody>
     80    </table>
     81
     82    <br />
     83
    5884    <h2><?php esc_html_e('E-Mail Settings', 'checkrobin'); ?></h2>
    5985    <table class="form-table settings">
    6086        <tbody>
    61             <!-- Admin E-Mail Field -->
     87            <!-- Admin E-Mail field -->
    6288            <tr>
    6389                <th><label for="checkrobin_admin_email"><?php esc_html_e('E-Mail for failure messages', 'checkrobin'); ?></label></th>
     
    7298    </table>
    7399
     100        <br />
     101
     102    <h2><?php esc_html_e('Last automatic cron run', 'checkrobin'); ?></h2>
     103    <table class="form-table settings">
     104        <tbody>
     105            <!-- Last cron run field -->
     106            <tr>
     107                <th><label for="checkrobin_cron_last_run"><?php esc_html_e('Cron runs every 5 minutes. Here you can see the time of the last automatic cron run:', 'checkrobin'); ?></label></th>
     108                <td><input disabled autocomplete="off" name="checkrobin_cron_last_run" id="checkrobin_cron_last_run" type="text" value="<?php esc_attr_e($checkrobin_cron_last_run); ?>" class="regular-text" /></td>
     109            </tr>
     110        </tbody>
     111    </table>
     112
    74113    <style>
    75114        .notice.wcs-nux__notice {
  • checkrobin/trunk/templates/page.backend.tracking.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
  • checkrobin/trunk/uninstall.php

    r2422319 r2559105  
    44 * The Checkrobin plugin enables you to transfer order data from your WooCommerce shop directly to Checkrobin.
    55 *
    6  * @version 0.0.10
     6 * @version 0.0.11
    77 * @link https://www.checkrobin.com/de/integration
    88 * @license GPLv2
Note: See TracChangeset for help on using the changeset viewer.