WooCommerce Checkout Field Editor (Manager) Pro - Version 1.6.0

Version Description

  • Added WordPress 5.9 compatibility.
  • Added WooCommerce 6.3.1 compatibility.
  • Added new field type "Datetime local".
  • Added new field type "Date".
  • Added new field type "Month".
  • Added new field type "Time".
  • Added new field type "Week".
  • Added new field type "URL".
  • Added new field type "Paragraph".
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.6.0
Comparing to
See all releases

Code changes from version 1.5.3 to 1.6.0

admin/assets/css/close.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.93928 15H7.05876C7.02176 14.9892 6.98398 14.9812 6.94577 14.976C6.03352 14.9226 5.14089 14.689 4.3194 14.2887C2.02028 13.1548 0.610487 11.3273 0.118379 8.8056C0.0626133 8.51993 0.0386447 8.22838 0 7.93977V7.05926C0.0111321 7.01763 0.0194671 6.9753 0.0249483 6.93256C0.0978351 5.88622 0.367368 4.89124 0.882467 3.97845C2.26487 1.52378 4.36831 0.186378 7.18497 0.0151677C8.5148 -0.0733284 9.84167 0.226819 11.0039 0.879047C13.4728 2.25362 14.8122 4.36587 14.9878 7.18644C15.0732 8.52087 14.7719 9.85161 14.12 11.0191C12.9561 13.1349 11.1848 14.4231 8.80609 14.8836C8.51992 14.9349 8.22789 14.9614 7.93928 15ZM13.3314 7.49951C13.3314 4.28663 10.7085 1.66857 7.49657 1.67102C4.28467 1.67346 1.66466 4.29347 1.66661 7.50489C1.66857 10.7163 4.28956 13.3358 7.50147 13.3339C10.7134 13.3319 13.3334 10.7095 13.3314 7.49951Z" fill="#007CBA"/>
3
+ <path d="M10.9966 5.19107V5.01155L10.9281 4.96018L10.912 4.94844L10.9076 4.94551C10.6229 4.66179 10.3387 4.37758 10.0549 4.09288L10.052 4.08848L10.0398 4.07184L9.98842 4.00385H9.81085L9.74922 4.07527L9.74433 4.08212C8.99752 4.83088 8.24909 5.57866 7.49902 6.32546L5.25274 4.07869L5.18963 4.00189H5.0106L4.96168 4.06989C4.95728 4.07527 4.95337 4.08114 4.94945 4.08652L4.94652 4.09092L4.09389 4.94355L4.08948 4.94648L4.07334 4.95822L4.00486 5.00959V5.18716L4.07481 5.24928L4.08117 5.25418L6.32501 7.49948C5.57494 8.24954 4.82618 8.9983 4.07872 9.74576L4.00143 9.80837V9.9879L4.06943 10.0393C4.07481 10.0437 4.08068 10.0476 4.08655 10.0515L4.09046 10.0544C4.37516 10.3381 4.65937 10.6224 4.94309 10.9071L4.94603 10.9115L4.95777 10.9276L5.00668 10.9961H5.18474L5.24883 10.9237L5.25421 10.9173L7.49902 8.67349L9.7453 10.9198L9.80841 10.9971H9.98744L10.0388 10.9286L10.051 10.9124L10.054 10.908C10.3377 10.6233 10.6219 10.3391 10.9066 10.0554L10.9105 10.0525L10.9276 10.0402L10.9956 9.98888V9.81131L10.9232 9.74967L10.9169 9.74429C10.1688 8.99782 9.42082 8.24954 8.67304 7.49948L10.9193 5.2532L10.9966 5.19107Z" fill="#007CBA"/>
4
+ </svg>
admin/assets/css/delete.png ADDED
Binary file
admin/assets/css/done.svg ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_102_19)">
3
+ <path d="M7.94 15H7.06H6.94C6.03007 14.9428 5.14006 14.7084 4.32 14.31C3.22522 13.8042 2.27043 13.0389 1.53851 12.0804C0.806589 11.1219 0.319663 9.99931 0.12 8.80998C0.06 8.51998 0 8.22998 0 7.93998V7.05998C0.00554549 7.01682 0.00554549 6.97314 0 6.92998C0.076614 5.90091 0.376938 4.90097 0.88 3.99998C1.47656 2.83087 2.37569 1.84312 3.48373 1.1396C4.59177 0.43608 5.86818 0.0425429 7.18 -1.99312e-05C8.51178 -0.0839062 9.83915 0.221878 11 0.87998C12.1692 1.47903 13.1568 2.38013 13.8602 3.48971C14.5635 4.5993 14.9571 5.87693 15 7.18998C15.0745 8.51779 14.7693 9.83936 14.12 11C13.5917 12.0125 12.8367 12.8894 11.914 13.5624C10.9912 14.2354 9.92555 14.6863 8.8 14.88C8.52 14.93 8.23 15 7.94 15ZM13.33 7.49998C13.33 6.34691 12.9881 5.21974 12.3475 4.26101C11.7069 3.30227 10.7963 2.55502 9.73104 2.11376C8.66575 1.6725 7.49353 1.55705 6.36262 1.782C5.23171 2.00695 4.19291 2.56221 3.37757 3.37755C2.56223 4.19289 2.00697 5.23169 1.78202 6.3626C1.55707 7.49351 1.67252 8.66573 2.11378 9.73102C2.55504 10.7963 3.30229 11.7068 4.26103 12.3474C5.21976 12.9881 6.34693 13.33 7.5 13.33C9.0454 13.3273 10.5267 12.7123 11.6195 11.6195C12.7123 10.5267 13.3274 9.04538 13.33 7.49998Z" fill="#007CBA"/>
4
+ <path d="M3.65001 6.44C3.64462 6.4136 3.64462 6.38639 3.65001 6.36C3.67709 6.27454 3.7302 6.19967 3.80192 6.14588C3.87364 6.09209 3.96038 6.06206 4.05001 6.06H5.57001V10.87H4.19001C4.07004 10.885 3.94882 10.8543 3.85056 10.7838C3.75231 10.7134 3.68425 10.6084 3.66001 10.49L3.65001 6.44Z" fill="#007CBA"/>
5
+ <path d="M6.05999 8.40002V7.16002C6.05638 6.85258 6.17093 6.55548 6.37999 6.33002L8.23999 4.25002C8.2793 4.1973 8.33485 4.15894 8.39809 4.14088C8.46133 4.12281 8.52875 4.12602 8.58999 4.15002L8.86999 4.22002C8.97816 4.24744 9.0786 4.29928 9.1636 4.37157C9.24861 4.44387 9.3159 4.53468 9.36033 4.63705C9.40475 4.73941 9.42511 4.8506 9.41985 4.96206C9.41459 5.07352 9.38385 5.1823 9.32999 5.28003L8.84999 6.14002C8.72999 6.35002 8.84999 6.53003 9.08999 6.53003H10.44C10.576 6.52771 10.7107 6.5566 10.8338 6.61448C10.9569 6.67236 11.0651 6.75769 11.1501 6.86392C11.2351 6.97014 11.2946 7.09443 11.324 7.22724C11.3535 7.36005 11.3521 7.49784 11.32 7.63002C11.16 8.40002 10.99 9.17002 10.82 9.94002C10.7627 10.1945 10.6227 10.4228 10.4218 10.5893C10.221 10.7557 9.97067 10.8509 9.70999 10.86H7.19999C6.89825 10.8474 6.61258 10.7206 6.40089 10.5052C6.18921 10.2898 6.06734 10.0019 6.05999 9.70002C6.05999 9.26002 6.05999 8.83002 6.05999 8.40002Z" fill="#007CBA"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_102_19">
9
+ <rect width="15" height="15" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
admin/assets/css/help.png ADDED
Binary file
admin/assets/css/reminder.svg ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.93798 15H7.05761C7.02061 14.9892 6.98284 14.9812 6.94463 14.976C6.03253 14.9226 5.14005 14.689 4.31869 14.2887C2.01995 13.1548 0.610387 11.3273 0.11836 8.8056C0.0626031 8.51993 0.0386383 8.22838 0 7.93977V7.05926C0.0111303 7.01763 0.0194639 6.9753 0.0249442 6.93256C0.0978191 5.88622 0.367308 4.89124 0.882323 3.97845C2.2645 1.52378 4.3676 0.186378 7.1838 0.0151677C8.51341 -0.0733284 9.84006 0.226819 11.0021 0.879047C13.4706 2.25362 14.8097 4.36587 14.9853 7.18644C15.0707 8.52087 14.7694 9.85161 14.1177 11.0191C12.954 13.1349 11.1829 14.4231 8.80465 14.8836C8.51853 14.9349 8.22654 14.9614 7.93798 15ZM13.3293 7.49951C13.3293 4.28663 10.7067 1.66857 7.49535 1.67102C4.28397 1.67346 1.66438 4.29347 1.66634 7.50489C1.6683 10.7163 4.28886 13.3358 7.50024 13.3339C10.7116 13.3319 13.3312 10.7095 13.3293 7.49951Z" fill="#007CBA"/>
3
+ <path d="M7.56137 3.97162H6.22174V8.45147H7.56137V3.97162Z" fill="#007CBA"/>
4
+ <path d="M10.7009 8.45142V7.11157H6.22175V8.45142H10.7009Z" fill="#007CBA"/>
5
+ </svg>
admin/assets/css/review-left.png ADDED
Binary file
admin/assets/css/thwcfd-admin.min.css CHANGED
@@ -1 +1 @@
1
- .align-center{text-align:center!important}.woocommerce-message{margin-top:10px}.err_msgs{color:red}.empty-msg-row{padding:20px 0!important;text-align:center}.color-red{color:red!important}.status-active{font-size:15px;color:green}.status-deactive{font-size:15px;color:red}.thpladmin-subtitle{font-size:11px;color:#666}a.button.big-button{font-size:1.1rem;background-color:#fff;border:1px solid #42af42;color:#42af42}a.button.big-button:focus,a.button.big-button:hover{background-color:#42af42;border:1px solid #42af42;box-shadow:0 0 0 1px #42af42;color:#fff}table.thpladmin_fields_table td.sort{cursor:move;font-size:15px;text-align:center}table.thpladmin_fields_table td.sort::before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}.thpladmin-tab{width:100%;border:0 solid #d4d4d1;border-top:0;background-color:#fff;float:left}.thpladmin-tabs-menu{width:100%;margin:0;margin-top:10px;float:left;clear:both;border-bottom:1px solid #bcd4e6}.thpladmin-tabs-menu li{float:left;margin-right:5px;margin-bottom:-1px;border:1px solid #bcd4e6;outline:1px solid transparent;border-radius:4px 4px 0 0;background:#e1ecf4}.thpladmin-tabs-menu li.current{color:#555;position:relative;background-color:#fff;border-bottom:1px solid #fff;box-shadow:none}.thpladmin-tabs-menu li.first{margin-left:20px}.thpladmin-tabs-menu li a{font-size:18px;display:block;padding:12px 20px;text-decoration:none;color:#9fc2db;-webkit-transition:color .2s;transition:color .2s}.thpladmin-tabs-menu li a:focus{outline:0;box-shadow:none}.thpladmin-tabs-menu .current a{color:#2e7da3}.thpladmin-tab-content{padding:0;display:none;min-height:200px;max-height:485px;color:#000}.thpladmin-sections{list-style:outside none none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.thpladmin-sections li{display:inline-block;margin:0;padding:0;white-space:nowrap}.thpladmin-sections a.current{font-weight:600;border:medium none;color:#000}.thpladmin-sections a{line-height:2;padding:.2em;text-decoration:none}.thpladmin-sections .delete_section img,.thpladmin-sections a.edit_section img{width:12px;height:12px}.thpladmin-sections a.add_link{margin-left:30px;background-color:#00a0d2;border:1px solid #0073aa;color:#fff;padding:2px 5px;border-radius:3px}.thpladmin-sections a.add_link:hover{background-color:#0073aa}.thpladmin-form-table td{padding:5px 0}.thpladmin-form-table td.thpladmin-form-section-title{font-weight:700;border-bottom:1px dashed #cecece}.thpladmin_fields_table tr.strikeout td{background:rgba(255,0,0,.4)!important;opacity:.6;text-decoration:line-through}.thpladmin_fields_table tr.thpladmin-disabled td{opacity:.4}.thpladmin_fields_table tr.thpladmin-disabled td.td_select{opacity:1}.thpladmin_fields_table .td_actions{width:90px}.thpladmin_fields_table .td_enabled{width:80px}.thpladmin_fields_table .td_clear{width:65px}.thpladmin_fields_table .td_required{width:85px}.thpladmin_fields_table .td_select{width:45px}.thpladmin_fields_table .td_type{width:150px}.thpladmin_fields_table .td_validate{text-transform:capitalize}.thpladmin_fields_table th.status{white-space:nowrap}.thpladmin_fields_table .dashicons{line-height:inherit}.thpladmin_fields_table .td_actions .dashicons{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;padding:0 2px 2px 2px;box-shadow:0 1px 0 #ccc;webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.thpladmin_fields_table .td_actions .dashicons.disabled{color:#ccc;border:1px solid #e9e9e9;cursor:default}.thpladmin_fields_table .td_actions .dashicons-edit{cursor:pointer}.thpladmin_fields_table .td_actions .dashicons-admin-page{cursor:pointer}.thpladmin-sections .dashicons{cursor:pointer}.thpladmin-sections .dashicons-no{color:#ff4c4c}@media only screen and (min-width:45em){ul.feature-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}}.th-nice-box{border:1px solid #c3c4c7;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%);background:#fff;margin:1.5rem 0 .75rem 0;padding:2rem}ul.feature-list li:before{content:"\f147";display:inline-block;-webkit-font-smoothing:antialiased;color:#2271b1;margin-right:10px;word-wrap:break-word;font-family:dashicons;font-weight:700}ul.star-list li:before{content:"\f155";color:#f90}.th-flexbox{display:flex;flex-wrap:wrap;justify-content:space-between}.th-title-box{display:flex;align-items:center}.th-title-box img{width:54px;height:54px;margin-right:1.2em;border-radius:6px}.th-title-box h3{flex:1}.th-title-box h3 a{color:#1d2327}.th-title-box h3 a:hover{opacity:.8}.th-flexbox-child{width:100%;height:auto;box-sizing:border-box}.th-plugins-wrapper{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:20px}.th-plugins-wrapper.featured{grid-template-columns:1fr 1fr 1fr;grid-gap:20px;margin-bottom:4em}.th-plugins-child{width:100%;height:auto;box-sizing:border-box;padding:5%;border-radius:2%;border:1px solid #fff;background:#fff;transition:box-shadow .5s;transition:border .5s}.th-plugins-child:hover{border:1px solid #e0e0e0;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%)}.th-plugin-action.updating-message::before{display:inline-block;content:"\f111";font:400 19px/1 dashicons;margin:0 5px 0 -2px;vertical-align:middle;animation:rotation 2s infinite linear}@media only screen and (min-width:45em){.th-flexbox-child{width:49%}}:root{--primary-bg-color:#007cba;--primary-text-color:#0071a1;--primary-border-color:#0071a1;--primary-alt-bg-color:#f3f5f6;--primary-alt-text-color:#0071a1;--primary-alt-border-color:#0071a1}*{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}ol,ul{margin-top:0;margin-bottom:10px}:after,:before{box-sizing:border-box}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{cursor:pointer;color:#337ab7;text-decoration:none;background-color:transparent}.btn-link,a{color:#528ff0}.wp-core-ui select{line-height:2;border-color:#e2e2e2}.pull-right{float:right!important}.ml-30{margin-left:30px!important}.mt-10{margin-top:10px!important}.mt-20{margin-top:20px!important}.p-0{padding:0!important}.ph-5{padding-left:5px!important;padding-right:5px!important}.pv-2{padding-top:2px!important;padding-bottom:2px!important}.thwcfd-wrap div.thwcfd-notice{margin:10px 20px 0 2px}.thwcfd-wrap input[type=number],.thwcfd-wrap input[type=text],.thwcfd-wrap select,.thwcfd-wrap textarea{color:#32373c;line-height:1;min-height:30px;height:36px;width:auto;background-color:#fff;border:1px solid #e2e2e2;border-radius:2px;overflow:hidden;font-size:14px;padding:0 12px;box-shadow:0 0 0 transparent}.thwcfd-wrap textarea{height:auto;overflow:auto;padding:2px 6px;line-height:1.5;resize:vertical}.thwcfd-wrap input[type=number]:disabled,.thwcfd-wrap input[type=text]:disabled,.thwcfd-wrap select:disabled,.thwcfd-wrap textarea:disabled{color:#a0a5aa;border-color:#ddd;background-color:#f7f7f7}.thwcfd-wrap input[type=number]:disabled::placeholder,.thwcfd-wrap input[type=text]:disabled::placeholder,.thwcfd-wrap select:disabled::placeholder,.thwcfd-wrap textarea:disabled::placeholder{color:#a0a5aa}.thwcfd-wrap .btn{display:inline-block;background-image:none;font-size:14px;font-weight:400;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;touch-action:manipulation;line-height:1;border-width:1px;border-style:solid;border-radius:2px;outline:0;margin:0;padding:12px 20px;box-sizing:border-box;-webkit-appearance:none;-webkit-box-sizing:border-box;transition:.1s;-webkit-transition:.1s;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn:hover{opacity:.9}.thwcfd-wrap .btn-small{font-size:13px;padding:8px 10px;border-radius:2px}.thwcfd-wrap .btn-tiny{font-size:13px;padding:5px 5px;border-radius:2px}.thwcfd-wrap .btn-primary{color:#fff;background-color:var(--primary-bg-color);border-color:var(--primary-border-color)}.thwcfd-wrap .btn-primary-alt{color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn-danger{color:#fff;background-color:#f44336;border-color:#c3352b}.thwcfd-wrap .btn:disabled,.thwcfd-wrap .btn[disabled]{color:#cbcbcb;border-color:#cbcbcb;background-color:#fcfcfc;cursor:default}.thwcfd-checkbox{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.thwcfd-checkbox .cb-input,.thwcfd-radio .rb-input{display:block;height:0;margin:0;opacity:0;line-height:normal;box-sizing:border-box;overflow:hidden}.thwcfd-checkbox .cb-el{width:16px;margin-top:2px;margin-right:8px;height:16px;background:#fff;border-radius:2px;float:left;transition:.3s;cursor:pointer;border:1px solid #ccc}.thwcfd-checkbox .cb-el::after{content:'';display:block;width:6px;height:11px;opacity:0;transition:.2s;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(1.5);margin:0 0 0 4px}.thwcfd-checkbox .cb-label{font-size:14px;cursor:pointer;white-space:normal;display:inline-block;font-weight:400;vertical-align:middle}.thwcfd-checkbox :checked+.cb-el{background:#528ff0;border-color:#528ff0}.thwcfd-checkbox :checked+.cb-el::after{opacity:1;transform:rotate(45deg)}.thwcfd-input-wrap{font-weight:400;display:block;margin:24px 0 8px;position:relative}.thwcfd-input-wrap .label{float:left;width:172px;text-align:right;margin-bottom:4px;font-weight:700;position:relative}.thwcfd-input-wrap.required .label::after{content:'*';font-size:12px;position:absolute;margin-left:1px;top:0;color:#f05050}.thwcfd-input-wrap .content{margin-left:190px;position:relative}.thwcfd-input-wrap.small .iel-wrapper{width:260px}.thwcfd-input-wrap .thwcfd-inputtext,.thwcfd-input-wrap .thwcfd-select{width:100%}.thpladmin-modal-mask{position:fixed;background-color:rgba(17,30,60,.6);top:0;left:0;width:100%;height:100%;z-index:9999;overflow:scroll;transition:opacity 250ms ease-in-out}.thpladmin-modal-mask{display:none}.thpladmin-modal .modal-container{position:absolute;background:#fff;border-radius:2px;overflow:hidden;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:960px;min-height:560px;height:80vh;max-height:640px;animation:appear-down 250ms ease-in-out}.thpladmin-modal .modal-close{position:absolute;color:#58666e;font-size:30px;padding:9px 12px 11px;right:8px;top:8px;line-height:20px;cursor:pointer;z-index:10;user-select:none}.thpladmin-modal .form-wizard{max-width:1024px;height:80vh;max-height:640px;min-height:560px;background:#fafafa;position:relative}.thpladmin-modal .wizard aside{padding:24px 0;width:240px;background:#fff;position:absolute;height:100%;border-right:1px solid #eee}.thpladmin-modal .wizard aside p,.thpladmin-modal .wizard aside side-title{padding:0 24px}.thpladmin-modal .wizard aside side-title{font-size:18px;font-weight:700;display:block;margin-bottom:16px}.thpladmin-modal .wizard aside ul{margin:30px 0;padding:0}.thpladmin-modal .wizard aside li{cursor:pointer;list-style:none;padding:10px 24px;margin:4px 0;color:var(--primary-text-color);position:relative}.thpladmin-modal .wizard aside li.text-primary{color:var(--primary-text-color)}.thpladmin-modal .wizard aside li.active{background:var(--primary-bg-color);color:#fff}.thpladmin-modal .wizard aside li.disabled{display:none}.thpladmin-modal .wizard aside li .dashicons{margin-right:6px;line-height:18px;vertical-align:middle}.thpladmin-modal .wizard aside li.active .dashicons::before{color:#fff}.thpladmin-modal .wizard aside li i.i-chevron-right{font-style:normal;color:#fff;position:absolute;right:8px;font-family:dashicons;opacity:0;top:50%;transform:translate(-4px,-50%);transition:.35s}.thpladmin-modal .wizard aside li.active i.i-chevron-right{opacity:1}.thpladmin-modal .form-wizard main{left:0;right:0;padding:30px;position:absolute;bottom:80px;top:0;overflow:auto}.thpladmin-modal .wizard aside~footer,.thpladmin-modal .wizard aside~main{left:240px}.thpladmin-modal .form-wizard main.main-full{bottom:0}.thpladmin-modal .form-wizard main-title{text-transform:uppercase;display:block;font-weight:600;margin-bottom:12px;font-size:14px!important}.thpladmin-modal .form-wizard .sub-title{text-transform:uppercase;font-weight:600;font-size:14px!important}.thpladmin-modal .form-wizard .device-mobile{display:none}.thpladmin-modal .form-wizard .device-desktop{display:inline}.thpladmin-modal .form-wizard footer{left:0;padding:10px 20px;right:0;background:#f6f6f6;border-top:1px solid #e0e0e0;bottom:0;position:absolute;text-align:right;z-index:99999999}.thpladmin-modal .form-wizard footer .Loader{float:left;opacity:0;transition:1s opacity;margin-top:4px;line-height:27px}.thpladmin-modal .form-wizard footer .btn-toolbar>.btn{margin-left:5px}.thpladmin-modal .form-wizard .form{margin-top:0;padding-bottom:0}.thpladmin-modal .form-wizard .data-panel-content{margin-top:30px;padding-bottom:90px}.thwcfd_pp_table{width:100%}.thwcfd_pp_table tr.disabled td.label,.thwcfd_pp_table tr.disabled td.tip{opacity:.5}.thwcfd_pp_table tr.disabled.hide{display:none}.thwcfd_pp_table td{padding:5px 10px}.thwcfd_pp_table.compact td{padding:3px 10px}.thwcfd_pp_table td.h-separator{padding:20px 0!important}.thwcfd_pp_table td.h-separator span{display:block;height:2px;border-top:1px dashed #e6e6e6}.thwcfd_pp_table td.label{width:25%;text-align:right;padding-right:0;font-weight:700}.thwcfd_pp_table td.tip{width:16px;text-align:center;padding:0}.thwcfd_pp_table td.field{padding-left:0}.thwcfd_pp_table input[type=number],.thwcfd_pp_table input[type=text],.thwcfd_pp_table select{width:260px}.thwcfd_pp_table input[type=text].thwcfd-color{width:223px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.thwcfd_pp_table .thpladmin-colorpickpreview{padding:9.5px 15px 8.5px 20px;border:1px solid #e2e2e2;border-radius:2px 0 0 2px;border-right:1;background-color:#fff}.product_page_th_extra_product_options_pro .select2-container .select2-selection{border-radius:2px;border:1px solid #e2e2e2;min-height:36px;padding:0 4px}.thpladmin-options-table{width:100%;margin-bottom:30px}.thpladmin-options-table input[type=text],.thpladmin-options-table select{width:100%;padding:0 6px}.thpladmin-options-table td{padding:2px 0 2px 4px}.thpladmin-options-table td.price{width:70px}.thpladmin-options-table td.price-type{width:110px}.thpladmin-options-table td.action-cell{width:100px}.thpladmin-options-table td.action-cell .btn{margin-left:6px;padding:1px 5px 2px 5px;font-size:18px;line-height:1}.thpladmin-options-table td.action-cell span.sort{cursor:move;font-size:18px;padding:0 1px 1px 1px;border-color:#999}.thpladmin-options-table td.action-cell span.sort::before{content:'\f333';content:'\f228';font-family:Dashicons;text-align:center;vertical-align:middle;line-height:1;color:#999}.thwcfd_tooltip{float:right;display:inline;position:relative;font-size:12px;height:100%;z-index:99999999}.thwcfd_tooltip img{padding:0;vertical-align:middle;cursor:help;border:medium none;height:16px;width:16px}.thwcfd_tooltip:hover:after{background:#333;background:#000;border-radius:5px;bottom:26px;color:#fff;content:attr(title);left:-100px;padding:10px 15px;position:absolute;z-index:9998;width:350px}.thwcfd_tooltip:hover:before{border:solid;border-color:#000 transparent;border-width:6px 6px 0 6px;bottom:20px;content:"";left:50%;position:absolute;z-index:9999}.thwcfd-settings-table{width:100%}.thwcfd-settings-table td{padding:5px 0}.thwcfd-settings-table td.section-title{padding:30px 0 5px 0;text-align:left;font-weight:700;text-transform:capitalize;border-bottom:1px dashed #cecece}.thwcfd-settings-table td.label{width:22%;text-align:left;padding-right:0;font-weight:400}.thwcfd-settings-table td.label span{display:block}.thwcfd-settings-table td.label .description{font-size:.9em}.thwcfd-settings-table td.tip{width:16px;text-align:center;padding:0}.thwcfd-settings-table td.field{padding-left:0}.thwcfd-settings-table textarea{width:90%;font-size:.9em}.iris-picker{z-index:100;display:none;position:absolute!important;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:0 0!important}.iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.thpladmin-colorpickpreview{padding:7px 10px 7px 20px;border:1px solid #7e8993;border-radius:4px;border-right:1;background-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.thwcfd-wrap .thpladmin-colorpick{border-left:0!important;margin-left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.select2-drop-mask{z-index:99999998!important}.select2-drop{z-index:99999999!important}.select2-container{z-index:99999999!important}.select2-container .select2-search--inline .select2-search__field{margin-top:0!important;margin-bottom:0!important;border:0!important}.select2-container .select2-search__field{min-width:0!important;background-image:none!important}.select2-results .select2-results__group{margin:0!important;padding:4px!important}.select2-results .select2-results__option{margin:0!important;padding:4px 4px 4px 8px!important;font-size:.9em}.thwcfd-wrap .select2-container .select2-selection{border-radius:2px!important;border:1px solid #e2e2e2!important;min-height:36px!important;padding:0 4px!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li{font-size:.8em!important;margin:4px 4px 0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-search{margin:0!important;height:26px!important;width:auto!important}
1
+ .align-center{text-align:center!important}.woocommerce-message{margin-top:10px}.err_msgs{color:red}.empty-msg-row{padding:20px 0!important;text-align:center}.color-red{color:red!important}.status-active{font-size:15px;color:green}.status-deactive{font-size:15px;color:red}.thpladmin-subtitle{font-size:11px;color:#666}a.button.big-button{font-size:1.1rem;background-color:#fff;border:1px solid #42af42;color:#42af42}a.button.big-button:focus,a.button.big-button:hover{background-color:#42af42;border:1px solid #42af42;box-shadow:0 0 0 1px #42af42;color:#fff}table.thpladmin_fields_table td.sort{cursor:move;font-size:15px;text-align:center}table.thpladmin_fields_table td.sort::before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}.thpladmin-tab{width:100%;border:0 solid #d4d4d1;border-top:0;background-color:#fff;float:left}.thpladmin-tabs-menu{width:100%;margin:0;margin-top:10px;float:left;clear:both;border-bottom:1px solid #bcd4e6}.thpladmin-tabs-menu li{float:left;margin-right:5px;margin-bottom:-1px;border:1px solid #bcd4e6;outline:1px solid transparent;border-radius:4px 4px 0 0;background:#e1ecf4}.thpladmin-tabs-menu li.current{color:#555;position:relative;background-color:#fff;border-bottom:1px solid #fff;box-shadow:none}.thpladmin-tabs-menu li.first{margin-left:20px}.thpladmin-tabs-menu li a{font-size:18px;display:block;padding:12px 20px;text-decoration:none;color:#9fc2db;-webkit-transition:color .2s;transition:color .2s}.thpladmin-tabs-menu li a:focus{outline:0;box-shadow:none}.thpladmin-tabs-menu .current a{color:#2e7da3}.thpladmin-tab-content{padding:0;display:none;min-height:200px;max-height:485px;color:#000}.thpladmin-sections{list-style:outside none none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.thpladmin-sections li{display:inline-block;margin:0;padding:0;white-space:nowrap}.thpladmin-sections a.current{font-weight:600;border:medium none;color:#000}.thpladmin-sections a{line-height:2;padding:.2em;text-decoration:none}.thpladmin-sections .delete_section img,.thpladmin-sections a.edit_section img{width:12px;height:12px}.thpladmin-sections a.add_link{margin-left:30px;background-color:#00a0d2;border:1px solid #0073aa;color:#fff;padding:2px 5px;border-radius:3px}.thpladmin-sections a.add_link:hover{background-color:#0073aa}.thpladmin-form-table td{padding:5px 0}.thpladmin-form-table td.thpladmin-form-section-title{font-weight:700;border-bottom:1px dashed #cecece}.thwcfd-review-wrapper{padding:15px 28px 26px 10px;margin-top:35px}.thwcfd-review-image{float:left}.thwcfd-review-content{padding-right:180px}.thwcfd-review-content p{padding-bottom:14px}.thwcfd-notice-action{padding:8px 18px 8px 18px;background:#fff;color:var(--primary-bg-color);border-radius:5px;border:1px solid var(--primary-bg-color)}.thwcfd-notice-action.thwcfd-yes{background-color:var(--primary-bg-color);color:#fff}.thwcfd-notice-action:hover:not(.thwepo-yes){background-color:#f2f5f6}.thwcfd-notice-action.thwepo-yes:hover{opacity:.9}.thwcfd-notice-action .dashicons{display:none}.thwcfd-themehigh-logo{position:absolute;right:20px;top:calc(50% - 13px)}.thwcfd-notice-action{background-repeat:no-repeat;padding-left:40px;background-position:18px 8px}.thwcfd-yes{background-image:url(tick.svg)}.thwcfd-remind{background-image:url(reminder.svg)}.thwcfd-dismiss{background-image:url(close.svg)}.thwcfd-done{background-image:url(done.svg)}.thpladmin_fields_table tr.strikeout td{background:rgba(255,0,0,.4)!important;opacity:.6;text-decoration:line-through}.thpladmin_fields_table tr.thpladmin-disabled td{opacity:.4}.thpladmin_fields_table tr.thpladmin-disabled td.td_select{opacity:1}.thpladmin_fields_table .td_actions{width:90px}.thpladmin_fields_table .td_enabled{width:80px}.thpladmin_fields_table .td_clear{width:65px}.thpladmin_fields_table .td_required{width:85px}.thpladmin_fields_table .td_select{width:45px}.thpladmin_fields_table .td_type{width:150px}.thpladmin_fields_table .td_validate{text-transform:capitalize}.thpladmin_fields_table th.status{white-space:nowrap}.thpladmin_fields_table .dashicons{line-height:inherit}.thpladmin_fields_table .td_actions .dashicons{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;padding:0 2px 2px 2px;box-shadow:0 1px 0 #ccc;webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.thpladmin_fields_table .td_actions .dashicons.disabled{color:#ccc;border:1px solid #e9e9e9;cursor:default}.thpladmin_fields_table .td_actions .dashicons-edit{cursor:pointer}.thpladmin_fields_table .td_actions .dashicons-admin-page{cursor:pointer}.thpladmin-sections .dashicons{cursor:pointer}.thpladmin-sections .dashicons-no{color:#ff4c4c}@media only screen and (min-width:45em){ul.feature-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}}.th-nice-box{border:1px solid #c3c4c7;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%);background:#fff;margin:1.5rem 0 .75rem 0;padding:2rem}ul.feature-list li:before{content:"\f147";display:inline-block;-webkit-font-smoothing:antialiased;color:#2271b1;margin-right:10px;word-wrap:break-word;font-family:dashicons;font-weight:700}ul.star-list li:before{content:"\f155";color:#f90}.th-flexbox{display:flex;flex-wrap:wrap;justify-content:space-between}.th-title-box{display:flex;align-items:center}.th-title-box img{width:54px;height:54px;margin-right:1.2em;border-radius:6px}.th-title-box h3{flex:1}.th-title-box h3 a{color:#1d2327}.th-title-box h3 a:hover{opacity:.8}.th-flexbox-child{width:100%;height:auto;box-sizing:border-box}.th-plugins-wrapper{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:20px}.th-plugins-wrapper.featured{grid-template-columns:1fr 1fr 1fr;grid-gap:20px;margin-bottom:4em}.th-plugins-child{width:100%;height:auto;box-sizing:border-box;padding:5%;border-radius:2%;border:1px solid #fff;background:#fff;transition:box-shadow .5s;transition:border .5s}.th-plugins-child:hover{border:1px solid #e0e0e0;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%)}.th-plugin-action.updating-message::before{display:inline-block;content:"\f111";font:400 19px/1 dashicons;margin:0 5px 0 -2px;vertical-align:middle;animation:rotation 2s infinite linear}@media only screen and (min-width:45em){.th-flexbox-child{width:49%}}:root{--primary-bg-color:#007cba;--primary-text-color:#0071a1;--primary-border-color:#0071a1;--primary-alt-bg-color:#f3f5f6;--primary-alt-text-color:#0071a1;--primary-alt-border-color:#0071a1}*{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}ol,ul{margin-top:0;margin-bottom:10px}:after,:before{box-sizing:border-box}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{cursor:pointer;color:#337ab7;text-decoration:none;background-color:transparent}.btn-link,a{color:#528ff0}.wp-core-ui select{line-height:2;border-color:#e2e2e2}.pull-right{float:right!important}.ml-30{margin-left:30px!important}.mt-10{margin-top:10px!important}.mt-20{margin-top:20px!important}.p-0{padding:0!important}.ph-5{padding-left:5px!important;padding-right:5px!important}.pv-2{padding-top:2px!important;padding-bottom:2px!important}.thwcfd-wrap div.thwcfd-notice{margin:10px 20px 0 2px}.thwcfd-wrap input[type=number],.thwcfd-wrap input[type=text],.thwcfd-wrap select,.thwcfd-wrap textarea{color:#32373c;line-height:1;min-height:30px;height:36px;width:auto;background-color:#fff;border:1px solid #e2e2e2;border-radius:2px;overflow:hidden;font-size:14px;padding:0 12px;box-shadow:0 0 0 transparent}.thwcfd-wrap textarea{height:auto;overflow:auto;padding:2px 6px;line-height:1.5;resize:vertical}.thwcfd-wrap input[type=number]:disabled,.thwcfd-wrap input[type=text]:disabled,.thwcfd-wrap select:disabled,.thwcfd-wrap textarea:disabled{color:#a0a5aa;border-color:#ddd;background-color:#f7f7f7}.thwcfd-wrap input[type=number]:disabled::placeholder,.thwcfd-wrap input[type=text]:disabled::placeholder,.thwcfd-wrap select:disabled::placeholder,.thwcfd-wrap textarea:disabled::placeholder{color:#a0a5aa}.thwcfd-wrap .btn{display:inline-block;background-image:none;font-size:14px;font-weight:400;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;touch-action:manipulation;line-height:1;border-width:1px;border-style:solid;border-radius:2px;outline:0;margin:0;padding:12px 20px;box-sizing:border-box;-webkit-appearance:none;-webkit-box-sizing:border-box;transition:.1s;-webkit-transition:.1s;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn:hover{opacity:.9}.thwcfd-wrap .btn-small{font-size:13px;padding:8px 10px;border-radius:2px}.thwcfd-wrap .btn-tiny{font-size:13px;padding:5px 5px;border-radius:2px}.thwcfd-wrap .btn-primary{color:#fff;background-color:var(--primary-bg-color);border-color:var(--primary-border-color)}.thwcfd-wrap .btn-primary-alt{color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn-danger{color:#fff;background-color:#f44336;border-color:#c3352b}.thwcfd-wrap .btn:disabled,.thwcfd-wrap .btn[disabled]{color:#cbcbcb;border-color:#cbcbcb;background-color:#fcfcfc;cursor:default}.thwcfd-checkbox{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.thwcfd-checkbox .cb-input,.thwcfd-radio .rb-input{display:block;height:0;margin:0;opacity:0;line-height:normal;box-sizing:border-box;overflow:hidden}.thwcfd-checkbox .cb-el{width:16px;margin-top:2px;margin-right:8px;height:16px;background:#fff;border-radius:2px;float:left;transition:.3s;cursor:pointer;border:1px solid #ccc}.thwcfd-checkbox .cb-el::after{content:'';display:block;width:6px;height:11px;opacity:0;transition:.2s;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(1.5);margin:0 0 0 4px}.thwcfd-checkbox .cb-label{font-size:14px;cursor:pointer;white-space:normal;display:inline-block;font-weight:400;vertical-align:middle}.thwcfd-checkbox :checked+.cb-el{background:#528ff0;border-color:#528ff0}.thwcfd-checkbox :checked+.cb-el::after{opacity:1;transform:rotate(45deg)}.thwcfd-input-wrap{font-weight:400;display:block;margin:24px 0 8px;position:relative}.thwcfd-input-wrap .label{float:left;width:172px;text-align:right;margin-bottom:4px;font-weight:700;position:relative}.thwcfd-input-wrap.required .label::after{content:'*';font-size:12px;position:absolute;margin-left:1px;top:0;color:#f05050}.thwcfd-input-wrap .content{margin-left:190px;position:relative}.thwcfd-input-wrap.small .iel-wrapper{width:260px}.thwcfd-input-wrap .thwcfd-inputtext,.thwcfd-input-wrap .thwcfd-select{width:100%}.thpladmin-modal-mask{position:fixed;background-color:rgba(17,30,60,.6);top:0;left:0;width:100%;height:100%;z-index:9999;overflow:scroll;transition:opacity 250ms ease-in-out}.thpladmin-modal-mask{display:none}.thpladmin-modal .modal-container{position:absolute;background:#fff;border-radius:2px;overflow:hidden;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:960px;min-height:560px;height:80vh;max-height:640px;animation:appear-down 250ms ease-in-out}.thpladmin-modal .modal-close{position:absolute;color:#58666e;font-size:30px;padding:9px 12px 11px;right:8px;top:8px;line-height:20px;cursor:pointer;z-index:10;user-select:none}.thpladmin-modal .form-wizard{max-width:1024px;height:80vh;max-height:640px;min-height:560px;background:#fafafa;position:relative}.thpladmin-modal .wizard aside{padding:24px 0;width:240px;background:#fff;position:absolute;height:100%;border-right:1px solid #eee}.thpladmin-modal .wizard aside p,.thpladmin-modal .wizard aside side-title{padding:0 24px}.thpladmin-modal .wizard aside side-title{font-size:18px;font-weight:700;display:block;margin-bottom:16px}.thpladmin-modal .wizard aside ul{margin:30px 0;padding:0}.thpladmin-modal .wizard aside li{cursor:pointer;list-style:none;padding:10px 24px;margin:4px 0;color:var(--primary-text-color);position:relative}.thpladmin-modal .wizard aside li.text-primary{color:var(--primary-text-color)}.thpladmin-modal .wizard aside li.active{background:var(--primary-bg-color);color:#fff}.thpladmin-modal .wizard aside li.disabled{display:none}.thpladmin-modal .wizard aside li .dashicons{margin-right:6px;line-height:18px;vertical-align:middle}.thpladmin-modal .wizard aside li.active .dashicons::before{color:#fff}.thpladmin-modal .wizard aside li i.i-chevron-right{font-style:normal;color:#fff;position:absolute;right:8px;font-family:dashicons;opacity:0;top:50%;transform:translate(-4px,-50%);transition:.35s}.thpladmin-modal .wizard aside li.active i.i-chevron-right{opacity:1}.thpladmin-modal .form-wizard main{left:0;right:0;padding:30px;position:absolute;bottom:80px;top:0;overflow:auto}.thpladmin-modal .wizard aside~footer,.thpladmin-modal .wizard aside~main{left:240px}.thpladmin-modal .form-wizard main.main-full{bottom:0}.thpladmin-modal .form-wizard main-title{text-transform:uppercase;display:block;font-weight:600;margin-bottom:12px;font-size:14px!important}.thpladmin-modal .form-wizard .sub-title{text-transform:uppercase;font-weight:600;font-size:14px!important}.thpladmin-modal .form-wizard .device-mobile{display:none}.thpladmin-modal .form-wizard .device-desktop{display:inline}.thpladmin-modal .form-wizard footer{left:0;padding:10px 20px;right:0;background:#f6f6f6;border-top:1px solid #e0e0e0;bottom:0;position:absolute;text-align:right;z-index:99999999}.thpladmin-modal .form-wizard footer .Loader{float:left;opacity:0;transition:1s opacity;margin-top:4px;line-height:27px}.thpladmin-modal .form-wizard footer .btn-toolbar>.btn{margin-left:5px}.thpladmin-modal .form-wizard .form{margin-top:0;padding-bottom:0}.thpladmin-modal .form-wizard .data-panel-content{margin-top:30px;padding-bottom:90px}.thwcfd_pp_table{width:100%}.thwcfd_pp_table tr.disabled td.label,.thwcfd_pp_table tr.disabled td.tip{opacity:.5}.thwcfd_pp_table tr.disabled.hide{display:none}.thwcfd_pp_table td{padding:5px 10px}.thwcfd_pp_table.compact td{padding:3px 10px}.thwcfd_pp_table td.h-separator{padding:20px 0!important}.thwcfd_pp_table td.h-separator span{display:block;height:2px;border-top:1px dashed #e6e6e6}.thwcfd_pp_table td.label{width:25%;text-align:right;padding-right:0;font-weight:700}.thwcfd_pp_table td.tip{width:16px;text-align:center;padding:0}.thwcfd_pp_table td.field{padding-left:0}.thwcfd_pp_table input[type=number],.thwcfd_pp_table input[type=text],.thwcfd_pp_table select{width:260px}.thwcfd_pp_table input[type=text].thwcfd-color{width:223px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.thwcfd_pp_table .thpladmin-colorpickpreview{padding:9.5px 15px 8.5px 20px;border:1px solid #e2e2e2;border-radius:2px 0 0 2px;border-right:1;background-color:#fff}.product_page_th_extra_product_options_pro .select2-container .select2-selection{border-radius:2px;border:1px solid #e2e2e2;min-height:36px;padding:0 4px}.thpladmin-options-table{width:100%;margin-bottom:30px}.thpladmin-options-table input[type=text],.thpladmin-options-table select{width:100%;padding:0 6px}.thpladmin-options-table td{padding:2px 0 2px 4px}.thpladmin-options-table td.price{width:70px}.thpladmin-options-table td.price-type{width:110px}.thpladmin-options-table td.action-cell{width:100px}.thpladmin-options-table td.action-cell .btn{margin-left:6px;padding:1px 5px 2px 5px;font-size:18px;line-height:1}.thpladmin-options-table td.action-cell span.sort{cursor:move;font-size:18px;padding:0 1px 1px 1px;border-color:#999}.thpladmin-options-table td.action-cell span.sort::before{content:'\f333';content:'\f228';font-family:Dashicons;text-align:center;vertical-align:middle;line-height:1;color:#999}.thwcfd_tooltip{float:right;display:inline;position:relative;font-size:12px;height:100%;z-index:99999999}.thwcfd_tooltip img{padding:0;vertical-align:middle;cursor:help;border:medium none;height:16px;width:16px}.thwcfd_tooltip:hover:after{background:#333;background:#000;border-radius:5px;bottom:26px;color:#fff;content:attr(title);left:-100px;padding:10px 15px;position:absolute;z-index:9998;width:350px}.thwcfd_tooltip:hover:before{border:solid;border-color:#000 transparent;border-width:6px 6px 0 6px;bottom:20px;content:"";left:50%;position:absolute;z-index:9999}.thwcfd-settings-table{width:100%}.thwcfd-settings-table td{padding:5px 0}.thwcfd-settings-table td.section-title{padding:30px 0 5px 0;text-align:left;font-weight:700;text-transform:capitalize;border-bottom:1px dashed #cecece}.thwcfd-settings-table td.label{width:22%;text-align:left;padding-right:0;font-weight:400}.thwcfd-settings-table td.label span{display:block}.thwcfd-settings-table td.label .description{font-size:.9em}.thwcfd-settings-table td.tip{width:16px;text-align:center;padding:0}.thwcfd-settings-table td.field{padding-left:0}.thwcfd-settings-table textarea{width:90%;font-size:.9em}.iris-picker{z-index:100;display:none;position:absolute!important;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:0 0!important}.iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.thpladmin-colorpickpreview{padding:7px 10px 7px 20px;border:1px solid #7e8993;border-radius:4px;border-right:1;background-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.thwcfd-wrap .thpladmin-colorpick{border-left:0!important;margin-left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.select2-drop-mask{z-index:99999998!important}.select2-drop{z-index:99999999!important}.select2-container{z-index:99999999!important}.select2-container .select2-search--inline .select2-search__field{margin-top:0!important;margin-bottom:0!important;border:0!important}.select2-container .select2-search__field{min-width:0!important;background-image:none!important}.select2-results .select2-results__group{margin:0!important;padding:4px!important}.select2-results .select2-results__option{margin:0!important;padding:4px 4px 4px 8px!important;font-size:.9em}.thwcfd-wrap .select2-container .select2-selection{border-radius:2px!important;border:1px solid #e2e2e2!important;min-height:36px!important;padding:0 4px!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li{font-size:.8em!important;margin:4px 4px 0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-search{margin:0!important;height:26px!important;width:auto!important}
admin/assets/css/tick.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.93976 15H7.05947C7.02246 14.9892 6.9847 14.9812 6.9465 14.976C6.03349 14.9229 5.14006 14.6894 4.31784 14.2889C2.0193 13.1554 0.610338 11.3284 0.117863 8.8074C0.0621113 8.52229 0.0386351 8.23034 0 7.94181V7.06155C0.0107821 7.01989 0.0189489 6.97758 0.0244526 6.9349C0.0978104 5.88886 0.366791 4.89417 0.882252 3.98164C2.26333 1.52572 4.37017 0.188709 7.18466 0.0151033C8.51415 -0.0731684 9.84063 0.226879 11.0027 0.878733C13.4709 2.25291 14.8104 4.36455 14.9855 7.1843C15.0718 8.51886 14.771 9.84996 14.1194 11.0178C12.9565 13.133 11.1856 14.4208 8.80685 14.8812C8.52075 14.9369 8.22879 14.9614 7.93976 15ZM13.3311 7.50022C13.3311 4.28826 10.7093 1.67096 7.49765 1.67292C4.28605 1.67488 1.66718 4.29461 1.66913 7.50511C1.67109 10.7156 4.28948 13.3344 7.50304 13.3324C10.7166 13.3304 13.3335 10.7107 13.3311 7.50022Z" fill="white"/>
3
+ <path d="M9.69056 4L11 5.24031L6.13719 11L3 7.81212L4.21609 6.47024L6.04074 8.32113C7.26096 6.87711 8.47035 5.44511 9.69056 4Z" fill="white"/>
4
+ </svg>
admin/assets/css/upgrade-banner.png ADDED
Binary file
admin/assets/js/thwcfd-admin.js CHANGED
@@ -1051,7 +1051,18 @@ var thwcfd_settings = (function($, window, document) {
1051
  row.find(".f_enabled").val(enabled);
1052
  });
1053
  }
1054
-
 
 
 
 
 
 
 
 
 
 
 
1055
  return {
1056
  selectAllFields : select_all_fields,
1057
  removeSelectedFields : remove_selected_fields,
1051
  row.find(".f_enabled").val(enabled);
1052
  });
