Version Description
- Notice: Plugin ownership change
- Fix: Admin redirect after options reset
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3 to 4.3.1
- LICENSE.txt +0 -339
- assets/img/logo.jpg +0 -0
- includes/admin.php +1844 -1934
- includes/export.php +937 -960
- includes/pickers/di18n/jquery-ui-i18n.js +0 -1646
- includes/pickers/di18n/jquery.ui.datepicker-af.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ar-DZ.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ar.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-az.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-bg.js +0 -24
- includes/pickers/di18n/jquery.ui.datepicker-bs.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ca.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-cs.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-cy-GB.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-da.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-de.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-el.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-en-AU.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-en-GB.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-en-NZ.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-eo.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-es.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-et.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-eu.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-fa.js +0 -59
- includes/pickers/di18n/jquery.ui.datepicker-fi.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-fo.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-fr-CH.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-fr.js +0 -25
- includes/pickers/di18n/jquery.ui.datepicker-gl.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-he.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-hi.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-hr.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-hu.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-hy.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-id.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-is.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-it.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ja.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ka.js +0 -21
- includes/pickers/di18n/jquery.ui.datepicker-kk.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-km.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ko.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-lb.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-lt.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-lv.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-mk.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ml.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ms.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-nl-BE.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-nl.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-no.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-pl.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-pt-BR.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-pt.js +0 -22
- includes/pickers/di18n/jquery.ui.datepicker-rm.js +0 -21
- includes/pickers/di18n/jquery.ui.datepicker-ro.js +0 -26
- includes/pickers/di18n/jquery.ui.datepicker-ru.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-sk.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-sl.js +0 -24
- includes/pickers/di18n/jquery.ui.datepicker-sq.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-sr-SR.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-sr.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-sv.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-ta.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-th.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-tj.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-tr.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-uk.js +0 -24
- includes/pickers/di18n/jquery.ui.datepicker-vi.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-zh-CN.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-zh-HK.js +0 -23
- includes/pickers/di18n/jquery.ui.datepicker-zh-TW.js +0 -23
- includes/pickers/i18n/{jquery.ui.timepicker-pt-BR.js → jquery.ui.timepicker-pt.js} +0 -0
- includes/pickers/jquery.ui.css +0 -1225
- includes/templates/admin/woocheckout-additional.php +3 -3
- includes/templates/admin/woocheckout-billing.php +3 -3
- includes/templates/admin/woocheckout-general-switches.php +2 -5
- includes/templates/admin/woocheckout-general.php +7 -7
- includes/templates/admin/woocheckout-shipping.php +3 -3
- includes/templates/functions/add_wooccmupload.php +1 -1
- includes/templates/functions/billing_wooccmupload.php +1 -1
- includes/templates/functions/shipping_wooccmupload.php +1 -1
- includes/templates/functions/{woocm_editing_wrapper.php → wooccm_editing_wrapper.php} +0 -0
- readme.txt +11 -7
- woocommerce-checkout-manager.php +326 -238
LICENSE.txt
DELETED
@@ -1,339 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
<one line to give the program's name and a brief idea of what it does.>
|
294 |
-
Copyright (C) <year> <name of author>
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type `show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than `show w' and `show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
<signature of Ty Coon>, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
-
Public License instead of this License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/img/logo.jpg
ADDED
Binary file
|
includes/admin.php
CHANGED
@@ -1,1955 +1,1862 @@
|
|
1 |
<?php
|
2 |
-
if(
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
}
|
21 |
|
22 |
// Display admin notice on screen load
|
23 |
-
function wooccm_admin_notice(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
}
|
43 |
|
44 |
// HTML template for admin notice
|
45 |
-
function wooccm_admin_notice_html(
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
<div id="message" class="<?php echo $priority; ?>">
|
62 |
-
|
63 |
-
</div>
|
64 |
-
<?php
|
65 |
-
|
66 |
}
|
67 |
|
68 |
// Grabs the WordPress transient that holds the admin notice and prints it
|
69 |
function wooccm_admin_notice_print() {
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
}
|
79 |
|
80 |
// WordPress Administration menu
|
81 |
function wooccm_admin_menu() {
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
}
|
88 |
-
add_action( 'admin_menu', 'wooccm_admin_menu' );
|
89 |
-
|
90 |
-
function wooccm_admin_enqueue_scripts( $hook_suffix ) {
|
91 |
-
|
92 |
-
if( $hook_suffix == 'toplevel_page_woocommerce-checkout-manager' ) {
|
93 |
-
wp_enqueue_style( 'farbtastic' );
|
94 |
-
// @mod - We need to check that farbtastic exists
|
95 |
-
wp_enqueue_script( 'farbtastic', site_url( '/wp-admin/js/farbtastic.js' ) );
|
96 |
-
wp_enqueue_style( 'wooccm-backend-css', plugins_url( 'includes/pickers/css/backend_css.css', WOOCCM_RELPATH ) );
|
97 |
-
wp_enqueue_script( 'script_wccs', plugins_url( 'includes/templates/js/script_wccs.js', WOOCCM_RELPATH ), array( 'jquery' ), '1.2' );
|
98 |
-
wp_enqueue_script( 'billing_script_wccs', plugins_url( 'includes/templates/js/billing_script_wccs.js', WOOCCM_RELPATH ), array( 'jquery' ), '1.2' );
|
99 |
-
wp_enqueue_script( 'shipping_script_wccs', plugins_url( 'includes/templates/js/shipping_script_wccs.js', WOOCCM_RELPATH ), array( 'jquery' ), '1.2' );
|
100 |
-
if( wp_script_is( 'jquery-ui-sortable', 'queue' ) == false )
|
101 |
-
wp_enqueue_script('jquery-ui-sortable');
|
102 |
-
}
|
103 |
-
if( $hook_suffix === 'woocheckout_page_wooccm-advance-export' ) {
|
104 |
-
wp_enqueue_style( 'export', plugins_url( 'includes/templates/admin/woocheckout-export.css', WOOCCM_RELPATH ) );
|
105 |
-
}
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
|
109 |
// List of action links on the Plugins screen
|
110 |
-
function wooccm_admin_plugin_actions( $links ) {
|
111 |
|
112 |
-
|
113 |
-
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
|
121 |
-
}
|
122 |
|
123 |
function wooccm_deactivate_plugin_conditional() {
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
}
|
132 |
-
add_action( 'admin_init', 'wooccm_deactivate_plugin_conditional' );
|
133 |
|
134 |
-
|
135 |
|
136 |
-
|
137 |
-
echo '<div class="error"><p><strong>' . $message . '</strong></p></div>';
|
138 |
|
|
|
|
|
139 |
}
|
140 |
|
141 |
// Global actions
|
142 |
function wooccm_admin_actions() {
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
}
|
173 |
-
|
174 |
}
|
175 |
|
176 |
// Actions limited to the WooCheckout screen
|
177 |
function wooccm_admin_woocheckout_actions() {
|
178 |
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
}
|
353 |
-
|
354 |
}
|
355 |
|
356 |
-
if(
|
357 |
-
|
|
|
358 |
|
359 |
-
|
360 |
-
|
361 |
|
362 |
-
|
363 |
-
|
364 |
|
365 |
-
|
366 |
-
|
367 |
|
368 |
-
|
|
|
369 |
|
370 |
-
}
|
371 |
}
|
372 |
|
373 |
// WordPress Settings screen for WooCheckout
|
374 |
function wooccm_register_settings() {
|
375 |
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
}
|
381 |
|
382 |
function wooccm_options_page() {
|
383 |
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
<
|
575 |
-
|
576 |
-
|
577 |
-
}
|
578 |
-
echo '
|
579 |
-
<script type="text/javascript" src="'.plugins_url( '/woocommerce/assets/js/jquery-blockui/jquery.blockUI.js' ).'"></script>';
|
580 |
-
echo '
|
581 |
<div class="refreshwooccm">
|
582 |
';
|
583 |
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
// Now display the settings editing screen
|
588 |
-
|
589 |
-
// header
|
590 |
-
?>
|
591 |
-
<h2><?php _e( 'WooCommerce Checkout Manager', 'woocommerce-checkout-manager' ); ?></h2>
|
592 |
-
<div id="content">
|
593 |
-
|
594 |
-
<h2 class="nav-tab-wrapper add_tip_wrap">
|
595 |
-
<a class="nav-tab general-tab nav-tab-active"><?php _e( 'General', 'woocommerce-checkout-manager' ); ?></a>
|
596 |
-
<a class="nav-tab billing-tab"><?php _e( 'Billing', 'woocommerce-checkout-manager' ); ?></a>
|
597 |
-
<a class="nav-tab shipping-tab"><?php _e( 'Shipping', 'woocommerce-checkout-manager' ); ?></a>
|
598 |
-
<a class="nav-tab additional-tab"><?php _e( 'Additional', 'woocommerce-checkout-manager' ); ?></a>
|
599 |
-
<a class="nav-tab star" href="https://wordpress.org/support/view/plugin-reviews/woocommerce-checkout-manager?filter=5" target="_blank">
|
600 |
-
<div id="star-five" title="<?php _e('Like the plugin? Rate it! On WordPress.org', 'woocommerce-checkout-manager' ); ?>">
|
601 |
-
<div class="star-rating">
|
602 |
-
<div class="star star-full"></div>
|
603 |
-
<div class="star star-full"></div>
|
604 |
-
<div class="star star-full"></div>
|
605 |
-
<div class="star star-full"></div>
|
606 |
-
<div class="star star-full"></div>
|
607 |
-
</div>
|
608 |
-
<!-- .star-rating -->
|
609 |
-
</div>
|
610 |
-
<!-- #star-five -->
|
611 |
-
</a>
|
612 |
-
</h2>
|
613 |
-
<!-- .nav-tab-wrapper -->
|
614 |
-
|
615 |
-
<?php do_action('wooccm_run_color_innerpicker'); ?>
|
616 |
-
|
617 |
-
<form name="reset_form" class="reset_form" method="post" action="">
|
618 |
-
<input type="hidden" name="<?php echo esc_attr( $hidden_wccs_reset ); ?>" value="Y">
|
619 |
-
<input type="submit" name="submit" id="wccs_reset_submit" class="button button-hero" value="Reset">
|
620 |
-
</form>
|
621 |
-
<script type="text/javascript">
|
622 |
-
jQuery( '#wccs_reset_submit' ).click( 'click', function() {
|
623 |
-
return window.confirm( '<?php echo esc_js( __( 'Are you sure you wish to reset the settings on this tab for WooCommerce Checkout Manager?', 'woocommerce-checkout-manager' ) ); ?>' );
|
624 |
-
});
|
625 |
-
</script>
|
626 |
|
627 |
-
|
|
|
|
|
|
|
|
|
628 |
|
629 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
|
631 |
-
|
632 |
-
<form name="wooccmform2" method="post" action="options.php" id="frm2">
|
633 |
|
634 |
-
|
|
|
|
|
|
|
635 |
|
636 |
-
|
|
|
|
|
|
|
|
|
637 |
|
638 |
-
|
639 |
|
640 |
-
|
641 |
-
<!-- #frm2 -->
|
642 |
|
643 |
-
|
644 |
-
|
645 |
|
646 |
-
|
647 |
|
648 |
-
|
649 |
|
650 |
-
|
651 |
|
652 |
-
|
653 |
-
|
654 |
|
655 |
-
|
656 |
-
|
657 |
|
658 |
-
|
659 |
|
660 |
-
|
661 |
|
662 |
-
|
663 |
-
<?php require( WOOCCM_PATH.'includes/templates/admin/woocheckout-additional.php' ); ?>
|
664 |
|
665 |
-
|
666 |
-
|
667 |
|
668 |
-
|
669 |
-
|
670 |
|
671 |
-
|
672 |
-
<!-- .wrap -->
|
673 |
|
674 |
-
|
675 |
-
<!-- #content -->
|
676 |
|
677 |
-
|
678 |
-
|
679 |
|
680 |
-
|
|
|
681 |
|
682 |
-
|
683 |
-
|
684 |
-
function wooccm_options_validate( $input ) {
|
685 |
-
|
686 |
-
$detect_error = 0;
|
687 |
-
// translate additional fields
|
688 |
-
if( !empty( $input['buttons'] ) ) {
|
689 |
-
foreach( $input['buttons'] as $i => $btn ) {
|
690 |
-
|
691 |
-
if( function_exists( 'icl_register_string' ) ) {
|
692 |
-
if( !empty($btn['label']) ) {
|
693 |
-
icl_register_string( 'WooCommerce Checkout Manager', $btn['label'], $btn['label'] );
|
694 |
-
}
|
695 |
-
if( !empty($btn['placeholder']) ) {
|
696 |
-
icl_register_string( 'WooCommerce Checkout Manager', $btn['placeholder'], $btn['placeholder'] );
|
697 |
-
}
|
698 |
-
|
699 |
-
if( !empty($btn['option_array']) ) {
|
700 |
-
$mysecureop = explode( '||', $btn['option_array']);
|
701 |
-
foreach( $mysecureop as $one ) {
|
702 |
-
icl_register_string( 'WooCommerce Checkout Manager', $one, $one );
|
703 |
-
}
|
704 |
-
}
|
705 |
-
}
|
706 |
|
707 |
-
|
708 |
-
|
709 |
-
add_settings_error(
|
710 |
-
'wooccm_settings_errors',
|
711 |
-
esc_attr( 'settings_updated' ),
|
712 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager requires you to not have values in both role options. OK.', 'woocommerce-checkout-manager' ),
|
713 |
-
'error'
|
714 |
-
);
|
715 |
-
}
|
716 |
-
|
717 |
-
if( !empty($btn['single_p']) && !empty($btn['single_px']) ) {
|
718 |
-
$input['buttons'][$i]['single_px'] = '';
|
719 |
-
add_settings_error(
|
720 |
-
'wooccm_settings_errors',
|
721 |
-
esc_attr( 'settings_updated' ),
|
722 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager requires you to not have values in both hidden product options. OK.', 'woocommerce-checkout-manager' ),
|
723 |
-
'error'
|
724 |
-
);
|
725 |
-
}
|
726 |
-
|
727 |
-
if( !empty($btn['single_p_cat']) && !empty($btn['single_px_cat']) ) {
|
728 |
-
$input['buttons'][$i]['single_px_cat'] = '';
|
729 |
-
add_settings_error(
|
730 |
-
'wooccm_settings_errors',
|
731 |
-
esc_attr( 'settings_updated' ),
|
732 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager requires you to not have values in both hidden category options. OK.', 'woocommerce-checkout-manager' ),
|
733 |
-
'error'
|
734 |
-
);
|
735 |
-
}
|
736 |
-
|
737 |
-
if( empty( $btn['cow'] ) && empty( $btn['label'] ) && empty( $btn['placeholder'] ) ) {
|
738 |
-
unset( $input['buttons'][$i] );
|
739 |
-
|
740 |
-
if( $i != 999 ) {
|
741 |
-
$detect_error++;
|
742 |
-
$fieldnum = $i + 1;
|
743 |
-
add_settings_error(
|
744 |
-
'wooccm_settings_errors',
|
745 |
-
esc_attr( 'settings_updated' ),
|
746 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager removed Additional field #'.$fieldnum.' because no Label or Placeholder name was provided.', 'woocommerce-checkout-manager' ),
|
747 |
-
'error'
|
748 |
-
);
|
749 |
-
}
|
750 |
-
}
|
751 |
-
|
752 |
-
if ( empty( $btn['cow'] ) && (!empty( $btn['label'] ) || !empty( $btn['placeholder'] )) ) {
|
753 |
-
$newNum = $i + 1;
|
754 |
-
if( wooccm_mul_array( 'myfield'.$newNum , $input['buttons'] ) ) {
|
755 |
-
$input['buttons'][$i]['cow'] = 'myfield'.$newNum.'c';
|
756 |
-
} else {
|
757 |
-
$input['buttons'][$i]['cow'] = 'myfield'.$newNum;
|
758 |
-
}
|
759 |
-
}
|
760 |
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
if( $i != 999 ) {
|
765 |
-
$detect_error++;
|
766 |
-
$fieldnum = $i + 1;
|
767 |
-
add_settings_error(
|
768 |
-
'wooccm_settings_errors',
|
769 |
-
esc_attr( 'settings_updated' ),
|
770 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager removed Additional field #'.$fieldnum.' because no Label or Placeholder name was provided.', 'woocommerce-checkout-manager' ),
|
771 |
-
'error'
|
772 |
-
);
|
773 |
-
}
|
774 |
-
}
|
775 |
|
776 |
-
|
777 |
-
|
778 |
-
if( $detect_error == 0 ) {
|
779 |
-
add_settings_error(
|
780 |
-
'wooccm_settings_errors',
|
781 |
-
esc_attr( 'settings_updated' ),
|
782 |
-
__( 'Your changes have been saved.', 'woocommerce-checkout-manager' ),
|
783 |
-
'updated'
|
784 |
-
);
|
785 |
-
}
|
786 |
-
return $input;
|
787 |
|
|
|
788 |
}
|
789 |
|
790 |
-
function
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
'wooccm_settings_errors',
|
875 |
-
esc_attr( 'settings_updated' ),
|
876 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager removed Shipping field #'.$fieldnum.' because no Label or Placeholder name was provided.', 'woocommerce-checkout-manager' ),
|
877 |
-
'error'
|
878 |
-
);
|
879 |
-
}
|
880 |
-
}
|
881 |
-
|
882 |
-
}
|
883 |
-
}
|
884 |
-
|
885 |
-
if( $detect_error == 0 ) {
|
886 |
-
add_settings_error(
|
887 |
-
'wooccm_settings_errors',
|
888 |
-
esc_attr( 'settings_updated' ),
|
889 |
-
__( 'Your changes have been saved.', 'woocommerce-checkout-manager' ),
|
890 |
-
'updated'
|
891 |
-
);
|
892 |
-
}
|
893 |
-
|
894 |
-
return $input;
|
895 |
-
|
896 |
}
|
897 |
|
898 |
-
function
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
esc_attr( 'settings_updated' ),
|
986 |
-
__( 'Sorry! An error occurred. WooCommerce Checkout Manager removed Billing field #'.$fieldnum.' because no Label or Placeholder name was provided.', 'woocommerce-checkout-manager' ),
|
987 |
-
'error'
|
988 |
-
);
|
989 |
-
}
|
990 |
-
}
|
991 |
-
|
992 |
-
}
|
993 |
-
}
|
994 |
-
|
995 |
-
if( $detect_error == 0 ) {
|
996 |
-
add_settings_error(
|
997 |
-
'wooccm_settings_errors',
|
998 |
-
esc_attr( 'settings_updated' ),
|
999 |
-
__( 'Your changes have been saved.', 'woocommerce-checkout-manager' ),
|
1000 |
-
'updated'
|
1001 |
-
);
|
1002 |
-
}
|
1003 |
-
|
1004 |
-
return $input;
|
1005 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1006 |
}
|
1007 |
|
1008 |
function wooccm_admin_notices() {
|
1009 |
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
// @mod - Removed as it tends to blow people Options up...
|
1015 |
-
// Data update from legacy (<3.0)
|
1016 |
-
// wooccm_admin_updater_notice();
|
1017 |
|
1018 |
-
|
1019 |
-
|
|
|
|
|
|
|
1020 |
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
<p class="submit">
|
1030 |
-
<a href="' . $beta_url . '" target="_blank" class="button-primary button-hero">' . __(
|
1031 |
-
<a href="' . $support_url . '" target="_blank" class="button-secondary button-hero">' . __(
|
1032 |
</p>';
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
}
|
1037 |
|
1038 |
function wooccm_admin_updater_notice() {
|
1039 |
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
<
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
}
|
1134 |
-
|
1135 |
-
}
|
1136 |
-
|
1137 |
}
|
1138 |
|
1139 |
// Additional details
|
1140 |
-
function wooccm_admin_edit_order_additional_details(
|
1141 |
|
1142 |
-
|
1143 |
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
<p> </p>
|
1155 |
-
<h4>' . __(
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
<p id="additional_' . $btn['cow'] . '" class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1168 |
-
<strong title="' . sprintf(
|
1169 |
-
'.wooccm_wpml_string(
|
1170 |
</p>
|
1171 |
<!-- .form-field-type-... -->';
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
<h4>' .wooccm_wpml_string(
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
<p class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1194 |
-
<strong title="' . sprintf(
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
</p>
|
1213 |
<!-- .form-field-type-multiselect .form-field-type-multicheckbox -->';
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
<p class="form-field form-field-wide form-field-type-wooccmupload">
|
1230 |
-
<strong>'.wooccm_wpml_string(
|
1231 |
-
if(
|
1232 |
-
|
1233 |
-
|
1234 |
-
}
|
1235 |
-
|
1236 |
</p>' . "\n";
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
<!-- .form-field-type-wooccmupload -->';
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
}
|
1252 |
-
|
1253 |
}
|
1254 |
|
1255 |
// Billing details
|
1256 |
-
function wooccm_admin_edit_order_billing_details(
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
<p id="billing_' . $btn['cow'] . '" class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1291 |
-
<strong title="' . sprintf(
|
1292 |
-
'.wooccm_wpml_string(
|
1293 |
</p>
|
1294 |
<!-- .form-field-type-... -->';
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
<h4>' .wooccm_wpml_string(
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
<p class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1318 |
-
<strong title="' . sprintf(
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
</p>
|
1339 |
<!-- .form-field-type-multiselect .form-field-type-multicheckbox -->';
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
<p class="form-field form-field-wide form-field-type-wooccmupload">
|
1357 |
-
<strong>'.wooccm_wpml_string(
|
1358 |
-
if(
|
1359 |
-
|
1360 |
-
|
1361 |
-
}
|
1362 |
-
|
1363 |
</p>' . "\n";
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
<!-- .form-field-type-wooccmupload -->';
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
}
|
1380 |
-
|
1381 |
}
|
1382 |
|
1383 |
// Shipping details
|
1384 |
-
function wooccm_admin_edit_order_shipping_details(
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
<p id="shipping_' . $btn['cow'] . '" class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1417 |
-
<strong title="' . sprintf(
|
1418 |
-
'.wooccm_wpml_string(
|
1419 |
</p>
|
1420 |
<!-- .form-field-type-... -->';
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
<h4>' .wooccm_wpml_string(
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
<p class="form-field form-field-wide form-field-type-' . $btn['type'] . '">
|
1442 |
-
<strong title="' . sprintf(
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
</p>
|
1463 |
<!-- .form-field-type-multiselect .form-field-type-multicheckbox -->';
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
<p class="form-field form-field-wide form-field-type-wooccmupload">
|
1481 |
-
<strong>'.wooccm_wpml_string(
|
1482 |
-
|
1483 |
</p>' . "\n";
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
<!-- .form-field-type-wooccmupload -->';
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
}
|
1503 |
-
|
1504 |
}
|
1505 |
|
1506 |
function wooccm_validate_upload_process_customer() {
|
1507 |
|
1508 |
-
|
1509 |
-
|
1510 |
-
if( !empty($options['checkness']['enable_file_upload'])) {
|
1511 |
-
return true;
|
1512 |
-
} else {
|
1513 |
-
return false;
|
1514 |
-
}
|
1515 |
|
|
|
|
|
|
|
|
|
|
|
1516 |
}
|
1517 |
|
1518 |
// Check if the customer can upload images
|
1519 |
// @mod - This disables the Order Uploaded Files meta box even for Administrators...?
|
1520 |
-
if(
|
1521 |
-
|
1522 |
-
|
1523 |
}
|
1524 |
|
1525 |
function wooccm_admin_edit_order_metaboxes() {
|
1526 |
|
1527 |
-
|
1528 |
-
|
1529 |
-
$post_type = 'shop_order';
|
1530 |
-
add_meta_box( 'woocommerce-order-files', __( 'Order Uploaded Files', 'woocommerce-checkout-manager' ), 'wooccm_admin_edit_order_uploaded_files_meta_box', $post_type, 'normal', 'default' );
|
1531 |
|
|
|
|
|
1532 |
}
|
1533 |
|
1534 |
-
function wooccm_admin_edit_order_uploaded_files_meta_box(
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
<
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
<tr class="image wccm_filesli wccmv_' . esc_attr( $attachment_id ) . '">
|
1675 |
<script type="text/javascript">
|
1676 |
jQuery(document).ready(function(){
|
1677 |
-
jQuery(".wccmx_' . esc_attr(
|
1678 |
|
1679 |
-
jQuery(".wccmv_' . esc_attr(
|
1680 |
-
jQuery("#product_image_gallery").val(jQuery("#product_image_gallery").val().replace("'.esc_attr(
|
1681 |
|
1682 |
});
|
1683 |
});
|
1684 |
</script>
|
1685 |
<td>' . $attachment_id . '</td>
|
1686 |
-
<td>' . wp_get_attachment_link(
|
1687 |
-
<td>' . wp_get_attachment_link(
|
1688 |
<td>';
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
<td>' . strtoupper(
|
1696 |
<td class="column-actions" nowrap>
|
1697 |
-
<a href="' . $image_attributes2[0] . '" target="_blank" class="button">' . __(
|
1698 |
-
<a class="delete tips wccm_delete wccmx_' . esc_attr(
|
1699 |
</td>
|
1700 |
</tr>
|
1701 |
';
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
echo '
|
1706 |
<tr>
|
1707 |
-
<td colspan="6" style="text-align:left;">' . __(
|
1708 |
</tr>';
|
1709 |
-
|
1710 |
-
?>
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|