1053
  }
1054
+
1055
+ $( document ).on( 'click', '.thpladmin-notice .notice-dismiss', function() {
1056
+ var wrapper = $(this).closest('div.thpladmin-notice');
1057
+ var nonce = wrapper.data("nonce");
1058
+ var data = {
1059
+ thwepo_review_nonce: nonce,
1060
+ action: 'hide_thwcfd_admin_notice',
1061
+ };
1062
+ $.post( ajaxurl, data, function() {
1063
+
1064
+ });
1065
+ });
1066
  return {
1067
  selectAllFields : select_all_fields,
1068
  removeSelectedFields : remove_selected_fields,
admin/assets/js/thwcfd-admin.min.js CHANGED
@@ -1 +1 @@
1
- function thwcfdSetupEnhancedMultiSelectWithValue(elm){thwcfd_base.setupEnhancedMultiSelectWithValue(elm)}function thwcfdSetupSortableTable(parent,elm,left){thwcfd_base.setupSortableTable(parent,elm,left)}function thwcfdCloseModal(elm){thwcfd_base.form_wizard_close(elm)}function thwcfdWizardNext(elm){thwcfd_base.form_wizard_next(elm)}function thwcfdWizardPrevious(elm){thwcfd_base.form_wizard_previous(elm)}function thwcfdOpenNewFieldForm(sectionName){thwcfd_settings_field.openNewFieldForm(sectionName)}function thwcfdOpenEditFieldForm(elm,rowId){thwcfd_settings_field.openEditFieldForm(elm,rowId)}function thwcfdOpenCopyFieldForm(elm,rowId){thwcfd_settings_field.openCopyFieldForm(elm,rowId)}function thwcfdFieldTypeChangeListner(elm){thwcfd_settings_field.fieldTypeChangeListner(elm)}function thwcfdAddNewOptionRow(elm){thwcfd_settings_field.addNewOptionRow(elm)}function thwcfdRemoveOptionRow(elm){thwcfd_settings_field.removeOptionRow(elm)}function thwcfdSaveField(elm){thwcfd_settings_field.save_field(elm)}function thwcfdSelectAllCheckoutFields(elm){thwcfd_settings.selectAllFields(elm)}function thwcfdRemoveSelectedFields(){thwcfd_settings.removeSelectedFields()}function thwcfdEnableSelectedFields(){thwcfd_settings.enableDisableSelectedFields(1)}function thwcfdDisableSelectedFields(){thwcfd_settings.enableDisableSelectedFields(0)}!function(wp,$){"use strict";wp&&$(function(){$(document).on("click",".th-plugin-action.install-now",function(event){const $button=$(event.target);if($button.hasClass("activate-now"))return!0;event.preventDefault(),$button.hasClass("updating-message")||$button.hasClass("button-disabled")||(wp.updates.shouldRequestFilesystemCredentials&&!wp.updates.ajaxLocked&&(wp.updates.requestFilesystemCredentials(event),$(document).on("credential-modal-cancel",function(){$(".install-now.updating-message").removeClass("updating-message").text(wp.updates.l10n.installNow),wp.a11y.speak(wp.updates.l10n.updateCancel,"polite")})),wp.updates.installPlugin({slug:$button.data("slug")}))})})}(window.wp,jQuery);var thwcfd_plugins_list=function($,window,document){"use strict";$(function(){$(document).on("click",".th-plugin-action.activate-now",function(event){const $button=$(event.target);if(event.preventDefault(),!$button.hasClass("updating-message")&&!$button.hasClass("button-disabled")){var url_string=$button.attr("href"),url=new URL(url_string),file=url.searchParams.get("plugin"),nonce=url.searchParams.get("_wpnonce"),action=url.searchParams.get("action");if("activate"==action&&(action="th_activate_plugin"),null!=file&&null!=nonce&&null!=action){var data={action:action,file:file,_wpnonce:nonce};jQuery.ajax({type:"post",dataType:"json",url:ajaxurl,data:data,beforeSend:function(){$button.addClass("updating-message"),$button.text("Activating")},success:function(data){$button.removeClass("updating-message"),1==data?($button.text("Activated"),$button.addClass("disabled")):($button.text("Failed"),$button.addClass("disabled"))},error:function(xhr){$button.text("Failed"),$button.addClass("disabled")}})}}})})}(window.jQuery,window,document),thwcfd_base=function($,window,document){"use strict";function escapeHTML(html){var fn=function(tag){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;"}[tag]||tag};return html.replace(/[&<>"]/g,fn)}function decodeHtml(str){if(str&&"string"==typeof str){var map={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#039;":"'"};return str.replace(/&amp;|&lt;|&gt;|&quot;|&#039;/g,function(m){return map[m]})}return str}function isHtmlIdValid(id){return/^[a-z\_]+[a-z0-9\_]*$/.test(id.trim())}function isValidHexColor(value){return!!preg_match("/^#[a-f0-9]{6}$/i",value)}function is_option_field(type){var result=!1;return"select"!=type&&"multiselect"!=type&&"radio"!=type&&"checkboxgroup"!=type||(result=!0),result}function setup_tiptip_tooltips(){var tiptip_args={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200};$(".tips").tipTip(tiptip_args)}function setup_enhanced_multi_select(parent){parent.find("select.thwcfd-enhanced-multi-select").each(function(){$(this).hasClass("enhanced")||$(this).selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced")})}function setup_enhanced_multi_select_with_value(parent){parent.find("select.thwcfd-enhanced-multi-select").each(function(){if(!$(this).hasClass("enhanced")){$(this).selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced");var value=$(this).data("value");value=value.split(","),$(this).val(value),$(this).trigger("change")}})}function setup_color_picker(form){form.find(".thpladmin-colorpick").iris({change:function(event,ui){$(this).parent().find(".thpladmin-colorpickpreview").css({backgroundColor:ui.color.toString()})},hide:!0,border:!0}).click(function(){$(".iris-picker").hide(),$(this).closest("td").find(".iris-picker").show()}),$("body").click(function(){$(".iris-picker").hide()}),$(".thpladmin-colorpick").click(function(event){event.stopPropagation()})}function setup_color_pick_preview(form){form.find(".thpladmin-colorpick").each(function(){$(this).parent().find(".thpladmin-colorpickpreview").css({backgroundColor:this.value})})}function prepare_field_order_indexes(elm){$(elm+" tbody tr").each(function(index,el){$("input.f_order",el).val(parseInt($(el).index(elm+" tbody tr")))})}function setup_sortable_table(parent,elm,left){parent.find(elm+" tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:".sort",scrollSensitivity:40,helper:function(e,ui){return ui.children().each(function(){$(this).width($(this).width())}),ui.css("left",left),ui}}),$(elm+" tbody").on("sortstart",function(event,ui){ui.item.css("background-color","#f6f6f6")}),$(elm+" tbody").on("sortstop",function(event,ui){ui.item.removeAttr("style"),prepare_field_order_indexes(elm)})}function get_property_field_value(form,type,name){var value="";switch(type){case"select":value=form.find("select[name=i_"+name+"]").val(),value=null==value?"":value;break;case"checkbox":value=form.find("input[name=i_"+name+"]").prop("checked"),value=value?1:0;break;case"textarea":value=form.find("textarea[name=i_"+name+"]").val(),value=null==value?"":value;break;default:value=form.find("input[name=i_"+name+"]").val(),value=null==value?"":value}return value}function set_property_field_value(form,type,name,value,multiple){switch(type){case"select":1==multiple?(value="string"==typeof value?value.split(","):value,name+="[]",form.find('select[name="i_'+name+'"]').val(value).trigger("change")):form.find('select[name="i_'+name+'"]').val(value);break;case"checkbox":value=1==value||"yes"==value,form.find("input[name=i_"+name+"]").prop("checked",value);break;case"textarea":value=value?decodeHtml(value):value,form.find("textarea[name=i_"+name+"]").val(value);break;case"colorpicker":var bg_color=value?{backgroundColor:value}:{};form.find("input[name=i_"+name+"]").val(value),form.find("."+name+"_preview").css(bg_color);break;default:value=value?decodeHtml(value):value,form.find("input[name=i_"+name+"]").val(value)}}function setup_form_wizard(){$(".pp_nav_links > li").click(function(){var index=$(this).data("index");open_tab($(this).closest(".thpladmin-modal-mask"),$(this),index),active_tab=index})}function get_popup(elm){return $(elm).closest(".thpladmin-modal-mask")}function get_active_tab(popup){return popup.find("ul.pp_nav_links").find("li.active")}function get_next_tab_index(elm){var popup=get_popup(elm),active=get_active_tab(popup),link=active.nextAll("li").not(".disabled").first();return link.length?link.data("index"):active_tab}function get_prev_tab_index(elm){var popup=get_popup(elm),active=get_active_tab(popup),link=active.prevAll("li").not(".disabled").first();return link.length?link.data("index"):active_tab}function form_wizard_open(popup){active_tab=0,popup.find("ul.pp_nav_links li").first().click(),popup.css("display","block")}function form_wizard_close(elm){get_popup(elm).css("display","none"),active_tab=0}function form_wizard_next(elm){active_tab=get_next_tab_index(elm),move_to(elm,active_tab)}function form_wizard_previous(elm){active_tab=get_prev_tab_index(elm),move_to(elm,active_tab)}function form_wizard_start(elm){active_tab=0,move_to(elm,active_tab)}function move_to(elm,index){var popup=get_popup(elm);open_tab(popup,popup.find('*[data-index="'+index+'"]'),index)}function open_tab(popup,link,index){var panel=popup.find(".data_panel_"+index);close_all_data_panel(popup),link.addClass("active"),panel.css("display","block"),enable_disable_btns(popup,link)}function close_all_data_panel(popup){popup.find(".pp_nav_links > li").removeClass("active"),popup.find(".data-panel").css("display","none")}function enable_disable_tab(popup,index,disable){var link=popup.find('*[data-index="'+index+'"]'),panel=popup.find(".data_panel_"+index);disable?(link.addClass("disabled"),panel.find(":input").attr("disabled",!0)):(link.removeClass("disabled"),panel.find(":input").attr("disabled",!1))}function form_wizard_enable_tab(popup,index){enable_disable_tab(popup,index,0)}function form_wizard_disable_tab(popup,index){enable_disable_tab(popup,index,1)}function form_wizard_enable_all_tabs(popup){popup.find(".pp_nav_links > li").removeClass("disabled")}function enable_disable_btns(popup,link){var nextBtn=popup.find(".next-btn"),prevBtn=popup.find(".prev-btn");link.hasClass("first")?(nextBtn.prop("disabled",!1),prevBtn.prop("disabled",!0)):link.hasClass("last")?(nextBtn.prop("disabled",!0),prevBtn.prop("disabled",!1)):(nextBtn.prop("disabled",!1),prevBtn.prop("disabled",!1))}var _wp$i18n=wp.i18n,active_tab=(_wp$i18n.__,_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx,0);return{escapeHTML:escapeHTML,decodeHtml:decodeHtml,isHtmlIdValid:isHtmlIdValid,isValidHexColor:isValidHexColor,is_option_field:is_option_field,setup_tiptip_tooltips:setup_tiptip_tooltips,setupEnhancedMultiSelect:setup_enhanced_multi_select,setupEnhancedMultiSelectWithValue:setup_enhanced_multi_select_with_value,setupColorPicker:setup_color_picker,setup_color_pick_preview:setup_color_pick_preview,setupSortableTable:setup_sortable_table,get_property_field_value:get_property_field_value,set_property_field_value:set_property_field_value,setup_form_wizard:setup_form_wizard,form_wizard_open:form_wizard_open,form_wizard_close:form_wizard_close,form_wizard_next:form_wizard_next,form_wizard_previous:form_wizard_previous,form_wizard_start:form_wizard_start,form_wizard_enable_tab:form_wizard_enable_tab,form_wizard_disable_tab:form_wizard_disable_tab,form_wizard_enable_all_tabs:form_wizard_enable_all_tabs}}(window.jQuery,window,document),thwcfd_settings_field=function($,window,document){"use strict";function open_new_field_form(sname){open_field_form("new",!1,sname)}function open_edit_field_form(elm,rowId){open_field_form("edit",elm,!1)}function open_copy_field_form(elm,rowId){open_field_form("copy",elm,!1)}function open_field_form(type,elm,sname){var popup=$("#thwcfd_field_form_pp");populate_field_form(popup,$("#thwcfd_field_form"),type,elm,sname),thwcfd_base.form_wizard_open(popup)}function populate_field_form(popup,form,action,elm,sname){var title="edit"===action?__("Edit Field","woo-checkout-field-editor-pro"):__("New Field","woo-checkout-field-editor-pro");if(popup.find(".wizard-title").text(title),form.find(".err_msgs").html(""),form.find("input[name=f_action]").val(action),"new"===action)"billing"!=sname&&"shipping"!=sname&&"additional"!=sname||(sname+="_"),clear_field_form_general(form),form.find("select[name=i_type]").change(),thwcfd_base.set_property_field_value(form,"text","name",sname,0),thwcfd_base.set_property_field_value(form,"text","class","form-row-wide",0);else{var row=$(elm).closest("tr"),props_json=row.find(".f_props").val(),props=JSON.parse(props_json);populate_field_form_general(action,form,props),form.find("select[name=i_type]").change(),populate_field_form_props(form,row,props)}}function clear_field_form_general(form){thwcfd_base.set_property_field_value(form,"hidden","autocomplete","",0),thwcfd_base.set_property_field_value(form,"hidden","priority","",0),thwcfd_base.set_property_field_value(form,"hidden","custom","",0),thwcfd_base.set_property_field_value(form,"hidden","oname","",0),thwcfd_base.set_property_field_value(form,"hidden","otype","",0),thwcfd_base.set_property_field_value(form,"select","type","text",0),thwcfd_base.set_property_field_value(form,"text","name","",0)}function populate_field_form_general(action,form,props){var autocomplete=props.autocomplete?props.autocomplete:"",priority=props.priority?props.priority:"",custom=props.custom?props.custom:"",type=props.type?props.type:"text",name=props.name?props.name:"";"copy"===action&&(name=""),thwcfd_base.set_property_field_value(form,"hidden","autocomplete",autocomplete,0),thwcfd_base.set_property_field_value(form,"hidden","priority",priority,0),thwcfd_base.set_property_field_value(form,"hidden","custom",custom,0),thwcfd_base.set_property_field_value(form,"hidden","oname",name,0),thwcfd_base.set_property_field_value(form,"hidden","otype",type,0),thwcfd_base.set_property_field_value(form,"select","type",type,0),thwcfd_base.set_property_field_value(form,"text","name",name,0)}function populate_field_form_props(form,row,props){var ftype=props.type,custom=props.custom?props.custom:"";$.each(FIELD_FORM_PROPS,function(name,field){if("name"==name||"type"==name)return!0;var type=field.type,value=props&&props[name]?props[name]:"";"textarea"==ftype&&"default"==name&&(type="textarea"),thwcfd_base.set_property_field_value(form,type,name,value,field.multiple),"select"==type?(name=1==field.multiple?name+"[]":name,1!=field.multiple&&1!=field.change||form.find('select[name="i_'+name+'"]').trigger("change")):"checkbox"==type&&1==field.change&&form.find('input[name="i_'+name+'"]').trigger("change")});var optionsJson=row.find(".f_options").val();populate_options_list(form,optionsJson),1==custom?(form.find("input[name=i_name]").prop("disabled",!1),form.find("select[name=i_type]").prop("disabled",!1),form.find("input[name=i_show_in_email]").prop("disabled",!1),form.find("input[name=i_show_in_order]").prop("disabled",!1)):(thwcfd_base.set_property_field_value(form,"checkbox","show_in_email",!0,0),thwcfd_base.set_property_field_value(form,"checkbox","show_in_order",!0,0),form.find("input[name=i_name]").prop("disabled",!0),form.find("select[name=i_type]").prop("disabled",!0),form.find("input[name=i_show_in_email]").prop("disabled",!0),form.find("input[name=i_show_in_order]").prop("disabled",!0),form.find("input[name=i_label]").focus())}function field_type_change_listner(elm){var popup=$("#thwcfd_field_form_pp"),form=$(elm).closest("form"),type=$(elm).val();type=null==type?"text":type,form.find(".thwcfd_field_form_tab_general_placeholder").html($("#thwcfd_field_form_id_"+type).html()),enable_all_tabs_and_fields(popup,form),type in FIELDS_TO_HIDE&&$.each(FIELDS_TO_HIDE[type],function(index,name){if(FIELD_FORM_PROPS[name]){var f_props=FIELD_FORM_PROPS[name];disable_hide_field(form,f_props.type,name)}}),thwcfd_base.setupEnhancedMultiSelect(form),thwcfd_base.setupColorPicker(form),thwcfd_base.setupSortableTable(form,".thwcfd-option-list","100")}function enable_all_tabs_and_fields(popup,form){thwcfd_base.form_wizard_enable_all_tabs(popup),form.find(":input").attr("disabled",!1),form.find("tr").removeClass("disabled hide")}function enable_disable_field(form,type,name,enabled,hide){var elm=null;switch(type){case"select":elm=form.find('select[name="i_'+name+'"]'),0==elm.length&&(elm=form.find('select[name="i_'+name+'[]"]'));break;case"textarea":elm=form.find("textarea[name=i_"+name+"]"),0==elm.length&&(elm=form.find('textarea[name="i_'+name+'[]"]'));break;default:elm=form.find("input[name=i_"+name+"]"),0==elm.length&&(elm=form.find('input[name="i_'+name+'[]"]'))}if(elm&&elm.length){var rowClass=hide?"disabled hide":"disabled";enabled?(elm.attr("disabled",!1),elm.closest("tr.form_field_"+name).removeClass("disabled hide")):(elm.attr("disabled",!0),elm.closest("tr.form_field_"+name).addClass(rowClass))}}function disable_hide_field(form,type,name){enable_disable_field(form,type,name,!1,!0)}function save_field(elm){var popup=$("#thwcfd_field_form_pp"),form=$("#thwcfd_field_form");validate_field_form(form,popup)&&(prepare_field_form(form),form.submit())}function validate_field_form(form,popup){var err_msgs="",fname=thwcfd_base.get_property_field_value(form,"text","name"),ftype=thwcfd_base.get_property_field_value(form,"select","type"),fotype=(thwcfd_base.get_property_field_value(form,"text","label"),thwcfd_base.get_property_field_value(form,"hidden","otype")),fvalue=thwcfd_base.get_property_field_value(form,"text","default"),option_values=form.find("input[name='i_options_key[]']").map(function(){return $(this).val()}).get();if(""==ftype&&-1==$.inArray(fotype,SPECIAL_FIELD_TYPES)?err_msgs="Type is required":""==fname?err_msgs="Name is required":thwcfd_base.isHtmlIdValid(fname)||(err_msgs=MSG_INVALID_NAME),fvalue&&option_values.length>0&&("select"==ftype||"radio"==ftype||"multiselect"==ftype||"checkboxgroup"==ftype))if("select"==ftype||"radio"==ftype)option_values.includes(fvalue)||(err_msgs=__("Enter default value given in the options.","woo-checkout-field-editor-pro"));else if("multiselect"==ftype||"checkboxgroup"==ftype)for(var value_array=fvalue.split(", "),i=0;i<value_array.length;i++){var value=value_array[i];value&&!option_values.includes(value)&&(err_msgs=__("Enter default values given in the options.","woo-checkout-field-editor-pro"))}return fvalue&&"number"==ftype&&!1===/^-?\d+$/.test(fvalue)&&(err_msgs=__("Default value must be a number.","woo-checkout-field-editor-pro")),""==err_msgs||(form.find(".err_msgs").html(err_msgs),thwcfd_base.form_wizard_start(popup),!1)}function prepare_field_form(form){var options_json=get_options(form);thwcfd_base.set_property_field_value(form,"hidden","options_json",options_json,0)}function get_options(form){for(var optionsKey=form.find("input[name='i_options_key[]']").map(function(){return $(this).val()}).get(),optionsText=form.find("input[name='i_options_text[]']").map(function(){return $(this).val()}).get(),optionsSize=optionsText.length,optionsArr=[],i=0;i<optionsSize;i++){var optionDetails={};optionDetails.key=optionsKey[i],optionDetails.text=optionsText[i],optionsArr.push(optionDetails)}var optionsJson=optionsArr.length>0?JSON.stringify(optionsArr):"";return optionsJson=encodeURIComponent(optionsJson)}function populate_options_list(form,optionsJson){var optionsHtml="";if(optionsJson)try{optionsJson=decodeURIComponent(optionsJson);var optionsList=$.parseJSON(optionsJson);optionsList&&jQuery.each(optionsList,function(){optionsHtml+=prepare_option_row_html(this)})}catch(err){console.log(err)}var optionsTable=form.find(".thwcfd-option-list tbody");optionsHtml?optionsTable.html(optionsHtml):optionsTable.html(prepare_option_row_html(null))}function prepare_option_row_html(option){var key="",text="";option&&(key=option.key?option.key:"",text=option.text?option.text:"");var html="<tr>";return html+='<td class="key"><input type="text" name="i_options_key[]" value="'+key+'" placeholder="'+__("Option Value","woo-checkout-field-editor-pro")+'"></td>',html+='<td class="value"><input type="text" name="i_options_text[]" value="'+text+'" placeholder="'+__("Option Text","woo-checkout-field-editor-pro")+'"></td>',html+='<td class="action-cell">',html+='<a href="javascript:void(0)" onclick="thwcfdAddNewOptionRow(this)" class="btn btn-tiny btn-primary" title="'+__("Add new option","woo-checkout-field-editor-pro")+'">+</a>',html+='<a href="javascript:void(0)" onclick="thwcfdRemoveOptionRow(this)" class="btn btn-tiny btn-danger" title="'+__("Remove option","woo-checkout-field-editor-pro")+'">x</a>',html+='<span class="btn btn-tiny sort ui-sortable-handle"></span></td>',html+="</tr>"}function add_new_option_row(elm){var ptable=$(elm).closest("table");ptable.find("tbody tr").size()>0?ptable.find("tbody tr:last").after(prepare_option_row_html(null)):ptable.find("tbody").append(prepare_option_row_html(null))}function remove_option_row(elm){var ptable=$(elm).closest("table");$(elm).closest("tr").remove(),0==ptable.find("tbody tr").size()&&ptable.find("tbody").append(prepare_option_row_html(null))}var _wp$i18n=wp.i18n,__=_wp$i18n.__,MSG_INVALID_NAME=(_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx,__('NAME/ID must begin with a lowercase letter ([a-z]) or underscores ("_") and may be followed by any number of lowercase letters, digits ([0-9]) and underscores ("_")',"woo-checkout-field-editor-pro")),SPECIAL_FIELD_TYPES=["country","state","city"],FIELD_FORM_PROPS={name:{name:"name",type:"text"},type:{name:"type",type:"select"},label:{name:"label",type:"text"},default:{name:"default",type:"text"},placeholder:{name:"placeholder",type:"text"},class:{name:"class",type:"text"},validate:{name:"validate",type:"select",multiple:1},title_type:{name:"title_type",type:"select"},checked:{name:"checked",type:"checkbox"},required:{name:"required",type:"checkbox"},enabled:{name:"enabled",type:"checkbox"},show_in_email:{name:"show_in_email",type:"checkbox"},show_in_order:{name:"show_in_order",type:"checkbox"}},FIELDS_TO_HIDE={radio:["placeholder","validate"],select:["validate"],password:["default"]};return{openNewFieldForm:open_new_field_form,openEditFieldForm:open_edit_field_form,openCopyFieldForm:open_copy_field_form,fieldTypeChangeListner:field_type_change_listner,addNewOptionRow:add_new_option_row,removeOptionRow:remove_option_row,save_field:save_field}}(window.jQuery,window,document),thwcfd_settings=function($,window,document){"use strict";function select_all_fields(elm){var checkAll=$(elm).prop("checked");$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]").prop("checked",checkAll)}function remove_selected_fields(){$("#thwcfd_checkout_fields tbody tr").removeClass("strikeout"),$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]:checked").each(function(){var row=$(this).closest("tr");row.hasClass("strikeout")||row.addClass("strikeout"),row.find(".f_deleted").val(1)})}function enable_disable_selected_fields(enabled){$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]:checked").each(function(){var row=$(this).closest("tr");0==enabled?row.hasClass("thpladmin-disabled")||row.addClass("thpladmin-disabled"):row.removeClass("thpladmin-disabled"),row.find(".td_enabled").html(1==enabled?'<span class="dashicons dashicons-yes tips" data-tip="'+__("Yes","woo-checkout-field-editor-pro")+'"></span>':"-"),row.find(".f_enabled").val(enabled)})}var _wp$i18n=wp.i18n,__=_wp$i18n.__;_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx;return $(function(){var settings_form=$("#thwcfd_checkout_fields_form");thwcfd_base.setupSortableTable(settings_form,"#thwcfd_checkout_fields","0"),thwcfd_base.setup_tiptip_tooltips(),thwcfd_base.setup_form_wizard()}),$(document).keypress(function(e){!$("#thwcfd_field_form_pp").is(":visible")||13!=e.keycode&&13!=e.which||(e.preventDefault(),thwcfdSaveField(this))}),{selectAllFields:select_all_fields,removeSelectedFields:remove_selected_fields,enableDisableSelectedFields:enable_disable_selected_fields}}(window.jQuery,window,document);
1
+ function thwcfdSetupEnhancedMultiSelectWithValue(elm){thwcfd_base.setupEnhancedMultiSelectWithValue(elm)}function thwcfdSetupSortableTable(parent,elm,left){thwcfd_base.setupSortableTable(parent,elm,left)}function thwcfdCloseModal(elm){thwcfd_base.form_wizard_close(elm)}function thwcfdWizardNext(elm){thwcfd_base.form_wizard_next(elm)}function thwcfdWizardPrevious(elm){thwcfd_base.form_wizard_previous(elm)}function thwcfdOpenNewFieldForm(sectionName){thwcfd_settings_field.openNewFieldForm(sectionName)}function thwcfdOpenEditFieldForm(elm,rowId){thwcfd_settings_field.openEditFieldForm(elm,rowId)}function thwcfdOpenCopyFieldForm(elm,rowId){thwcfd_settings_field.openCopyFieldForm(elm,rowId)}function thwcfdFieldTypeChangeListner(elm){thwcfd_settings_field.fieldTypeChangeListner(elm)}function thwcfdAddNewOptionRow(elm){thwcfd_settings_field.addNewOptionRow(elm)}function thwcfdRemoveOptionRow(elm){thwcfd_settings_field.removeOptionRow(elm)}function thwcfdSaveField(elm){thwcfd_settings_field.save_field(elm)}function thwcfdSelectAllCheckoutFields(elm){thwcfd_settings.selectAllFields(elm)}function thwcfdRemoveSelectedFields(){thwcfd_settings.removeSelectedFields()}function thwcfdEnableSelectedFields(){thwcfd_settings.enableDisableSelectedFields(1)}function thwcfdDisableSelectedFields(){thwcfd_settings.enableDisableSelectedFields(0)}!function(wp,$){"use strict";wp&&$(function(){$(document).on("click",".th-plugin-action.install-now",function(event){const $button=$(event.target);if($button.hasClass("activate-now"))return!0;event.preventDefault(),$button.hasClass("updating-message")||$button.hasClass("button-disabled")||(wp.updates.shouldRequestFilesystemCredentials&&!wp.updates.ajaxLocked&&(wp.updates.requestFilesystemCredentials(event),$(document).on("credential-modal-cancel",function(){$(".install-now.updating-message").removeClass("updating-message").text(wp.updates.l10n.installNow),wp.a11y.speak(wp.updates.l10n.updateCancel,"polite")})),wp.updates.installPlugin({slug:$button.data("slug")}))})})}(window.wp,jQuery);var thwcfd_plugins_list=function($,window,document){"use strict";$(function(){$(document).on("click",".th-plugin-action.activate-now",function(event){const $button=$(event.target);if(event.preventDefault(),!$button.hasClass("updating-message")&&!$button.hasClass("button-disabled")){var url_string=$button.attr("href"),url=new URL(url_string),file=url.searchParams.get("plugin"),nonce=url.searchParams.get("_wpnonce"),action=url.searchParams.get("action");if("activate"==action&&(action="th_activate_plugin"),null!=file&&null!=nonce&&null!=action){var data={action:action,file:file,_wpnonce:nonce};jQuery.ajax({type:"post",dataType:"json",url:ajaxurl,data:data,beforeSend:function(){$button.addClass("updating-message"),$button.text("Activating")},success:function(data){$button.removeClass("updating-message"),1==data?($button.text("Activated"),$button.addClass("disabled")):($button.text("Failed"),$button.addClass("disabled"))},error:function(xhr){$button.text("Failed"),$button.addClass("disabled")}})}}})})}(window.jQuery,window,document),thwcfd_base=function($,window,document){"use strict";function escapeHTML(html){var fn=function(tag){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;"}[tag]||tag};return html.replace(/[&<>"]/g,fn)}function decodeHtml(str){if(str&&"string"==typeof str){var map={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#039;":"'"};return str.replace(/&amp;|&lt;|&gt;|&quot;|&#039;/g,function(m){return map[m]})}return str}function isHtmlIdValid(id){return/^[a-z\_]+[a-z0-9\_]*$/.test(id.trim())}function isValidHexColor(value){return!!preg_match("/^#[a-f0-9]{6}$/i",value)}function is_option_field(type){var result=!1;return"select"!=type&&"multiselect"!=type&&"radio"!=type&&"checkboxgroup"!=type||(result=!0),result}function setup_tiptip_tooltips(){var tiptip_args={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200};$(".tips").tipTip(tiptip_args)}function setup_enhanced_multi_select(parent){parent.find("select.thwcfd-enhanced-multi-select").each(function(){$(this).hasClass("enhanced")||$(this).selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced")})}function setup_enhanced_multi_select_with_value(parent){parent.find("select.thwcfd-enhanced-multi-select").each(function(){if(!$(this).hasClass("enhanced")){$(this).selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced");var value=$(this).data("value");value=value.split(","),$(this).val(value),$(this).trigger("change")}})}function setup_color_picker(form){form.find(".thpladmin-colorpick").iris({change:function(event,ui){$(this).parent().find(".thpladmin-colorpickpreview").css({backgroundColor:ui.color.toString()})},hide:!0,border:!0}).click(function(){$(".iris-picker").hide(),$(this).closest("td").find(".iris-picker").show()}),$("body").click(function(){$(".iris-picker").hide()}),$(".thpladmin-colorpick").click(function(event){event.stopPropagation()})}function setup_color_pick_preview(form){form.find(".thpladmin-colorpick").each(function(){$(this).parent().find(".thpladmin-colorpickpreview").css({backgroundColor:this.value})})}function prepare_field_order_indexes(elm){$(elm+" tbody tr").each(function(index,el){$("input.f_order",el).val(parseInt($(el).index(elm+" tbody tr")))})}function setup_sortable_table(parent,elm,left){parent.find(elm+" tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:".sort",scrollSensitivity:40,helper:function(e,ui){return ui.children().each(function(){$(this).width($(this).width())}),ui.css("left",left),ui}}),$(elm+" tbody").on("sortstart",function(event,ui){ui.item.css("background-color","#f6f6f6")}),$(elm+" tbody").on("sortstop",function(event,ui){ui.item.removeAttr("style"),prepare_field_order_indexes(elm)})}function get_property_field_value(form,type,name){var value="";switch(type){case"select":value=form.find("select[name=i_"+name+"]").val(),value=null==value?"":value;break;case"checkbox":value=form.find("input[name=i_"+name+"]").prop("checked"),value=value?1:0;break;case"textarea":value=form.find("textarea[name=i_"+name+"]").val(),value=null==value?"":value;break;default:value=form.find("input[name=i_"+name+"]").val(),value=null==value?"":value}return value}function set_property_field_value(form,type,name,value,multiple){switch(type){case"select":1==multiple?(value="string"==typeof value?value.split(","):value,name+="[]",form.find('select[name="i_'+name+'"]').val(value).trigger("change")):form.find('select[name="i_'+name+'"]').val(value);break;case"checkbox":value=1==value||"yes"==value,form.find("input[name=i_"+name+"]").prop("checked",value);break;case"textarea":value=value?decodeHtml(value):value,form.find("textarea[name=i_"+name+"]").val(value);break;case"colorpicker":var bg_color=value?{backgroundColor:value}:{};form.find("input[name=i_"+name+"]").val(value),form.find("."+name+"_preview").css(bg_color);break;default:value=value?decodeHtml(value):value,form.find("input[name=i_"+name+"]").val(value)}}function setup_form_wizard(){$(".pp_nav_links > li").click(function(){var index=$(this).data("index");open_tab($(this).closest(".thpladmin-modal-mask"),$(this),index),active_tab=index})}function get_popup(elm){return $(elm).closest(".thpladmin-modal-mask")}function get_active_tab(popup){return popup.find("ul.pp_nav_links").find("li.active")}function get_next_tab_index(elm){var popup=get_popup(elm),active=get_active_tab(popup),link=active.nextAll("li").not(".disabled").first();return link.length?link.data("index"):active_tab}function get_prev_tab_index(elm){var popup=get_popup(elm),active=get_active_tab(popup),link=active.prevAll("li").not(".disabled").first();return link.length?link.data("index"):active_tab}function form_wizard_open(popup){active_tab=0,popup.find("ul.pp_nav_links li").first().click(),popup.css("display","block")}function form_wizard_close(elm){get_popup(elm).css("display","none"),active_tab=0}function form_wizard_next(elm){active_tab=get_next_tab_index(elm),move_to(elm,active_tab)}function form_wizard_previous(elm){active_tab=get_prev_tab_index(elm),move_to(elm,active_tab)}function form_wizard_start(elm){active_tab=0,move_to(elm,active_tab)}function move_to(elm,index){var popup=get_popup(elm);open_tab(popup,popup.find('*[data-index="'+index+'"]'),index)}function open_tab(popup,link,index){var panel=popup.find(".data_panel_"+index);close_all_data_panel(popup),link.addClass("active"),panel.css("display","block"),enable_disable_btns(popup,link)}function close_all_data_panel(popup){popup.find(".pp_nav_links > li").removeClass("active"),popup.find(".data-panel").css("display","none")}function enable_disable_tab(popup,index,disable){var link=popup.find('*[data-index="'+index+'"]'),panel=popup.find(".data_panel_"+index);disable?(link.addClass("disabled"),panel.find(":input").attr("disabled",!0)):(link.removeClass("disabled"),panel.find(":input").attr("disabled",!1))}function form_wizard_enable_tab(popup,index){enable_disable_tab(popup,index,0)}function form_wizard_disable_tab(popup,index){enable_disable_tab(popup,index,1)}function form_wizard_enable_all_tabs(popup){popup.find(".pp_nav_links > li").removeClass("disabled")}function enable_disable_btns(popup,link){var nextBtn=popup.find(".next-btn"),prevBtn=popup.find(".prev-btn");link.hasClass("first")?(nextBtn.prop("disabled",!1),prevBtn.prop("disabled",!0)):link.hasClass("last")?(nextBtn.prop("disabled",!0),prevBtn.prop("disabled",!1)):(nextBtn.prop("disabled",!1),prevBtn.prop("disabled",!1))}var _wp$i18n=wp.i18n,active_tab=(_wp$i18n.__,_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx,0);return{escapeHTML:escapeHTML,decodeHtml:decodeHtml,isHtmlIdValid:isHtmlIdValid,isValidHexColor:isValidHexColor,is_option_field:is_option_field,setup_tiptip_tooltips:setup_tiptip_tooltips,setupEnhancedMultiSelect:setup_enhanced_multi_select,setupEnhancedMultiSelectWithValue:setup_enhanced_multi_select_with_value,setupColorPicker:setup_color_picker,setup_color_pick_preview:setup_color_pick_preview,setupSortableTable:setup_sortable_table,get_property_field_value:get_property_field_value,set_property_field_value:set_property_field_value,setup_form_wizard:setup_form_wizard,form_wizard_open:form_wizard_open,form_wizard_close:form_wizard_close,form_wizard_next:form_wizard_next,form_wizard_previous:form_wizard_previous,form_wizard_start:form_wizard_start,form_wizard_enable_tab:form_wizard_enable_tab,form_wizard_disable_tab:form_wizard_disable_tab,form_wizard_enable_all_tabs:form_wizard_enable_all_tabs}}(window.jQuery,window,document),thwcfd_settings_field=function($,window,document){"use strict";function open_new_field_form(sname){open_field_form("new",!1,sname)}function open_edit_field_form(elm,rowId){open_field_form("edit",elm,!1)}function open_copy_field_form(elm,rowId){open_field_form("copy",elm,!1)}function open_field_form(type,elm,sname){var popup=$("#thwcfd_field_form_pp");populate_field_form(popup,$("#thwcfd_field_form"),type,elm,sname),thwcfd_base.form_wizard_open(popup)}function populate_field_form(popup,form,action,elm,sname){var title="edit"===action?__("Edit Field","woo-checkout-field-editor-pro"):__("New Field","woo-checkout-field-editor-pro");if(popup.find(".wizard-title").text(title),form.find(".err_msgs").html(""),form.find("input[name=f_action]").val(action),"new"===action)"billing"!=sname&&"shipping"!=sname&&"additional"!=sname||(sname+="_"),clear_field_form_general(form),form.find("select[name=i_type]").change(),thwcfd_base.set_property_field_value(form,"text","name",sname,0),thwcfd_base.set_property_field_value(form,"text","class","form-row-wide",0);else{var row=$(elm).closest("tr"),props_json=row.find(".f_props").val(),props=JSON.parse(props_json);populate_field_form_general(action,form,props),form.find("select[name=i_type]").change(),populate_field_form_props(form,row,props)}}function clear_field_form_general(form){thwcfd_base.set_property_field_value(form,"hidden","autocomplete","",0),thwcfd_base.set_property_field_value(form,"hidden","priority","",0),thwcfd_base.set_property_field_value(form,"hidden","custom","",0),thwcfd_base.set_property_field_value(form,"hidden","oname","",0),thwcfd_base.set_property_field_value(form,"hidden","otype","",0),thwcfd_base.set_property_field_value(form,"select","type","text",0),thwcfd_base.set_property_field_value(form,"text","name","",0)}function populate_field_form_general(action,form,props){var autocomplete=props.autocomplete?props.autocomplete:"",priority=props.priority?props.priority:"",custom=props.custom?props.custom:"",type=props.type?props.type:"text",name=props.name?props.name:"";"copy"===action&&(name=""),thwcfd_base.set_property_field_value(form,"hidden","autocomplete",autocomplete,0),thwcfd_base.set_property_field_value(form,"hidden","priority",priority,0),thwcfd_base.set_property_field_value(form,"hidden","custom",custom,0),thwcfd_base.set_property_field_value(form,"hidden","oname",name,0),thwcfd_base.set_property_field_value(form,"hidden","otype",type,0),thwcfd_base.set_property_field_value(form,"select","type",type,0),thwcfd_base.set_property_field_value(form,"text","name",name,0)}function populate_field_form_props(form,row,props){var ftype=props.type,custom=props.custom?props.custom:"";$.each(FIELD_FORM_PROPS,function(name,field){if("name"==name||"type"==name)return!0;var type=field.type,value=props&&props[name]?props[name]:"";"textarea"==ftype&&"default"==name&&(type="textarea"),thwcfd_base.set_property_field_value(form,type,name,value,field.multiple),"select"==type?(name=1==field.multiple?name+"[]":name,1!=field.multiple&&1!=field.change||form.find('select[name="i_'+name+'"]').trigger("change")):"checkbox"==type&&1==field.change&&form.find('input[name="i_'+name+'"]').trigger("change")});var optionsJson=row.find(".f_options").val();populate_options_list(form,optionsJson),1==custom?(form.find("input[name=i_name]").prop("disabled",!1),form.find("select[name=i_type]").prop("disabled",!1),form.find("input[name=i_show_in_email]").prop("disabled",!1),form.find("input[name=i_show_in_order]").prop("disabled",!1)):(thwcfd_base.set_property_field_value(form,"checkbox","show_in_email",!0,0),thwcfd_base.set_property_field_value(form,"checkbox","show_in_order",!0,0),form.find("input[name=i_name]").prop("disabled",!0),form.find("select[name=i_type]").prop("disabled",!0),form.find("input[name=i_show_in_email]").prop("disabled",!0),form.find("input[name=i_show_in_order]").prop("disabled",!0),form.find("input[name=i_label]").focus())}function field_type_change_listner(elm){var popup=$("#thwcfd_field_form_pp"),form=$(elm).closest("form"),type=$(elm).val();type=null==type?"text":type,form.find(".thwcfd_field_form_tab_general_placeholder").html($("#thwcfd_field_form_id_"+type).html()),enable_all_tabs_and_fields(popup,form),type in FIELDS_TO_HIDE&&$.each(FIELDS_TO_HIDE[type],function(index,name){if(FIELD_FORM_PROPS[name]){var f_props=FIELD_FORM_PROPS[name];disable_hide_field(form,f_props.type,name)}}),thwcfd_base.setupEnhancedMultiSelect(form),thwcfd_base.setupColorPicker(form),thwcfd_base.setupSortableTable(form,".thwcfd-option-list","100")}function enable_all_tabs_and_fields(popup,form){thwcfd_base.form_wizard_enable_all_tabs(popup),form.find(":input").attr("disabled",!1),form.find("tr").removeClass("disabled hide")}function enable_disable_field(form,type,name,enabled,hide){var elm=null;switch(type){case"select":elm=form.find('select[name="i_'+name+'"]'),0==elm.length&&(elm=form.find('select[name="i_'+name+'[]"]'));break;case"textarea":elm=form.find("textarea[name=i_"+name+"]"),0==elm.length&&(elm=form.find('textarea[name="i_'+name+'[]"]'));break;default:elm=form.find("input[name=i_"+name+"]"),0==elm.length&&(elm=form.find('input[name="i_'+name+'[]"]'))}if(elm&&elm.length){var rowClass=hide?"disabled hide":"disabled";enabled?(elm.attr("disabled",!1),elm.closest("tr.form_field_"+name).removeClass("disabled hide")):(elm.attr("disabled",!0),elm.closest("tr.form_field_"+name).addClass(rowClass))}}function disable_hide_field(form,type,name){enable_disable_field(form,type,name,!1,!0)}function save_field(elm){var popup=$("#thwcfd_field_form_pp"),form=$("#thwcfd_field_form");validate_field_form(form,popup)&&(prepare_field_form(form),form.submit())}function validate_field_form(form,popup){var err_msgs="",fname=thwcfd_base.get_property_field_value(form,"text","name"),ftype=thwcfd_base.get_property_field_value(form,"select","type"),fotype=(thwcfd_base.get_property_field_value(form,"text","label"),thwcfd_base.get_property_field_value(form,"hidden","otype")),fvalue=thwcfd_base.get_property_field_value(form,"text","default"),option_values=form.find("input[name='i_options_key[]']").map(function(){return $(this).val()}).get();if(""==ftype&&-1==$.inArray(fotype,SPECIAL_FIELD_TYPES)?err_msgs="Type is required":""==fname?err_msgs="Name is required":thwcfd_base.isHtmlIdValid(fname)||(err_msgs=MSG_INVALID_NAME),fvalue&&option_values.length>0&&("select"==ftype||"radio"==ftype||"multiselect"==ftype||"checkboxgroup"==ftype))if("select"==ftype||"radio"==ftype)option_values.includes(fvalue)||(err_msgs=__("Enter default value given in the options.","woo-checkout-field-editor-pro"));else if("multiselect"==ftype||"checkboxgroup"==ftype)for(var value_array=fvalue.split(", "),i=0;i<value_array.length;i++){var value=value_array[i];value&&!option_values.includes(value)&&(err_msgs=__("Enter default values given in the options.","woo-checkout-field-editor-pro"))}return fvalue&&"number"==ftype&&!1===/^-?\d+$/.test(fvalue)&&(err_msgs=__("Default value must be a number.","woo-checkout-field-editor-pro")),""==err_msgs||(form.find(".err_msgs").html(err_msgs),thwcfd_base.form_wizard_start(popup),!1)}function prepare_field_form(form){var options_json=get_options(form);thwcfd_base.set_property_field_value(form,"hidden","options_json",options_json,0)}function get_options(form){for(var optionsKey=form.find("input[name='i_options_key[]']").map(function(){return $(this).val()}).get(),optionsText=form.find("input[name='i_options_text[]']").map(function(){return $(this).val()}).get(),optionsSize=optionsText.length,optionsArr=[],i=0;i<optionsSize;i++){var optionDetails={};optionDetails.key=optionsKey[i],optionDetails.text=optionsText[i],optionsArr.push(optionDetails)}var optionsJson=optionsArr.length>0?JSON.stringify(optionsArr):"";return optionsJson=encodeURIComponent(optionsJson)}function populate_options_list(form,optionsJson){var optionsHtml="";if(optionsJson)try{optionsJson=decodeURIComponent(optionsJson);var optionsList=$.parseJSON(optionsJson);optionsList&&jQuery.each(optionsList,function(){optionsHtml+=prepare_option_row_html(this)})}catch(err){console.log(err)}var optionsTable=form.find(".thwcfd-option-list tbody");optionsHtml?optionsTable.html(optionsHtml):optionsTable.html(prepare_option_row_html(null))}function prepare_option_row_html(option){var key="",text="";option&&(key=option.key?option.key:"",text=option.text?option.text:"");var html="<tr>";return html+='<td class="key"><input type="text" name="i_options_key[]" value="'+key+'" placeholder="'+__("Option Value","woo-checkout-field-editor-pro")+'"></td>',html+='<td class="value"><input type="text" name="i_options_text[]" value="'+text+'" placeholder="'+__("Option Text","woo-checkout-field-editor-pro")+'"></td>',html+='<td class="action-cell">',html+='<a href="javascript:void(0)" onclick="thwcfdAddNewOptionRow(this)" class="btn btn-tiny btn-primary" title="'+__("Add new option","woo-checkout-field-editor-pro")+'">+</a>',html+='<a href="javascript:void(0)" onclick="thwcfdRemoveOptionRow(this)" class="btn btn-tiny btn-danger" title="'+__("Remove option","woo-checkout-field-editor-pro")+'">x</a>',html+='<span class="btn btn-tiny sort ui-sortable-handle"></span></td>',html+="</tr>"}function add_new_option_row(elm){var ptable=$(elm).closest("table");ptable.find("tbody tr").size()>0?ptable.find("tbody tr:last").after(prepare_option_row_html(null)):ptable.find("tbody").append(prepare_option_row_html(null))}function remove_option_row(elm){var ptable=$(elm).closest("table");$(elm).closest("tr").remove(),0==ptable.find("tbody tr").size()&&ptable.find("tbody").append(prepare_option_row_html(null))}var _wp$i18n=wp.i18n,__=_wp$i18n.__,MSG_INVALID_NAME=(_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx,__('NAME/ID must begin with a lowercase letter ([a-z]) or underscores ("_") and may be followed by any number of lowercase letters, digits ([0-9]) and underscores ("_")',"woo-checkout-field-editor-pro")),SPECIAL_FIELD_TYPES=["country","state","city"],FIELD_FORM_PROPS={name:{name:"name",type:"text"},type:{name:"type",type:"select"},label:{name:"label",type:"text"},default:{name:"default",type:"text"},placeholder:{name:"placeholder",type:"text"},class:{name:"class",type:"text"},validate:{name:"validate",type:"select",multiple:1},title_type:{name:"title_type",type:"select"},checked:{name:"checked",type:"checkbox"},required:{name:"required",type:"checkbox"},enabled:{name:"enabled",type:"checkbox"},show_in_email:{name:"show_in_email",type:"checkbox"},show_in_order:{name:"show_in_order",type:"checkbox"}},FIELDS_TO_HIDE={radio:["placeholder","validate"],select:["validate"],password:["default"]};return{openNewFieldForm:open_new_field_form,openEditFieldForm:open_edit_field_form,openCopyFieldForm:open_copy_field_form,fieldTypeChangeListner:field_type_change_listner,addNewOptionRow:add_new_option_row,removeOptionRow:remove_option_row,save_field:save_field}}(window.jQuery,window,document),thwcfd_settings=function($,window,document){"use strict";function select_all_fields(elm){var checkAll=$(elm).prop("checked");$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]").prop("checked",checkAll)}function remove_selected_fields(){$("#thwcfd_checkout_fields tbody tr").removeClass("strikeout"),$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]:checked").each(function(){var row=$(this).closest("tr");row.hasClass("strikeout")||row.addClass("strikeout"),row.find(".f_deleted").val(1)})}function enable_disable_selected_fields(enabled){$("#thwcfd_checkout_fields tbody input:checkbox[name=select_field]:checked").each(function(){var row=$(this).closest("tr");0==enabled?row.hasClass("thpladmin-disabled")||row.addClass("thpladmin-disabled"):row.removeClass("thpladmin-disabled"),row.find(".td_enabled").html(1==enabled?'<span class="dashicons dashicons-yes tips" data-tip="'+__("Yes","woo-checkout-field-editor-pro")+'"></span>':"-"),row.find(".f_enabled").val(enabled)})}var _wp$i18n=wp.i18n,__=_wp$i18n.__;_wp$i18n._x,_wp$i18n._n,_wp$i18n._nx;return $(function(){var settings_form=$("#thwcfd_checkout_fields_form");thwcfd_base.setupSortableTable(settings_form,"#thwcfd_checkout_fields","0"),thwcfd_base.setup_tiptip_tooltips(),thwcfd_base.setup_form_wizard()}),$(document).keypress(function(e){!$("#thwcfd_field_form_pp").is(":visible")||13!=e.keycode&&13!=e.which||(e.preventDefault(),thwcfdSaveField(this))}),$(document).on("click",".thpladmin-notice .notice-dismiss",function(){var wrapper=$(this).closest("div.thpladmin-notice"),nonce=wrapper.data("nonce"),data={thwepo_review_nonce:nonce,action:"hide_thwcfd_admin_notice"};$.post(ajaxurl,data,function(){})}),{selectAllFields:select_all_fields,removeSelectedFields:remove_selected_fields,enableDisableSelectedFields:enable_disable_selected_fields}}(window.jQuery,window,document);
admin/class-thwcfd-admin-form-field.php CHANGED
@@ -50,6 +50,13 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
50
  'checkbox' => __('Checkbox', 'woo-checkout-field-editor-pro'),
51
  'checkboxgroup' => __('Checkbox Group', 'woo-checkout-field-editor-pro'),
52
  'heading' => __('Heading', 'woo-checkout-field-editor-pro'),
 
 
 
 
 
 
 
53
  );
54
  }
55
 
@@ -62,6 +69,7 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
62
  'postcode' => __('Postcode', 'woo-checkout-field-editor-pro'),
63
  'state' => __('State', 'woo-checkout-field-editor-pro'),
64
  'number' => __('Number', 'woo-checkout-field-editor-pro'),
 
65
  );
66
 
67
  $display_style = array(
@@ -78,7 +86,7 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
78
  'h5' => 'H5',
79
  'h6' => 'H6',
80
  );
81
-
82
  return array(
83
  'type' => array('type'=>'select', 'name'=>'type', 'label'=>__('Type', 'woo-checkout-field-editor-pro'), 'required'=>1, 'options'=>$field_types,
84
  'onchange'=>'thwcfdFieldTypeChangeListner(this)'),
@@ -255,6 +263,13 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
255
  $this->render_form_field_hidden();
256
  $this->render_form_field_heading();
257
  $this->render_form_field_default();
 
 
 
 
 
 
 
258
  }
259
 
260
  private function render_form_field_inputtext(){
@@ -502,8 +517,8 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
502
  $this->render_form_elm_row_cb($this->field_props['enabled']);
503
  ?>
504
  </table>
505
- <?php
506
- }
507
 
508
  private function render_form_field_default(){
509
  ?>
@@ -523,6 +538,135 @@ class THWCFD_Admin_Form_Field extends THWCFD_Admin_Form{
523
  </table>
524
  <?php
525
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
526
 
527
  private function render_form_fragment_options(){
528
  ?>
50
  'checkbox' => __('Checkbox', 'woo-checkout-field-editor-pro'),
51
  'checkboxgroup' => __('Checkbox Group', 'woo-checkout-field-editor-pro'),
52
  'heading' => __('Heading', 'woo-checkout-field-editor-pro'),
53
+ 'datetime_local' => __('Datetime local', 'woo-checkout-field-editor-pro'),
54
+ 'date' => __('Date', 'woo-checkout-field-editor-pro'),
55
+ 'time' => __('Time', 'woo-checkout-field-editor-pro'),
56
+ 'month' => __('Month', 'woo-checkout-field-editor-pro'),
57
+ 'week' => __('Week', 'woo-checkout-field-editor-pro'),
58
+ 'url' => __('URL', 'woo-checkout-field-editor-pro'),
59
+ 'paragraph' => __('Paragraph','woo-checkout-field-editor-pro'),
60
  );
61
  }
62
 
69
  'postcode' => __('Postcode', 'woo-checkout-field-editor-pro'),
70
  'state' => __('State', 'woo-checkout-field-editor-pro'),
71
  'number' => __('Number', 'woo-checkout-field-editor-pro'),
72
+ 'url' => __('URL', 'woo-checkout-field-editor-pro'),
73
  );
74
 
75
  $display_style = array(
86
  'h5' => 'H5',
87
  'h6' => 'H6',
88
  );
89
+
90
  return array(
91
  'type' => array('type'=>'select', 'name'=>'type', 'label'=>__('Type', 'woo-checkout-field-editor-pro'), 'required'=>1, 'options'=>$field_types,
92
  'onchange'=>'thwcfdFieldTypeChangeListner(this)'),
263
  $this->render_form_field_hidden();
264
  $this->render_form_field_heading();
265
  $this->render_form_field_default();
266
+ $this->render_form_field_datetime_local();
267
+ $this->render_form_field_date();
268
+ $this->render_form_field_time();
269
+ $this->render_form_field_month();
270
+ $this->render_form_field_week();
271
+ $this->render_form_field_url();
272
+ $this->render_form_field_paragraph();
273
  }
274
 
275
  private function render_form_field_inputtext(){
517
  $this->render_form_elm_row_cb($this->field_props['enabled']);
518
  ?>
519
  </table>
520
+ <?php
521
+ }
522
 
523
  private function render_form_field_default(){
524
  ?>
538
  </table>
539
  <?php
540
  }
541
+ private function render_form_field_datetime_local(){
542
+ $placeholder_props = $this->field_props['default'];
543
+ $placeholder_props['placeholder'] = 'YYYY-MM-DDThh:mm';
544
+ ?>
545
+ <table id="thwcfd_field_form_id_datetime_local" class="thwcfd_pp_table" style="display:none;">
546
+ <?php
547
+ $this->render_form_elm_row($this->field_props['label']);
548
+ // $this->render_form_elm_row($this->field_props['default']);
549
+ $this->render_form_elm_row($placeholder_props);
550
+ $this->render_form_elm_row($this->field_props['class']);
551
+ $this->render_form_elm_row($this->field_props['validate']);
552
+
553
+ $this->render_form_elm_row_cb($this->field_props['required']);
554
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
555
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
556
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
557
+ ?>
558
+ </table>
559
+ <?php
560
+ }
561
+ private function render_form_field_date(){
562
+ $placeholder_props = $this->field_props['default'];
563
+ $placeholder_props['placeholder'] = 'yyyy-mm-dd';
564
+ ?>
565
+ <table id="thwcfd_field_form_id_date" class="thwcfd_pp_table" style="display:none;">
566
+ <?php
567
+ $this->render_form_elm_row($this->field_props['label']);
568
+ $this->render_form_elm_row($placeholder_props);
569
+ $this->render_form_elm_row($this->field_props['class']);
570
+ $this->render_form_elm_row($this->field_props['validate']);
571
+
572
+ $this->render_form_elm_row_cb($this->field_props['required']);
573
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
574
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
575
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
576
+ ?>
577
+ </table>
578
+ <?php
579
+ }
580
+ private function render_form_field_time(){
581
+ $placeholder_props = $this->field_props['default'];
582
+ $placeholder_props['placeholder'] = 'hh:mm';
583
+ ?>
584
+ <table id="thwcfd_field_form_id_time" class="thwcfd_pp_table" style="display:none;">
585
+ <?php
586
+ $this->render_form_elm_row($this->field_props['label']);
587
+ $this->render_form_elm_row($placeholder_props);
588
+ $this->render_form_elm_row($this->field_props['class']);
589
+ $this->render_form_elm_row($this->field_props['validate']);
590
+
591
+ $this->render_form_elm_row_cb($this->field_props['required']);
592
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
593
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
594
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
595
+ ?>
596
+ </table>
597
+ <?php
598
+ }
599
+ private function render_form_field_month(){
600
+ $placeholder_props = $this->field_props['default'];
601
+ $placeholder_props['placeholder'] = 'yyyy-MM';
602
+ ?>
603
+ <table id="thwcfd_field_form_id_month" class="thwcfd_pp_table" style="display:none;">
604
+ <?php
605
+ $this->render_form_elm_row($this->field_props['label']);
606
+ $this->render_form_elm_row($placeholder_props);
607
+ $this->render_form_elm_row($this->field_props['class']);
608
+ $this->render_form_elm_row($this->field_props['validate']);
609
+
610
+ $this->render_form_elm_row_cb($this->field_props['required']);
611
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
612
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
613
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
614
+ ?>
615
+ </table>
616
+ <?php
617
+ }
618
+ private function render_form_field_week(){
619
+ $placeholder_props = $this->field_props['default'];
620
+ $placeholder_props['placeholder'] = 'yyyy-Www';
621
+ ?>
622
+ <table id="thwcfd_field_form_id_week" class="thwcfd_pp_table" style="display:none;">
623
+ <?php
624
+ $this->render_form_elm_row($this->field_props['label']);
625
+ $this->render_form_elm_row($placeholder_props);
626
+ $this->render_form_elm_row($this->field_props['class']);
627
+ $this->render_form_elm_row($this->field_props['validate']);
628
+
629
+ $this->render_form_elm_row_cb($this->field_props['required']);
630
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
631
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
632
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
633
+ ?>
634
+ </table>
635
+ <?php
636
+ }
637
+ private function render_form_field_url(){
638
+ ?>
639
+ <table id="thwcfd_field_form_id_url" class="thwcfd_pp_table" style="display:none;">
640
+ <?php
641
+ $this->render_form_elm_row($this->field_props['label']);
642
+ $this->render_form_elm_row($this->field_props['placeholder']);
643
+ $this->render_form_elm_row($this->field_props['default']);
644
+ $this->render_form_elm_row($this->field_props['class']);
645
+ $this->render_form_elm_row($this->field_props['validate']);
646
+
647
+ $this->render_form_elm_row_cb($this->field_props['required']);
648
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
649
+ $this->render_form_elm_row_cb($this->field_props['show_in_email']);
650
+ $this->render_form_elm_row_cb($this->field_props['show_in_order']);
651
+ ?>
652
+ </table>
653
+ <?php
654
+ }
655
+ private function render_form_field_paragraph(){
656
+ $label_props = $this->field_props['label'];
657
+ $label_props['label'] = 'Content';
658
+ ?>
659
+ <table id="thwcfd_field_form_id_paragraph" class="thwcfd_pp_table" style="display:none;">
660
+ <?php
661
+
662
+ $this->render_form_elm_row($this->field_props['class']);
663
+ $this->render_form_elm_row($label_props);
664
+
665
+ $this->render_form_elm_row_cb($this->field_props['enabled']);
666
+ ?>
667
+ </table>
668
+ <?php
669
+ }
670
 
671
  private function render_form_fragment_options(){
672
  ?>
admin/class-thwcfd-admin-settings.php CHANGED
@@ -25,7 +25,7 @@ abstract class THWCFD_Admin_Settings{
25
  'advanced_settings' => __('Advanced Settings', 'woo-checkout-field-editor-pro'),
26
  'pro' => __('Premium Features', 'woo-checkout-field-editor-pro'),
27
  'themehigh_plugins' => __('Other Free Plugins', 'woo-checkout-field-editor-pro'),
28
- );
29
  }
30
 
31
  public function get_tabs(){
25
  'advanced_settings' => __('Advanced Settings', 'woo-checkout-field-editor-pro'),
26
  'pro' => __('Premium Features', 'woo-checkout-field-editor-pro'),
27
  'themehigh_plugins' => __('Other Free Plugins', 'woo-checkout-field-editor-pro'),
28
+ );
29
  }
30
 
31
  public function get_tabs(){
admin/class-thwcfd-admin.php CHANGED
@@ -98,145 +98,132 @@ class THWCFD_Admin {
98
  echo '</div>';
99
  }
100
 
101
- public function hide_thwcfd_admin_notice(){
102
- $nonse = isset($_REQUEST['thwcfd_notice_security']) ? $_REQUEST['thwcfd_notice_security'] : false;
103
- $capability = THWCFD_Utils::wcfd_capability();
104
- if(!wp_verify_nonce($nonse, 'thwcfd_notice_security') || !current_user_can($capability)){
105
- die();
106
  }
107
- set_transient('thwcfd_hide_admin_notice', true, apply_filters('thwcfd_hide_admin_notice_lifespan', 3 * MONTH_IN_SECONDS));
108
- }
109
 
110
- public function skip_thwcfd_admin_notice(){
111
- $nonse = isset($_REQUEST['thwcfd_notice_security']) ? $_REQUEST['thwcfd_notice_security'] : false;
112
  $capability = THWCFD_Utils::wcfd_capability();
 
113
  if(!wp_verify_nonce($nonse, 'thwcfd_notice_security') || !current_user_can($capability)){
114
  die();
115
  }
116
- set_transient('thwcfd_skip_admin_notice', true, apply_filters('thwcfd_skip_admin_notice_lifespan', 7 * DAY_IN_SECONDS));
117
- }
118
 
119
- public function dismissable_admin_notice(){
120
 
121
- $thwcfd_since = get_option('thwcfd_since');
122
- if(!$thwcfd_since){
123
- $now = time();
124
- update_option('thwcfd_since', $now, 'no');
 
 
 
 
 
 
125
  }
126
 
 
 
 
 
 
 
 
 
 
127
  if(!apply_filters('thwcfd_show_dismissable_admin_notice', true)){
128
  return;
129
  }
130
 
131
- $is_hidden = get_transient('thwcfd_hide_admin_notice');
132
- if($is_hidden){
133
  return;
134
  }
135
 
136
- $is_skipped = get_transient('thwcfd_skip_admin_notice');
137
- if($is_skipped){
138
  return;
139
  }
140
 
141
- // $now = time();
142
- // $diff_seconds = $now - $thwcfd_since;
143
-
144
- // if($diff_seconds < apply_filters('thwcfd_show_admin_notice_after', 10 * DAY_IN_SECONDS)){
145
- // return;
146
- // }
147
-
148
- ?>
149
- <div class="notice notice-info thpladmin-notice is-dismissible" data-nonce="<?php echo wp_create_nonce( 'thwcfd_notice_security'); ?>">
150
- <h3><?php _e('We heard you!', 'woo-checkout-field-editor-pro'); ?></h3>
151
- <p><?php _e('The free version of Checkout Field Editor for WooCommerce plugin is now loaded with more field types and we would love to know how you feel about the improvements we made just for you. Help us to serve you and others best by simply leaving a genuine review.', 'woo-checkout-field-editor-pro'); ?></p>
152
- <p class="action-row">
153
- <a href="#" onclick="window.open('https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/reviews?rate=5#new-post', '_blank')" style="margin-right:16px; text-decoration: none"><span class="dashicons dashicons-external"></span> <?php _e("Yes, today", 'woo-checkout-field-editor-pro'); ?></a>
154
 
155
- <a href="#" onclick="thwcfdSkipAdminNotice(event, this)" style="margin-right:16px; text-decoration: none"><span class="dashicons dashicons-calendar-alt"></span> <?php _e('Maybe later', 'woo-checkout-field-editor-pro'); ?></a>
 
 
 
 
 
 
 
156
 
157
- <a href="#" onclick="thwcfdHideAdminNotice(event, this)" style="margin-right:16px; text-decoration: none"><span class="dashicons dashicons-no"></span> <?php _e("Nah, Never", 'woo-checkout-field-editor-pro'); ?></a>
 
 
 
 
158
 
159
- <span class="logo" style="float: right"><a target="_blank" href="https://www.themehigh.com">
160
- <img src="<?php echo esc_url(THWCFD_ASSETS_URL_ADMIN .'css/logo.svg'); ?>" style="height:18px;margin-top:4px;"/>
161
- </a></span>
162
- </p>
163
- </div>
164
- <?php
165
  }
166
 
167
- function admin_notice_js_snippet(){
168
- if(!apply_filters('thwcfd_dismissable_admin_notice_javascript', true)){
169
- return;
170
- }
 
 
 
 
171
  ?>
172
- <script>
173
- var thwcfd_dismissable_notice = (function($, window, document) {
174
- 'use strict';
175
-
176
- $( document ).on( 'click', '.thpladmin-notice .notice-dismiss', function() {
177
- var wrapper = $(this).closest('div.thpladmin-notice');
178
- var nonce = wrapper.data("nonce");
179
- var data = {
180
- thwcfd_notice_security: nonce,
181
- action: 'hide_thwcfd_admin_notice',
182
- };
183
- $.post( ajaxurl, data, function() {
184
-
185
- });
186
- });
187
-
188
- function skip_admin_notice(e, elm){
189
- e.preventDefault();
190
- var wrapper = $(elm).closest('div.thpladmin-notice');
191
- var nonce = wrapper.data("nonce");
192
- var data = {
193
- thwcfd_notice_security: nonce,
194
- action: 'skip_thwcfd_admin_notice',
195
- };
196
- $.post( ajaxurl, data, function() {
197
-
198
- });
199
- $(wrapper).hide(20);
200
- }
201
-
202
- function hide_admin_notice(e, elm){
203
- e.preventDefault();
204
- var wrapper = $(elm).closest('div.thpladmin-notice');
205
- var nonce = wrapper.data("nonce");
206
- var data = {
207
- thwcfd_notice_security: nonce,
208
- action: 'hide_thwcfd_admin_notice',
209
- };
210
- $.post( ajaxurl, data, function() {
211
-
212
- });
213
- $(wrapper).hide(20);
214
- }
215
-
216
- return {
217
- skipAdminNotice : skip_admin_notice,
218
- hideAdminNotice : hide_admin_notice,
219
- };
220
- }(window.jQuery, window, document));
221
-
222
- function thwcfdSkipAdminNotice(e, elm){
223
- thwcfd_dismissable_notice.skipAdminNotice(e, elm);
224
- }
225
-
226
- function thwcfdHideAdminNotice(e, elm){
227
- thwcfd_dismissable_notice.hideAdminNotice(e, elm);
228
- }
229
- </script>
230
- <?php
231
- }
232
 
233
- public function update_dismissable_notice_status(){
234
- $is_hidden = get_transient('thwcfd_hide_admin_notice');
235
- if($is_hidden){
236
- $data = array('1.5.2');
237
- update_option('thwcfd_notice_status', $data, 'no');
238
- delete_transient('thwcfd_hide_admin_notice');
239
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  }
241
 
242
  }
98
  echo '</div>';
99
  }
100
 
101
+ public function wcfd_notice_actions(){
102
+
103
+ if( !(isset($_GET['thwcfd_remind']) || isset($_GET['thwcfd_dissmis']) || isset($_GET['thwcfd_reviewed'])) ) {
104
+ return;
 
105
  }
 
 
106
 
107
+ $nonse = isset($_GET['thwcfd_review_nonce']) ? $_GET['thwcfd_review_nonce'] : false;
 
108
  $capability = THWCFD_Utils::wcfd_capability();
109
+
110
  if(!wp_verify_nonce($nonse, 'thwcfd_notice_security') || !current_user_can($capability)){
111
  die();
112
  }
 
 
113
 
114
+ $now = time();
115
 
116
+ $thwcfd_remind = isset($_GET['thwcfd_remind']) ? sanitize_text_field( wp_unslash($_GET['thwcfd_remind'])) : false;
117
+ if($thwcfd_remind){
118
+ update_user_meta( get_current_user_id(), 'thwcfd_review_skipped', true );
119
+ update_user_meta( get_current_user_id(), 'thwcfd_review_skipped_time', $now );
120
+ }
121
+
122
+ $thwcfd_dissmis = isset($_GET['thwcfd_dissmis']) ? sanitize_text_field( wp_unslash($_GET['thwcfd_dissmis'])) : false;
123
+ if($thwcfd_dissmis){
124
+ update_user_meta( get_current_user_id(), 'thwcfd_review_dismissed', true );
125
+ update_user_meta( get_current_user_id(), 'thwcfd_review_dismissed_time', $now );
126
  }
127
 
128
+ $thwcfd_reviewed = isset($_GET['thwcfd_reviewed']) ? sanitize_text_field( wp_unslash($_GET['thwcfd_reviewed'])) : false;
129
+ if($thwcfd_reviewed){
130
+ update_user_meta( get_current_user_id(), 'thwcfd_reviewed', true );
131
+ update_user_meta( get_current_user_id(), 'thwcfd_reviewed_time', $now );
132
+ }
133
+ }
134
+
135
+ public function output_review_request_link(){
136
+
137
  if(!apply_filters('thwcfd_show_dismissable_admin_notice', true)){
138
  return;
139
  }
140
 
141
+ $current_screen = get_current_screen();
142
+ if($current_screen->id !== 'woocommerce_page_checkout_form_designer'){
143
  return;
144
  }
145
 
146
+ $thwcfd_reviewed = get_user_meta( get_current_user_id(), 'thwcfd_reviewed', true );
147
+ if($thwcfd_reviewed){
148
  return;
149
  }
150
 
151
+ $now = time();
152
+ $dismiss_life = apply_filters('thwcfd_dismissed_review_request_notice_lifespan', 3 * MONTH_IN_SECONDS);
153
+ $reminder_life = apply_filters('thwcfd_skip_review_request_notice_lifespan', 1 * DAY_IN_SECONDS);
154
+
155
+ $is_dismissed = get_user_meta( get_current_user_id(), 'thwcfd_review_dismissed', true );
156
+ $dismisal_time = get_user_meta( get_current_user_id(), 'thwcfd_review_dismissed_time', true );
157
+ $dismisal_time = $dismisal_time ? $dismisal_time : 0;
158
+ $dismissed_time = $now - $dismisal_time;
159
+
160
+ if( $is_dismissed && ($dismissed_time < $dismiss_life) ){
161
+ return;
162
+ }
 
163
 
164
+ $is_skipped = get_user_meta( get_current_user_id(), 'thwcfd_review_skipped', true );
165
+ $skipping_time = get_user_meta( get_current_user_id(), 'thwcfd_review_skipped_time', true );
166
+ $skipping_time = $skipping_time ? $skipping_time : 0;
167
+ $remind_time = $now - $skipping_time;
168
+
169
+ if($is_skipped && ($remind_time < $reminder_life) ){
170
+ return;
171
+ }
172
 
173
+ $thwcfd_since = get_option('thwcfd_since');
174
+ if(!$thwcfd_since){
175
+ $now = time();
176
+ update_option('thwcfd_since', $now, 'no' );
177
+ }
178
 
179
+ $this->render_review_request_notice();
 
 
 
 
 
180
  }
181
 
182
+ private function render_review_request_notice(){
183
+ $current_tab = isset( $_GET['tab'] ) ? sanitize_key( $_GET['tab'] ) : 'general_settings';
184
+ $current_section = isset( $_GET['section'] ) ? sanitize_key( $_GET['section'] ) : '';
185
+
186
+
187
+ $remind_url = add_query_arg(array('thwcfd_remind' => true, 'thwcfd_review_nonce' => wp_create_nonce( 'thwcfd_notice_security')));
188
+ $dismiss_url = add_query_arg(array('thwcfd_dissmis' => true, 'thwcfd_review_nonce' => wp_create_nonce( 'thwcfd_notice_security')));
189
+ $reviewed_url= add_query_arg(array('thwcfd_reviewed' => true, 'thwcfd_review_nonce' => wp_create_nonce( 'thwcfd_notice_security')));
190
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
 
192
+ <div class="notice notice-info thpladmin-notice is-dismissible thwcfd-review-wrapper" data-nonce="<?php echo wp_create_nonce( 'thwcfd_notice_security'); ?>">
193
+ <div class="thwcfd-review-image">
194
+ <img src="<?php echo esc_url(THWCFD_URL .'admin/assets/css/review-left.png'); ?>" alt="themehigh">
195
+ </div>
196
+ <div class="thwcfd-review-content">
197
+ <h3><?php _e('We heard you!', 'woo-checkout-field-editor-pro'); ?></h3>
198
+ <p><?php _e('The free version of the WooCommerce Checkout Field Editor plugin is now loaded with more field types. We would love to know how you feel about the improvements we made just for you. Help us to serve you and others best by simply leaving a genuine review.', 'woo-checkout-field-editor-pro'); ?></p>
199
+ <div class="action-row">
200
+ <a class="thwcfd-notice-action thwcfd-yes" onclick="window.open('https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/reviews/?rate=5#new-post', '_blank')" style="margin-right:16px; text-decoration: none">
201
+ <?php _e("Yes, today", 'woo-checkout-field-editor-pro'); ?>
202
+ </a>
203
+
204
+ <a class="thwcfd-notice-action thwcfd-done" href="<?php echo esc_url($reviewed_url); ?>" style="margin-right:16px; text-decoration: none">
205
+ <?php _e('Already, Did', 'woo-checkout-field-editor-pro'); ?>
206
+ </a>
207
+
208
+ <a class="thwcfd-notice-action thwcfd-remind" href="<?php echo esc_url($remind_url); ?>" style="margin-right:16px; text-decoration: none">
209
+ <?php _e('Maybe later', 'woo-checkout-field-editor-pro'); ?>
210
+ </a>
211
+
212
+ <a class="thwcfd-notice-action thwcfd-dismiss" href="<?php echo esc_url($dismiss_url); ?>" style="margin-right:16px; text-decoration: none">
213
+ <?php _e("Nah, Never", 'woo-checkout-field-editor-pro'); ?>
214
+ </a>
215
+ </div>
216
+ </div>
217
+ <div class="thwcfd-themehigh-logo">
218
+ <span class="logo" style="float: right">
219
+ <a target="_blank" href="https://www.themehigh.com">
220
+ <img src="<?php echo esc_url(THWCFD_URL .'admin/assets/css/logo.svg'); ?>" style="height:19px;margin-top:4px;" alt="themehigh"/>
221
+ </a>
222
+ </span>
223
+ </div>
224
+ </div>
225
+
226
+ <?php
227
  }
228
 
229
  }
checkout-form-designer.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
- * Version: 1.5.3
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 6.1.0
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
@@ -25,7 +25,7 @@ if (!function_exists('is_woocommerce_active')){
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
- define('THWCFD_VERSION', '1.5.3');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
+ * Version: 1.6.0
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 6.3.0
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
+ define('THWCFD_VERSION', '1.6.0');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
includes/class-thwcfd.php CHANGED
@@ -67,19 +67,16 @@ class THWCFD {
67
  add_action('admin_menu', array($plugin_admin, 'admin_menu'));
68
  add_filter('woocommerce_screen_ids', array($plugin_admin, 'add_screen_id'));
69
  add_filter('plugin_action_links_'.THWCFD_BASE_NAME, array($plugin_admin, 'plugin_action_links'));
 
 
70
  //add_filter('plugin_row_meta', array($plugin_admin, 'plugin_row_meta'), 10, 2);
71
- add_action('wp_ajax_hide_thwcfd_admin_notice', array($plugin_admin, 'hide_thwcfd_admin_notice'));
72
- add_action('wp_ajax_skip_thwcfd_admin_notice', array($plugin_admin, 'skip_thwcfd_admin_notice'));
73
-
74
- //add_action('admin_notices', array($plugin_admin, 'dismissable_admin_notice'));
75
- //add_action('admin_footer', array($plugin_admin, 'admin_notice_js_snippet'), 9999);
76
- add_action('admin_init', array($plugin_admin, 'update_dismissable_notice_status'));
77
-
78
  $themehigh_plugins = new THWCFD_Admin_Settings_Themehigh_Plugins();
79
  add_action('wp_ajax_th_activate_plugin', array($themehigh_plugins, 'activate_themehigh_plugins'));
80
 
81
  $general_settings = new THWCFD_Admin_Settings_General();
82
  add_action('after_setup_theme', array($general_settings, 'define_admin_hooks'));
 
83
  }
84
 
85
  private function define_public_hooks() {
@@ -117,6 +114,20 @@ class THWCFD {
117
  public function get_version() {
118
  return $this->version;
119
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  }
121
 
122
  endif;
67
  add_action('admin_menu', array($plugin_admin, 'admin_menu'));
68
  add_filter('woocommerce_screen_ids', array($plugin_admin, 'add_screen_id'));
69
  add_filter('plugin_action_links_'.THWCFD_BASE_NAME, array($plugin_admin, 'plugin_action_links'));
70
+ //add_action( 'admin_init', array( $plugin_admin, 'wcfd_notice_actions' ), 20 );
71
+ //add_action( 'admin_notices', array($plugin_admin, 'output_review_request_link'));
72
  //add_filter('plugin_row_meta', array($plugin_admin, 'plugin_row_meta'), 10, 2);
73
+
 
 
 
 
 
 
74
  $themehigh_plugins = new THWCFD_Admin_Settings_Themehigh_Plugins();
75
  add_action('wp_ajax_th_activate_plugin', array($themehigh_plugins, 'activate_themehigh_plugins'));
76
 
77
  $general_settings = new THWCFD_Admin_Settings_General();
78
  add_action('after_setup_theme', array($general_settings, 'define_admin_hooks'));
79
+ add_action('wp_ajax_hide_thwcfd_admin_notice', array($this, 'hide_thwcfd_admin_notice'));
80
  }
81
 
82
  private function define_public_hooks() {
114
  public function get_version() {
115
  return $this->version;
116
  }
117
+
118
+ public function hide_thwcfd_admin_notice(){
119
+ check_ajax_referer('thwcfd_notice_security', 'thwcfd_review_nonce');
120
+
121
+ $capability = THWEPOF_Utils::wepo_capability();
122
+ if(!current_user_can($capability)){
123
+ wp_die(-1);
124
+ }
125
+
126
+ $now = time();
127
+ update_user_meta( get_current_user_id(), 'thwcfd_review_skipped', true );
128
+ update_user_meta( get_current_user_id(), 'thwcfd_review_skipped_time', $now );
129
+ }
130
+
131
  }
132
 
133
  endif;
public/class-thwcfd-public-checkout.php CHANGED
@@ -58,9 +58,16 @@ class THWCFD_Public_Checkout {
58
  add_action('woocommerce_order_details_after_order_table', array($this, 'order_details_after_customer_details'), 20, 1);
59
 
60
  add_filter('woocommerce_form_field_checkboxgroup', array($this, 'woo_form_field'), 10, 4);
 
 
 
 
 
 
61
  add_filter('woocommerce_form_field_multiselect', array($this, 'woo_form_field'), 10, 4);
62
  add_filter('woocommerce_form_field_hidden', array($this, 'woo_form_field_hidden'), 10, 4);
63
  add_filter('woocommerce_form_field_heading', array($this, 'woo_form_field_heading'), 10, 4);
 
64
 
65
  }
66
 
@@ -360,8 +367,11 @@ class THWCFD_Public_Checkout {
360
  if(!is_numeric($value)){
361
  $err_msg = sprintf( __( '<strong>%s</strong> is not a valid number.', 'woo-checkout-field-editor-pro' ), $flabel );
362
  }
 
 
 
 
363
  }
364
-
365
  if($err_msg){
366
  if($errors || !$return){
367
  $this->add_validation_error($err_msg, $errors);
@@ -599,6 +609,7 @@ class THWCFD_Public_Checkout {
599
  $label_id = $args['id'];
600
  $sort = $args['priority'] ? $args['priority'] : '';
601
  $field_container = '<p class="form-row %1$s" id="%2$s" data-priority="' . esc_attr($sort) . '">%3$s</p>';
 
602
  switch ($args['type']) {
603
 
604
  case 'multiselect':
@@ -636,6 +647,45 @@ class THWCFD_Public_Checkout {
636
 
637
  break;
638
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639
  case 'file':
640
 
641
  $field = '';
@@ -675,6 +725,16 @@ class THWCFD_Public_Checkout {
675
  return $field;
676
  }
677
 
 
 
 
 
 
 
 
 
 
 
678
  public function woo_form_field_heading($field, $key, $args, $value = null){
679
  $args['class'][] = 'thwcfd-field-wrapper thwcfd-field-heading';
680
 
58
  add_action('woocommerce_order_details_after_order_table', array($this, 'order_details_after_customer_details'), 20, 1);
59
 
60
  add_filter('woocommerce_form_field_checkboxgroup', array($this, 'woo_form_field'), 10, 4);
61
+ add_filter('woocommerce_form_field_datetime_local', array($this, 'woo_form_field'), 10, 4);
62
+ add_filter('woocommerce_form_field_date', array($this, 'woo_form_field'), 10, 4);
63
+ add_filter('woocommerce_form_field_time', array($this, 'woo_form_field'), 10, 4);
64
+ add_filter('woocommerce_form_field_month', array($this, 'woo_form_field'), 10, 4);
65
+ add_filter('woocommerce_form_field_week', array($this, 'woo_form_field'), 10, 4);
66
+ add_filter('woocommerce_form_field_url', array($this, 'woo_form_field'), 10, 4);
67
  add_filter('woocommerce_form_field_multiselect', array($this, 'woo_form_field'), 10, 4);
68
  add_filter('woocommerce_form_field_hidden', array($this, 'woo_form_field_hidden'), 10, 4);
69
  add_filter('woocommerce_form_field_heading', array($this, 'woo_form_field_heading'), 10, 4);
70
+ add_filter('woocommerce_form_field_paragraph', array($this, 'woo_form_field_paragraph'), 10, 4);
71
 
72
  }
73
 
367
  if(!is_numeric($value)){
368
  $err_msg = sprintf( __( '<strong>%s</strong> is not a valid number.', 'woo-checkout-field-editor-pro' ), $flabel );
369
  }
370
+ }else if($vname === 'url'){
371
+ if (!filter_var($value, FILTER_VALIDATE_URL)) {
372
+ $err_msg = sprintf( __( '<strong>%s</strong> is not a valid url.', 'woo-checkout-field-editor-pro' ), $flabel );
373
+ }
374
  }
 
375
  if($err_msg){
376
  if($errors || !$return){
377
  $this->add_validation_error($err_msg, $errors);
609
  $label_id = $args['id'];
610
  $sort = $args['priority'] ? $args['priority'] : '';
611
  $field_container = '<p class="form-row %1$s" id="%2$s" data-priority="' . esc_attr($sort) . '">%3$s</p>';
612
+
613
  switch ($args['type']) {
614
 
615
  case 'multiselect':
647
 
648
  break;
649
 
650
+ case 'datetime_local':
651
+
652
+ $field = '';
653
+
654
+ $field .= '<input type="datetime-local" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . esc_attr( $value) . '" />';
655
+ break;
656
+
657
+ case 'date':
658
+
659
+ $field = '';
660
+
661
+ $field .= '<input type="date" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . esc_attr( $value) . '" />';
662
+ break;
663
+ case 'time':
664
+
665
+ $field = '';
666
+
667
+ $field .= '<input type="time" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . esc_attr( $value) . '" />';
668
+ break;
669
+ case 'month':
670
+
671
+ $field = '';
672
+
673
+ $field .= '<input type="month" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . esc_attr( $value) . '" />';
674
+ break;
675
+ case 'week':
676
+
677
+ $field = '';
678
+
679
+ $field .= '<input type="week" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . esc_attr( $value) . '" />';
680
+ break;
681
+
682
+ case 'url':
683
+
684
+ $field = '';
685
+
686
+ $field .= '<input type="url" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" placeholder ="'.esc_attr($args['placeholder']). '" value="' . esc_attr( $value) . '" />';
687
+ break;
688
+
689
  case 'file':
690
 
691
  $field = '';
725
  return $field;
726
  }
727
 
728
+ public function woo_form_field_paragraph($field, $key, $args, $value){
729
+ $args['class'][] = 'thwcfd-field-wrapper thwcfd-field-paragraph';
730
+
731
+ if(isset($args['label']) && !empty($args['label'])){
732
+ $field = '<p class="form-row '.esc_attr(implode(' ', $args['class'])).'" id="'.esc_attr($key).'_field" >'. esc_html__($args['label'], 'woo-checkout-field-editor-pro') .'</ p >';
733
+ }
734
+
735
+ return $field;
736
+ }
737
+
738
  public function woo_form_field_heading($field, $key, $args, $value = null){
739
  $args['class'][] = 'thwcfd-field-wrapper thwcfd-field-heading';
740
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: checkout field editor, woocommerce checkout field editor, checkout manager
5
  Requires at least: 4.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 1.5.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -14,7 +14,7 @@ Checkout Field Editor (Checkout Manager) for WooCommerce - The best WooCommerce
14
  == Description ==
15
 
16
  = Checkout Field Editor for WooCommerce =
17
- WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 13 different types of custom checkout fields to your Checkout page, blended with a simple and user-friendly interface.
18
 
19
  It enables you to edit the default checkout fields of your WooCommerce platform, add new custom fields in the three sections (namely Billing, Shipping and Additional), edit, hide, or delete the default fields, change labels, rearrange checkout fields, validate the checkout fields, add custom css classes etc.
20
 
@@ -26,7 +26,7 @@ https://www.youtube.com/watch?v=_iKMe5lGIIM
26
 
27
  = Key Features =
28
  = ☞ Custom Checkout Field(s) =
29
- Add additional fields to your Checkout page using the Checkout Manager plugin. You can add thirteen different types of checkout fields in your WooCommerce checkout page and collect more information from the end-user. The various field types it supports include:
30
 
31
  * Text
32
  * Number
@@ -40,7 +40,14 @@ Add additional fields to your Checkout page using the Checkout Manager plugin. Y
40
  * Multi Select
41
  * Checkbox
42
  * Checkbox Group
43
- * Heading
 
 
 
 
 
 
 
44
 
45
  = ☞ Edit Field(s) =
46
  Edit the custom fields as per the varying business requirements, including the default ones.
@@ -73,17 +80,17 @@ Using this plugin, you can reset to the original state with the default fields o
73
  The Checkout Field Editor plugin lets you translate to other languages as it is compatible with WPML, Polylang & Loco Translate translation plugins. To translate dynamic strings, use Polylang or WPML plugin.
74
 
75
  == 💎💎 Upgrade to Premium Version Now! ==
76
- The premium version of WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 17 different types of custom checkout fields and sections to your Checkout page, and make the best out of your Checkout form.
77
 
78
- A range of advanced features that it delivers include 17 custom checkout field types, display sections and fields conditionally, custom validations, compatibility with third-party plugins, developer friendliness with custom hooks, change address display format, price fields with a set of price types etc.
79
 
80
  == Premium Features ==
81
 
82
  = ☞ Custom Checkout Sections =
83
  Add custom checkout sections apart from the three default sections, viz., Billing, Shipping and Additional sections. The Pro version stands apart from the free version with the same functionality.
84
 
85
- = ☞ 17 Custom field types with File Upload =
86
- The Pro version of WooCommerce Checkout Manager supports upto 17 field types, including the File Upload option. The 17 field types it supports are:
87
 
88
  1. Text
89
  2. Hidden
@@ -100,8 +107,15 @@ The Pro version of WooCommerce Checkout Manager supports upto 17 field types, in
100
  13. Date picker
101
  14. Time picker
102
  15. File Upload
103
- 16. Heading
104
- 17. Label
 
 
 
 
 
 
 
105
 
106
  = ☞ Display custom fields at 14 different positions =
107
  The free version of the plugin limits the user to display the custom checkout field at only certain positions. The Premium version allows you to display them at 14 different locations. Following are the positions where these checkout sections can be displayed:
@@ -258,9 +272,19 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
258
  9. Locale override settings
259
 
260
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
261
  = 1.5.3 =
262
  * Added WooCommerce 6.1.0 compatibility.
263
- * Removed the feedback banner.
264
 
265
  = 1.5.2 =
266
  * Added WooCommerce 6.0.0 compatibility.
5
  Requires at least: 4.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 1.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
14
  == Description ==
15
 
16
  = Checkout Field Editor for WooCommerce =
17
+ WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 20 different types of custom checkout fields to your Checkout page, blended with a simple and user-friendly interface.
18
 
19
  It enables you to edit the default checkout fields of your WooCommerce platform, add new custom fields in the three sections (namely Billing, Shipping and Additional), edit, hide, or delete the default fields, change labels, rearrange checkout fields, validate the checkout fields, add custom css classes etc.
20
 
26
 
27
  = Key Features =
28
  = ☞ Custom Checkout Field(s) =
29
+ Add additional fields to your Checkout page using the Checkout Manager plugin. You can add twenty different types of checkout fields in your WooCommerce checkout page and collect more information from the end-user. The various field types it supports include:
30
 
31
  * Text
32
  * Number
40
  * Multi Select
41
  * Checkbox
42
  * Checkbox Group
43
+ * Datetime local
44
+ * Date
45
+ * Month
46
+ * Time
47
+ * Week
48
+ * URL
49
+ * Heading
50
+ * Paragraph
51
 
52
  = ☞ Edit Field(s) =
53
  Edit the custom fields as per the varying business requirements, including the default ones.
80
  The Checkout Field Editor plugin lets you translate to other languages as it is compatible with WPML, Polylang & Loco Translate translation plugins. To translate dynamic strings, use Polylang or WPML plugin.
81
 
82
  == 💎💎 Upgrade to Premium Version Now! ==
83
+ The premium version of WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 24 different types of custom checkout fields and sections to your Checkout page, and make the best out of your Checkout form.
84
 
85
+ A range of advanced features that it delivers include 24 custom checkout field types, display sections and fields conditionally, custom validations, compatibility with third-party plugins, developer friendliness with custom hooks, change address display format, price fields with a set of price types etc.
86
 
87
  == Premium Features ==
88
 
89
  = ☞ Custom Checkout Sections =
90
  Add custom checkout sections apart from the three default sections, viz., Billing, Shipping and Additional sections. The Pro version stands apart from the free version with the same functionality.
91
 
92
+ = ☞ 24 Custom field types with File Upload =
93
+ The Pro version of WooCommerce Checkout Manager supports upto 24 field types, including the File Upload option. The 24 field types it supports are:
94
 
95
  1. Text
96
  2. Hidden
107
  13. Date picker
108
  14. Time picker
109
  15. File Upload
110
+ 16. Datetime local
111
+ 17. Date
112
+ 18. Month
113
+ 19. Time
114
+ 20. Week
115
+ 21. URL
116
+ 22. Heading
117
+ 23. Label
118
+ 24. Paragraph
119
 
120
  = ☞ Display custom fields at 14 different positions =
121
  The free version of the plugin limits the user to display the custom checkout field at only certain positions. The Premium version allows you to display them at 14 different locations. Following are the positions where these checkout sections can be displayed:
272
  9. Locale override settings
273
 
274
  == Changelog ==
275
+ = 1.6.0 =
276
+ * Added WordPress 5.9 compatibility.
277
+ * Added WooCommerce 6.3.1 compatibility.
278
+ * Added new field type "Datetime local".
279
+ * Added new field type "Date".
280
+ * Added new field type "Month".
281
+ * Added new field type "Time".
282
+ * Added new field type "Week".
283
+ * Added new field type "URL".
284
+ * Added new field type "Paragraph".
285
+
286
  = 1.5.3 =
287
  * Added WooCommerce 6.1.0 compatibility.
 
288
 
289
  = 1.5.2 =
290
  * Added WooCommerce 6.0.0 compatibility.