Version Description
WPML bug fixes 3
=
Download this release
Release Info
| Developer | Emark |
| Plugin | |
| Version | 3.6.4 |
| Comparing to | |
| See all releases | |
Code changes from version 3.6.3 to 3.6.4
languages/woocommerce-checkout-manager-zh_TW.mo
ADDED
|
Binary file
|
languages/woocommerce-checkout-manager-zh_TW.po
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: woocommerce-checkout-manager\n"
|
| 4 |
+
"POT-Creation-Date: 2013-09-21 15:01-0400\n"
|
| 5 |
+
"PO-Revision-Date: 2014-07-24 16:39+0800\n"
|
| 6 |
+
"Last-Translator: Sid <sidlo@tiscservice.com>\n"
|
| 7 |
+
"Language-Team: Sid <blueskysid@gmail.com>\n"
|
| 8 |
+
"MIME-Version: 1.0\n"
|
| 9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
+
"X-Generator: Poedit 1.6.7\n"
|
| 12 |
+
"X-Poedit-KeywordsList: _;__;_e;esc_attr_e\n"
|
| 13 |
+
"X-Poedit-Basepath: ../\n"
|
| 14 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
| 15 |
+
"Language: zh_Hant_TW\n"
|
| 16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-SearchPath-0: .\n"
|
| 18 |
+
|
| 19 |
+
#: woocommerce-checkout-manager.php:41
|
| 20 |
+
msgid "Example Label"
|
| 21 |
+
msgstr "欄位欄位"
|
| 22 |
+
|
| 23 |
+
#: woocommerce-checkout-manager.php:42
|
| 24 |
+
msgid "Example placeholder"
|
| 25 |
+
msgstr "欄位輸入提示範例"
|
| 26 |
+
|
| 27 |
+
#: woocommerce-checkout-manager.php:43
|
| 28 |
+
msgid "myfld1"
|
| 29 |
+
msgstr "myfld1"
|
| 30 |
+
|
| 31 |
+
#: woocommerce-checkout-manager.php:44
|
| 32 |
+
msgid "option 1"
|
| 33 |
+
msgstr "選項 1"
|
| 34 |
+
|
| 35 |
+
#: woocommerce-checkout-manager.php:45
|
| 36 |
+
msgid "option 2"
|
| 37 |
+
msgstr "選項 2"
|
| 38 |
+
|
| 39 |
+
#: woocommerce-checkout-manager.php:84 woocommerce-checkout-manager.php:134
|
| 40 |
+
msgid "WooCommerce Checkout Manager"
|
| 41 |
+
msgstr "WooCommerce結帳管理員"
|
| 42 |
+
|
| 43 |
+
#: woocommerce-checkout-manager.php:99
|
| 44 |
+
msgid "You do not have sufficient permissions to access this page."
|
| 45 |
+
msgstr "您沒有足夠權限連線至此頁面。"
|
| 46 |
+
|
| 47 |
+
#: woocommerce-checkout-manager.php:117
|
| 48 |
+
msgid "settings saved."
|
| 49 |
+
msgstr "已儲存設定。"
|
| 50 |
+
|
| 51 |
+
#: woocommerce-checkout-manager.php:142
|
| 52 |
+
msgid "Found this Plugin Useful? Why not Buy me a "
|
| 53 |
+
msgstr "這個外掛很棒吧?請我喝一杯"
|
| 54 |
+
|
| 55 |
+
#: woocommerce-checkout-manager.php:142
|
| 56 |
+
msgid "beer"
|
| 57 |
+
msgstr "啤酒"
|
| 58 |
+
|
| 59 |
+
#: woocommerce-checkout-manager.php:142
|
| 60 |
+
msgid "to say thanks for the awesome coding."
|
| 61 |
+
msgstr "好感謝我的辛苦。"
|
| 62 |
+
|
| 63 |
+
#: woocommerce-checkout-manager.php:159 woocommerce-checkout-manager.php:357
|
| 64 |
+
msgid "Field Name"
|
| 65 |
+
msgstr "欄位名稱"
|
| 66 |
+
|
| 67 |
+
#: woocommerce-checkout-manager.php:160 woocommerce-checkout-manager.php:358
|
| 68 |
+
msgid "Remove Field Entirely"
|
| 69 |
+
msgstr "完全移除欄位"
|
| 70 |
+
|
| 71 |
+
#: woocommerce-checkout-manager.php:161 woocommerce-checkout-manager.php:359
|
| 72 |
+
msgid "Remove Required Attribute"
|
| 73 |
+
msgstr "移除是否為必要欄位"
|
| 74 |
+
|
| 75 |
+
#: woocommerce-checkout-manager.php:162 woocommerce-checkout-manager.php:360
|
| 76 |
+
msgid "Replace Label Name"
|
| 77 |
+
msgstr "替換欄位名稱"
|
| 78 |
+
|
| 79 |
+
#: woocommerce-checkout-manager.php:163 woocommerce-checkout-manager.php:361
|
| 80 |
+
msgid "Replace Placeholder Name"
|
| 81 |
+
msgstr "替換輸入提示內容"
|
| 82 |
+
|
| 83 |
+
#: woocommerce-checkout-manager.php:171 woocommerce-checkout-manager.php:369
|
| 84 |
+
msgid "Select All Check boxes in this Column"
|
| 85 |
+
msgstr "勾選此欄位所有項目"
|
| 86 |
+
|
| 87 |
+
#: woocommerce-checkout-manager.php:182 woocommerce-checkout-manager.php:381
|
| 88 |
+
msgid "First Name"
|
| 89 |
+
msgstr "名字"
|
| 90 |
+
|
| 91 |
+
#: woocommerce-checkout-manager.php:199 woocommerce-checkout-manager.php:398
|
| 92 |
+
msgid "Last Name"
|
| 93 |
+
msgstr "姓氏"
|
| 94 |
+
|
| 95 |
+
#: woocommerce-checkout-manager.php:214 woocommerce-checkout-manager.php:429
|
| 96 |
+
msgid "Country"
|
| 97 |
+
msgstr "國家"
|
| 98 |
+
|
| 99 |
+
#: woocommerce-checkout-manager.php:227
|
| 100 |
+
msgid "Phone"
|
| 101 |
+
msgstr "電話"
|
| 102 |
+
|
| 103 |
+
#: woocommerce-checkout-manager.php:242
|
| 104 |
+
msgid "Email"
|
| 105 |
+
msgstr "Email"
|
| 106 |
+
|
| 107 |
+
#: woocommerce-checkout-manager.php:258 woocommerce-checkout-manager.php:413
|
| 108 |
+
msgid "Company"
|
| 109 |
+
msgstr "公司"
|
| 110 |
+
|
| 111 |
+
#: woocommerce-checkout-manager.php:275
|
| 112 |
+
msgid "Order Comments"
|
| 113 |
+
msgstr "購買備註"
|
| 114 |
+
|
| 115 |
+
#: woocommerce-checkout-manager.php:291 woocommerce-checkout-manager.php:444
|
| 116 |
+
msgid "Address 1"
|
| 117 |
+
msgstr "地址 1"
|
| 118 |
+
|
| 119 |
+
#: woocommerce-checkout-manager.php:302 woocommerce-checkout-manager.php:456
|
| 120 |
+
msgid "Address 2"
|
| 121 |
+
msgstr "地址 2"
|
| 122 |
+
|
| 123 |
+
#: woocommerce-checkout-manager.php:313 woocommerce-checkout-manager.php:468
|
| 124 |
+
msgid "City"
|
| 125 |
+
msgstr "城市"
|
| 126 |
+
|
| 127 |
+
#: woocommerce-checkout-manager.php:324 woocommerce-checkout-manager.php:480
|
| 128 |
+
msgid "Postal Code"
|
| 129 |
+
msgstr "郵遞區號"
|
| 130 |
+
|
| 131 |
+
#: woocommerce-checkout-manager.php:337 woocommerce-checkout-manager.php:493
|
| 132 |
+
msgid "State"
|
| 133 |
+
msgstr "州或省份"
|
| 134 |
+
|
| 135 |
+
#: woocommerce-checkout-manager.php:346
|
| 136 |
+
msgid "Save Changes"
|
| 137 |
+
msgstr "儲存變更"
|
| 138 |
+
|
| 139 |
+
#: woocommerce-checkout-manager.php:348
|
| 140 |
+
msgid "Billing Section"
|
| 141 |
+
msgstr "購買資訊區塊"
|
| 142 |
+
|
| 143 |
+
#: woocommerce-checkout-manager.php:503
|
| 144 |
+
msgid "Shipping Section"
|
| 145 |
+
msgstr "運送資訊區塊"
|
| 146 |
+
|
| 147 |
+
#: woocommerce-checkout-manager.php:507
|
| 148 |
+
msgid "PRO VERSION"
|
| 149 |
+
msgstr "專業版"
|
| 150 |
+
|
| 151 |
+
#: woocommerce-checkout-manager.php:507
|
| 152 |
+
msgid ""
|
| 153 |
+
"- now includes text/ html swapper (change billing address text ++), checkbox "
|
| 154 |
+
"(input own two options), select up to ten(10) more options and more!"
|
| 155 |
+
msgstr ""
|
| 156 |
+
"- 包涵有純文字/ html交換技術 (改變購買地址文字++)、勾選方塊(自訂兩個選"
|
| 157 |
+
"項),可輸入超過 10個或更多的選項!"
|
| 158 |
+
|
| 159 |
+
#: woocommerce-checkout-manager.php:511
|
| 160 |
+
msgid "Add New Field Section"
|
| 161 |
+
msgstr "新增區塊欄位"
|
| 162 |
+
|
| 163 |
+
#: woocommerce-checkout-manager.php:518
|
| 164 |
+
msgid "Enable Title - Additional information"
|
| 165 |
+
msgstr "啟動標題 - 額外資訊"
|
| 166 |
+
|
| 167 |
+
#: woocommerce-checkout-manager.php:522
|
| 168 |
+
msgid "Checkout Page"
|
| 169 |
+
msgstr "結帳頁面"
|
| 170 |
+
|
| 171 |
+
#: woocommerce-checkout-manager.php:527
|
| 172 |
+
msgid "Checkout Details and Email Receipt"
|
| 173 |
+
msgstr "結帳資訊和 Email回函"
|
| 174 |
+
|
| 175 |
+
#: woocommerce-checkout-manager.php:590 woocommerce-checkout-manager.php:619
|
| 176 |
+
#: woocommerce-checkout-manager.php:666
|
| 177 |
+
msgid "Change order"
|
| 178 |
+
msgstr "變更支付"
|
| 179 |
+
|
| 180 |
+
#: woocommerce-checkout-manager.php:591
|
| 181 |
+
msgid "Label"
|
| 182 |
+
msgstr "欄位"
|
| 183 |
+
|
| 184 |
+
#: woocommerce-checkout-manager.php:592
|
| 185 |
+
msgid "Placeholder"
|
| 186 |
+
msgstr "輸入提示"
|
| 187 |
+
|
| 188 |
+
#: woocommerce-checkout-manager.php:593
|
| 189 |
+
msgid "Option A"
|
| 190 |
+
msgstr "選項 A"
|
| 191 |
+
|
| 192 |
+
#: woocommerce-checkout-manager.php:594
|
| 193 |
+
msgid "Options B"
|
| 194 |
+
msgstr "選項 B"
|
| 195 |
+
|
| 196 |
+
#: woocommerce-checkout-manager.php:595
|
| 197 |
+
msgid "Choose Type"
|
| 198 |
+
msgstr "選擇類型"
|
| 199 |
+
|
| 200 |
+
#: woocommerce-checkout-manager.php:596
|
| 201 |
+
msgid "Abbreviation"
|
| 202 |
+
msgstr "縮寫"
|
| 203 |
+
|
| 204 |
+
#: woocommerce-checkout-manager.php:597
|
| 205 |
+
msgid "Required Attribute"
|
| 206 |
+
msgstr "必要屬性"
|
| 207 |
+
|
| 208 |
+
#: woocommerce-checkout-manager.php:598
|
| 209 |
+
msgid "Remove button"
|
| 210 |
+
msgstr "移除按鈕"
|
| 211 |
+
|
| 212 |
+
#: woocommerce-checkout-manager.php:656 woocommerce-checkout-manager.php:698
|
| 213 |
+
msgid "Remove Field"
|
| 214 |
+
msgstr "移除欄位"
|
| 215 |
+
|
| 216 |
+
#: woocommerce-checkout-manager.php:670
|
| 217 |
+
msgid "Label of the New Field"
|
| 218 |
+
msgstr "新區塊欄位"
|
| 219 |
+
|
| 220 |
+
#: woocommerce-checkout-manager.php:673
|
| 221 |
+
msgid "Placeholder - Preview of Data to Input"
|
| 222 |
+
msgstr "輸入提示 - 預覽或提示資料輸入"
|
| 223 |
+
|
| 224 |
+
#: woocommerce-checkout-manager.php:676
|
| 225 |
+
msgid "Insert Option A"
|
| 226 |
+
msgstr "插入選項 A"
|
| 227 |
+
|
| 228 |
+
#: woocommerce-checkout-manager.php:679
|
| 229 |
+
msgid "Insert Option B"
|
| 230 |
+
msgstr "插入選項 B"
|
| 231 |
+
|
| 232 |
+
#: woocommerce-checkout-manager.php:692
|
| 233 |
+
msgid "Abbreviation (No spaces)"
|
| 234 |
+
msgstr "縮寫(無空格)"
|
| 235 |
+
|
| 236 |
+
#: woocommerce-checkout-manager.php:695
|
| 237 |
+
msgid "Add/Remove Required Attribute"
|
| 238 |
+
msgstr "新增/移除必要屬性"
|
| 239 |
+
|
| 240 |
+
#: woocommerce-checkout-manager.php:706
|
| 241 |
+
msgid "+ Add New Field"
|
| 242 |
+
msgstr "+ 新增欄位"
|
| 243 |
+
|
| 244 |
+
#: woocommerce-checkout-manager.php:719
|
| 245 |
+
msgid "Settings"
|
| 246 |
+
msgstr "設定"
|
| 247 |
+
|
| 248 |
+
#: woocommerce-checkout-manager.php:720
|
| 249 |
+
msgid "Support"
|
| 250 |
+
msgstr "支援"
|
| 251 |
+
|
| 252 |
+
#: woocommerce-checkout-manager.php:1017 woocommerce-checkout-manager.php:1160
|
| 253 |
+
#: woocommerce-checkout-manager.php:1220
|
| 254 |
+
msgid "Additional information"
|
| 255 |
+
msgstr "額外資訊"
|
| 256 |
+
|
| 257 |
+
#: woocommerce-checkout-manager.php:1060
|
| 258 |
+
msgid "Select below"
|
| 259 |
+
msgstr "以下選擇"
|
| 260 |
+
|
| 261 |
+
#: woocommerce-checkout-manager.php:1179
|
| 262 |
+
msgid "is a required field"
|
| 263 |
+
msgstr "是必要欄位"
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
|
| 2 |
Contributors: Emark
|
| 3 |
Donate link: http://www.trottyzone.com/donation/
|
| 4 |
Tags: woocommerce, checkout settings, remove fields, shipping, order, fields, checkout page, checkout field, checkout manager, required remove, woocommerce checkout manager, checkout, checkout field editor, field editor, woocommerce custom checkout options , custom checkout, checkout option, field, payment, sell, buy, pay, tax, notice, re-order, order, new field, save field, manager, options, field editor
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 4.0
|
| 7 |
-
Stable tag: 3.6.
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
Manages WooCommerce Checkout
|
|
@@ -116,6 +116,7 @@ This is a WooCommerce extension plugin that targets the checkout processes in wh
|
|
| 116 |
* EUROPEAN PORTUGUESE
|
| 117 |
* BRAZILIAN PORTUGUESE
|
| 118 |
* BULGARIAN by Ivo Minchev
|
|
|
|
| 119 |
|
| 120 |
|
| 121 |
Would you like this plugin translated in your own language? or Perhaps help us translate?
|
|
@@ -294,6 +295,11 @@ WPML bug fix
|
|
| 294 |
= 3.6.3 =
|
| 295 |
WPML bug fix 2 (translation for e-mails)
|
| 296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
== Changelog ==
|
| 298 |
= 1.0 =
|
| 299 |
Initial
|
|
@@ -405,4 +411,7 @@ Compatibility with 2.1.7 WooCommerce && WPML
|
|
| 405 |
WPML bug fix
|
| 406 |
|
| 407 |
= 3.6.3 =
|
| 408 |
-
WPML bug fix 2 (translation for e-mails)
|
|
|
|
|
|
|
|
|
| 1 |
+
=== WooCommerce Checkout Manager ===
|
| 2 |
Contributors: Emark
|
| 3 |
Donate link: http://www.trottyzone.com/donation/
|
| 4 |
Tags: woocommerce, checkout settings, remove fields, shipping, order, fields, checkout page, checkout field, checkout manager, required remove, woocommerce checkout manager, checkout, checkout field editor, field editor, woocommerce custom checkout options , custom checkout, checkout option, field, payment, sell, buy, pay, tax, notice, re-order, order, new field, save field, manager, options, field editor
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 4.0
|
| 7 |
+
Stable tag: 3.6.4
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
Manages WooCommerce Checkout
|
| 116 |
* EUROPEAN PORTUGUESE
|
| 117 |
* BRAZILIAN PORTUGUESE
|
| 118 |
* BULGARIAN by Ivo Minchev
|
| 119 |
+
* CHINESE by Sid Lo
|
| 120 |
|
| 121 |
|
| 122 |
Would you like this plugin translated in your own language? or Perhaps help us translate?
|
| 295 |
= 3.6.3 =
|
| 296 |
WPML bug fix 2 (translation for e-mails)
|
| 297 |
|
| 298 |
+
= 3.6.4 =
|
| 299 |
+
WPML bug fixes 3
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
== Changelog ==
|
| 304 |
= 1.0 =
|
| 305 |
Initial
|
| 411 |
WPML bug fix
|
| 412 |
|
| 413 |
= 3.6.3 =
|
| 414 |
+
WPML bug fix 2 (translation for e-mails)
|
| 415 |
+
|
| 416 |
+
= 3.6.4 =
|
| 417 |
+
WPML bug fixes 3
|
woocommerce-checkout-manager.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: WooCommerce Checkout Manager
|
| 4 |
Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
|
| 5 |
Description: Manages WooCommerce Checkout fields
|
| 6 |
-
Version: 3.6.
|
| 7 |
Author: Ephrain Marchan
|
| 8 |
Author URI: http://www.trottyzone.com
|
| 9 |
License: GPLv2 or later
|
|
@@ -25,8 +25,8 @@ if ( ! defined( 'ABSPATH' ) ) die();
|
|
| 25 |
register_activation_hook( __FILE__, 'wccs_install' );
|
| 26 |
load_plugin_textdomain('woocommerce-checkout-manager', false, dirname(plugin_basename(__FILE__)) . '/languages/');
|
| 27 |
function wccs_install() {
|
| 28 |
-
|
| 29 |
-
|
| 30 |
'placeholder' => __( 'Example placeholder', 'woocommerce-checkout-manager' ),
|
| 31 |
'cow' => __('myfld1', 'woocommerce-checkout-manager'),
|
| 32 |
'option_a' => __('option 1', 'woocommerce-checkout-manager'),
|
|
@@ -50,7 +50,7 @@ add_action( 'admin_init', 'wccs_register_setting' );
|
|
| 50 |
} else { // non-admin enqueues, actions, and filters
|
| 51 |
// hook to get option values and dynamically render css to support the tab classes
|
| 52 |
wp_enqueue_script('jquery-ui-datepicker');
|
| 53 |
-
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
|
| 54 |
}
|
| 55 |
// action function for above hook
|
| 56 |
function wccs_admin_menu() {
|
|
@@ -138,8 +138,8 @@ endif;
|
|
| 138 |
<tr>
|
| 139 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 140 |
<td><strong><?php _e('Select All Check boxes in this Column', 'woocommerce-checkout-manager'); ?></strong></td>
|
| 141 |
-
<td><input name="wccs_settings[checkness][select_all_rm]" type="checkbox" id="select_all_rm" value="1" <?php
|
| 142 |
-
|
| 143 |
<td></td>
|
| 144 |
<td></td>
|
| 145 |
</tr>
|
|
@@ -148,9 +148,11 @@ endif;
|
|
| 148 |
<tr>
|
| 149 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 150 |
<td><?php _e('First Name', 'woocommerce-checkout-manager'); ?></td>
|
| 151 |
-
<td><input name="wccs_settings[checkness][wccs_opt_1]" type="checkbox" class="rm" value="1"
|
| 152 |
-
|
| 153 |
-
<td><input name="wccs_settings[checkness][wccs_rq_1]" type="checkbox" class="rq" value="1" <?php
|
|
|
|
|
|
|
| 154 |
<td><input type="text" name="wccs_settings[replace][label]"
|
| 155 |
value="<?php echo esc_attr( $options['replace']['label'] ); ?>" /></td>
|
| 156 |
<td><input type="text" name="wccs_settings[replace][placeholder]"
|
|
@@ -161,8 +163,8 @@ endif;
|
|
| 161 |
<tr>
|
| 162 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 163 |
<td><?php _e('Last Name', 'woocommerce-checkout-manager'); ?></td>
|
| 164 |
-
<td><input name="wccs_settings[checkness][wccs_opt_2]" type="checkbox" class="rm" value="1" <?php
|
| 165 |
-
<td><input name="wccs_settings[checkness][wccs_rq_2]" type="checkbox" class="rq" value="1" <?php
|
| 166 |
<td><input type="text" name="wccs_settings[replace][label1]"
|
| 167 |
value="<?php echo esc_attr( $options['replace']['label1'] ); ?>" /></td>
|
| 168 |
<td><input type="text" name="wccs_settings[replace][placeholder1]"
|
|
@@ -173,19 +175,19 @@ endif;
|
|
| 173 |
<tr>
|
| 174 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 175 |
<td><?php _e('Country', 'woocommerce-checkout-manager'); ?></td>
|
| 176 |
-
<td><input name="wccs_settings[checkness][wccs_opt_8]" type="checkbox" class="rm" value="1" <?php
|
| 177 |
-
<td><input name="wccs_settings[checkness][wccs_rq_8]" type="checkbox" class="rq" value="1" <?php
|
| 178 |
-
<td><input type="text" name="wccs_settings[replace][label2]"
|
| 179 |
value="<?php echo esc_attr( $options['replace']['label2'] ); ?>" /></td>
|
| 180 |
-
<td></td>
|
| 181 |
</tr>
|
| 182 |
</tbody>
|
| 183 |
<tbody>
|
| 184 |
<tr>
|
| 185 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 186 |
<td><?php _e('Phone', 'woocommerce-checkout-manager'); ?></td>
|
| 187 |
-
<td><input name="wccs_settings[checkness][wccs_opt_10]" type="checkbox" class="rm" value="1" <?php
|
| 188 |
-
<td><input name="wccs_settings[checkness][wccs_rq_10]" type="checkbox" class="rq" value="1" <?php
|
| 189 |
<td><input type="text" name="wccs_settings[replace][label3]"
|
| 190 |
value="<?php echo esc_attr( $options['replace']['label3'] ); ?>" /></td>
|
| 191 |
<td><input type="text" name="wccs_settings[replace][placeholder3]"
|
|
@@ -196,8 +198,8 @@ endif;
|
|
| 196 |
<tr>
|
| 197 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 198 |
<td><?php _e('Email', 'woocommerce-checkout-manager'); ?></td>
|
| 199 |
-
<td><input name="wccs_settings[checkness][wccs_opt_11]" type="checkbox" class="rm" value="1" <?php
|
| 200 |
-
<td><input name="wccs_settings[checkness][wccs_rq_11]" type="checkbox" class="rq" value="1" <?php
|
| 201 |
<td><input type="text" name="wccs_settings[replace][label4]"
|
| 202 |
value="<?php echo esc_attr( $options['replace']['label4'] ); ?>" /></td>
|
| 203 |
<td><input type="text" name="wccs_settings[replace][placeholder4]"
|
|
@@ -208,7 +210,7 @@ endif;
|
|
| 208 |
<tr>
|
| 209 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 210 |
<td><?php _e('Company', 'woocommerce-checkout-manager'); ?></td>
|
| 211 |
-
<td><input name="wccs_settings[checkness][wccs_opt_3]" type="checkbox" class="rm" value="1" <?php
|
| 212 |
<td></td>
|
| 213 |
<td><input type="text" name="wccs_settings[replace][label5]"
|
| 214 |
value="<?php echo esc_attr( $options['replace']['label5'] ); ?>" /></td>
|
|
@@ -220,7 +222,7 @@ endif;
|
|
| 220 |
<tr>
|
| 221 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 222 |
<td><?php _e('Order Notes', 'woocommerce-checkout-manager'); ?></td>
|
| 223 |
-
<td><input name="wccs_settings[checkness][wccs_opt_12]" type="checkbox" class="rm" value="1" <?php
|
| 224 |
<td></td>
|
| 225 |
<td><input type="text" name="wccs_settings[replace][label11]"
|
| 226 |
value="<?php echo esc_attr( $options['replace']['label11'] ); ?>" /></td>
|
|
@@ -232,7 +234,7 @@ endif;
|
|
| 232 |
<tr>
|
| 233 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 234 |
<td><?php _e('Address 1', 'woocommerce-checkout-manager'); ?></td>
|
| 235 |
-
<td><input name="wccs_settings[checkness][wccs_opt_4]" type="checkbox" class="rm" value="1" <?php
|
| 236 |
<td></td>
|
| 237 |
<td></td>
|
| 238 |
<td></td>
|
|
@@ -242,7 +244,7 @@ endif;
|
|
| 242 |
<tr>
|
| 243 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 244 |
<td><?php _e('Address 2', 'woocommerce-checkout-manager'); ?></td>
|
| 245 |
-
<td><input name="wccs_settings[checkness][wccs_opt_5]" type="checkbox" class="rm" value="1" <?php
|
| 246 |
<td></td>
|
| 247 |
<td></td>
|
| 248 |
<td></td>
|
|
@@ -252,7 +254,7 @@ endif;
|
|
| 252 |
<tr>
|
| 253 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 254 |
<td><?php _e('City', 'woocommerce-checkout-manager'); ?></td>
|
| 255 |
-
<td><input name="wccs_settings[checkness][wccs_opt_6]" type="checkbox" class="rm" value="1" <?php
|
| 256 |
<td></td>
|
| 257 |
<td></td>
|
| 258 |
<td></td>
|
|
@@ -262,7 +264,7 @@ endif;
|
|
| 262 |
<tr>
|
| 263 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 264 |
<td><?php _e('Postal Code', 'woocommerce-checkout-manager'); ?></td>
|
| 265 |
-
<td><input name="wccs_settings[checkness][wccs_opt_7]" type="checkbox" class="rm" value="1" <?php
|
| 266 |
<td></td>
|
| 267 |
<td></td>
|
| 268 |
<td></td>
|
|
@@ -272,7 +274,7 @@ endif;
|
|
| 272 |
<tr>
|
| 273 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 274 |
<td><?php _e('State', 'woocommerce-checkout-manager'); ?></td>
|
| 275 |
-
<td><input name="wccs_settings[checkness][wccs_opt_9]" type="checkbox" class="rm" value="1" <?php
|
| 276 |
<td></td>
|
| 277 |
<td></td>
|
| 278 |
<td></td>
|
|
@@ -295,8 +297,8 @@ endif;
|
|
| 295 |
<tr>
|
| 296 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 297 |
<td><strong><?php _e('Select All Check boxes in this Column', 'woocommerce-checkout-manager'); ?></strong></td>
|
| 298 |
-
<td><input name="wccs_settings[check][select_all_rm_s]" type="checkbox" id="select_all_rm_s" value="1" <?php
|
| 299 |
-
<td><input name="wccs_settings[check][select_all_rq_s]" type="checkbox" id="select_all_rq_s" value="1" <?php
|
| 300 |
<td></td>
|
| 301 |
<td></td>
|
| 302 |
</tr>
|
|
@@ -306,8 +308,8 @@ endif;
|
|
| 306 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 307 |
<td><?php _e('First Name', 'woocommerce-checkout-manager'); ?></td>
|
| 308 |
<td><input name="wccs_settings[check][wccs_opt_1_s]" type="checkbox" class="rm_s" value="1"
|
| 309 |
-
<?php
|
| 310 |
-
<td><input name="wccs_settings[check][wccs_rq_1_s]" type="checkbox" class="rq_s" value="1" <?php
|
| 311 |
<td><input type="text" name="wccs_settings[replace][label_s]"
|
| 312 |
value="<?php echo esc_attr( $options['replace']['label_s'] ); ?>" /></td>
|
| 313 |
<td><input type="text" name="wccs_settings[replace][placeholder_s]"
|
|
@@ -318,8 +320,8 @@ endif;
|
|
| 318 |
<tr>
|
| 319 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 320 |
<td><?php _e('Last Name', 'woocommerce-checkout-manager'); ?></td>
|
| 321 |
-
<td><input name="wccs_settings[check][wccs_opt_2_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 322 |
-
<td><input name="wccs_settings[check][wccs_rq_2_s]" type="checkbox" class="rq_s" value="1" <?php
|
| 323 |
<td><input type="text" name="wccs_settings[replace][label_s1]"
|
| 324 |
value="<?php echo esc_attr( $options['replace']['label_s1'] ); ?>" /></td>
|
| 325 |
<td><input type="text" name="wccs_settings[replace][placeholder_s1]"
|
|
@@ -330,7 +332,7 @@ endif;
|
|
| 330 |
<tr>
|
| 331 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 332 |
<td><?php _e('Company', 'woocommerce-checkout-manager'); ?></td>
|
| 333 |
-
<td><input name="wccs_settings[check][wccs_opt_3_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 334 |
<td></td>
|
| 335 |
<td><input type="text" name="wccs_settings[replace][label_s2]"
|
| 336 |
value="<?php echo esc_attr( $options['replace']['label_s2'] ); ?>" /></td>
|
|
@@ -342,7 +344,7 @@ endif;
|
|
| 342 |
<tr>
|
| 343 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 344 |
<td><?php _e('Country', 'woocommerce-checkout-manager'); ?></td>
|
| 345 |
-
<td><input name="wccs_settings[check][wccs_opt_8_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 346 |
<td></td>
|
| 347 |
<td><input type="text" name="wccs_settings[replace][label_s7]"
|
| 348 |
value="<?php echo esc_attr( $options['replace']['label_s7'] ); ?>" /></td>
|
|
@@ -353,7 +355,7 @@ endif;
|
|
| 353 |
<tr>
|
| 354 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 355 |
<td><?php _e('Address 1', 'woocommerce-checkout-manager'); ?></td>
|
| 356 |
-
<td><input name="wccs_settings[check][wccs_opt_4_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 357 |
<td></td>
|
| 358 |
<td></td>
|
| 359 |
<td></td>
|
|
@@ -363,7 +365,7 @@ endif;
|
|
| 363 |
<tr>
|
| 364 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 365 |
<td><?php _e('Address 2', 'woocommerce-checkout-manager'); ?></td>
|
| 366 |
-
<td><input name="wccs_settings[check][wccs_opt_5_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 367 |
<td></td>
|
| 368 |
<td></td>
|
| 369 |
<td></td>
|
|
@@ -373,7 +375,7 @@ endif;
|
|
| 373 |
<tr>
|
| 374 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 375 |
<td><?php _e('City', 'woocommerce-checkout-manager'); ?></td>
|
| 376 |
-
<td><input name="wccs_settings[check][wccs_opt_6_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 377 |
<td></td>
|
| 378 |
<td></td>
|
| 379 |
<td></td>
|
|
@@ -383,7 +385,7 @@ endif;
|
|
| 383 |
<tr>
|
| 384 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 385 |
<td><?php _e('Postal Code', 'woocommerce-checkout-manager'); ?></td>
|
| 386 |
-
<td><input name="wccs_settings[check][wccs_opt_7_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 387 |
<td></td>
|
| 388 |
<td></td>
|
| 389 |
<td></td>
|
|
@@ -393,7 +395,7 @@ endif;
|
|
| 393 |
<tr>
|
| 394 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 395 |
<td><?php _e('State', 'woocommerce-checkout-manager'); ?></td>
|
| 396 |
-
<td><input name="wccs_settings[check][wccs_opt_9_s]" type="checkbox" class="rm_s" value="1" <?php
|
| 397 |
<td></td>
|
| 398 |
<td></td>
|
| 399 |
<td></td>
|
|
@@ -435,10 +437,10 @@ endif;
|
|
| 435 |
<tr>
|
| 436 |
<th><?php _e('Enable Title - Additional information', 'atc-menu'); ?></th>
|
| 437 |
<th>
|
| 438 |
-
<input style="float:left;" name="wccs_settings[checkness][checkbox12]" type="checkbox" value="true" <?php
|
| 439 |
<th><?php _e('Checkout Page', 'atc-menu'); ?></th>
|
| 440 |
<th>
|
| 441 |
-
<input style="float:left;" name="wccs_settings[checkness][checkbox1]" type="checkbox" value="true" <?php
|
| 442 |
<th><?php _e('Checkout Details and Email Receipt', 'atc-menu'); ?></th>
|
| 443 |
</tr>
|
| 444 |
</thead>
|
|
@@ -544,26 +546,31 @@ width: 100%;
|
|
| 544 |
?>
|
| 545 |
<tr valign="top" class="wccs-row">
|
| 546 |
<td class="wccs-order" title="<?php esc_attr_e( 'Change order', 'woocommerce-checkout-manager' ); ?>"><?php echo $i + 1; ?></td>
|
| 547 |
-
|
| 548 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][label]"
|
| 549 |
-
value="<?php echo esc_attr(
|
|
|
|
| 550 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
|
| 551 |
-
value="<?php echo esc_attr(
|
|
|
|
| 552 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_a]"
|
| 553 |
-
value="<?php echo esc_attr( $options['buttons'][$i][option_a] ); ?>" /></td>
|
|
|
|
| 554 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_b]"
|
| 555 |
-
value="<?php echo esc_attr( $options['buttons'][$i][option_b] ); ?>" /></td>
|
|
|
|
| 556 |
<td>
|
| 557 |
<select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
|
| 558 |
-
<option value="text" <?php selected( $options['buttons'][$i][type], 'text' ); ?>>Text Input</option>
|
| 559 |
-
<option value="select" <?php selected( $options['buttons'][$i][type], 'select' ); ?>>Select Options</option>
|
| 560 |
-
<option value="date" <?php selected( $options['buttons'][$i][type], 'date' ); ?>>Date Picker</option>
|
| 561 |
-
<option value="checkbox" <?php selected( $options['buttons'][$i][type], 'checkbox' ); ?>>Checkbox (1, 0)</option>
|
| 562 |
</select>
|
| 563 |
</td>
|
| 564 |
<td><input type="text" maxlength="10" name="wccs_settings[buttons][<?php echo $i; ?>][cow]"
|
| 565 |
-
value="<?php echo esc_attr(
|
| 566 |
-
|
|
|
|
| 567 |
<td class="wccs-remove"><a class="wccs-remove-button" href="javascript:;" title="<?php esc_attr_e( 'Remove Field' , 'woocommerce-checkout-manager' ); ?>">×</a></td>
|
| 568 |
</tr>
|
| 569 |
<?php endfor; endif; ?>
|
|
@@ -638,14 +645,14 @@ add_filter( 'woocommerce_billing_fields', 'wccs_override_required_fields1', 10,
|
|
| 638 |
function custom_replace_checkout_fields( $fields ) {
|
| 639 |
$options = get_option( 'wccs_settings' );
|
| 640 |
if ( ! empty( $options['replace']['placeholder'] ) )
|
| 641 |
-
$fields['billing']['billing_first_name']['placeholder'] =
|
| 642 |
return $fields;
|
| 643 |
}
|
| 644 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields' );
|
| 645 |
function custom_replace_checkout_fieldsa( $fields ) {
|
| 646 |
$options = get_option( 'wccs_settings' );
|
| 647 |
if ( ! empty( $options['replace']['label'] ) )
|
| 648 |
-
$fields['billing']['billing_first_name']['label'] =
|
| 649 |
return $fields;
|
| 650 |
}
|
| 651 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsa' );
|
|
@@ -668,14 +675,14 @@ add_filter( 'woocommerce_billing_fields', 'wccs_override_required_fields2', 10,
|
|
| 668 |
function custom_replace_checkout_fields1( $fields ) {
|
| 669 |
$options = get_option( 'wccs_settings' );
|
| 670 |
if ( ! empty( $options['replace']['placeholder1'] ) )
|
| 671 |
-
$fields['billing']['billing_last_name']['placeholder'] =
|
| 672 |
return $fields;
|
| 673 |
}
|
| 674 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields1' );
|
| 675 |
function custom_replace_checkout_fieldsb( $fields ) {
|
| 676 |
$options = get_option( 'wccs_settings' );
|
| 677 |
if ( ! empty( $options['replace']['label1'] ) )
|
| 678 |
-
$fields['billing']['billing_last_name']['label'] =
|
| 679 |
return $fields;
|
| 680 |
}
|
| 681 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsb' );
|
|
@@ -691,14 +698,14 @@ add_filter( 'woocommerce_checkout_fields' , 'wccs_override_checkout_fields3' );
|
|
| 691 |
function custom_replace_checkout_fields2( $fields ) {
|
| 692 |
$options = get_option( 'wccs_settings' );
|
| 693 |
if ( ! empty( $options['replace']['placeholder2'] ) )
|
| 694 |
-
$fields['billing']['billing_company']['placeholder'] =
|
| 695 |
return $fields;
|
| 696 |
}
|
| 697 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields2' );
|
| 698 |
function custom_replace_checkout_fieldsc( $fields ) {
|
| 699 |
$options = get_option( 'wccs_settings' );
|
| 700 |
if ( ! empty( $options['replace']['label5'] ) )
|
| 701 |
-
$fields['billing']['billing_company']['label'] =
|
| 702 |
return $fields;
|
| 703 |
}
|
| 704 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsc' );
|
|
@@ -752,7 +759,7 @@ add_filter( 'woocommerce_billing_fields', 'wccs_override_required_fields8', 10,
|
|
| 752 |
function custom_replace_checkout_fieldsh( $fields ) {
|
| 753 |
$options = get_option( 'wccs_settings' );
|
| 754 |
if ( ! empty( $options['replace']['label2'] ) )
|
| 755 |
-
$fields['billing']['billing_country']['label'] =
|
| 756 |
return $fields;
|
| 757 |
}
|
| 758 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsh' );
|
|
@@ -783,14 +790,14 @@ add_filter( 'woocommerce_billing_fields', 'wccs_override_required_fields10', 10,
|
|
| 783 |
function custom_replace_checkout_fields9( $fields ) {
|
| 784 |
$options = get_option( 'wccs_settings' );
|
| 785 |
if ( ! empty( $options['replace']['placeholder3'] ) )
|
| 786 |
-
$fields['billing']['billing_phone']['placeholder'] =
|
| 787 |
return $fields;
|
| 788 |
}
|
| 789 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields9' );
|
| 790 |
function custom_replace_checkout_fieldsj( $fields ) {
|
| 791 |
$options = get_option( 'wccs_settings' );
|
| 792 |
if ( ! empty( $options['replace']['label3'] ) )
|
| 793 |
-
$fields['billing']['billing_phone']['label'] =
|
| 794 |
return $fields;
|
| 795 |
}
|
| 796 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsj' );
|
|
@@ -813,14 +820,14 @@ add_filter( 'woocommerce_billing_fields', 'wccs_override_required_fields11', 10,
|
|
| 813 |
function custom_replace_checkout_fields10( $fields ) {
|
| 814 |
$options = get_option( 'wccs_settings' );
|
| 815 |
if ( ! empty( $options['replace']['placeholder4'] ) )
|
| 816 |
-
$fields['billing']['billing_email']['placeholder'] =
|
| 817 |
return $fields;
|
| 818 |
}
|
| 819 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields10' );
|
| 820 |
function custom_replace_checkout_fieldsk( $fields ) {
|
| 821 |
$options = get_option( 'wccs_settings' );
|
| 822 |
if ( ! empty( $options['replace']['label4'] ) )
|
| 823 |
-
$fields['billing']['billing_email']['label'] =
|
| 824 |
return $fields;
|
| 825 |
}
|
| 826 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsk' );
|
|
@@ -836,14 +843,14 @@ add_filter( 'woocommerce_checkout_fields' , 'wccs_override_checkout_fields12' );
|
|
| 836 |
function custom_replace_checkout_fields11( $fields ) {
|
| 837 |
$options = get_option( 'wccs_settings' );
|
| 838 |
if ( ! empty( $options['replace']['placeholder11'] ) )
|
| 839 |
-
$fields['order']['order_comments']['placeholder'] =
|
| 840 |
return $fields;
|
| 841 |
}
|
| 842 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields11' );
|
| 843 |
function custom_replace_checkout_fieldsl( $fields ) {
|
| 844 |
$options = get_option( 'wccs_settings' );
|
| 845 |
if ( ! empty( $options['replace']['label11'] ) )
|
| 846 |
-
$fields['order']['order_comments']['label'] =
|
| 847 |
return $fields;
|
| 848 |
}
|
| 849 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsl' );
|
|
@@ -987,14 +994,26 @@ $options = get_option( 'wccs_settings' );
|
|
| 987 |
foreach( $input['buttons'] as $i => $btn ) :
|
| 988 |
if( function_exists( 'icl_register_string' ) ) {
|
| 989 |
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
}
|
| 995 |
if ( empty( $btn['label'] ) )
|
| 996 |
unset( $input['buttons'][$i], $btn );
|
| 997 |
endforeach;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 998 |
$input['buttons'] = array_values( $input['buttons'] );
|
| 999 |
return $input;
|
| 1000 |
}
|
|
@@ -1034,14 +1053,14 @@ add_filter( 'woocommerce_shipping_fields', 'wccs_shipping_required_fields1', 10,
|
|
| 1034 |
function custom_replace_checkout_fieldss( $fields ) {
|
| 1035 |
$options = get_option( 'wccs_settings' );
|
| 1036 |
if ( ! empty( $options['replace']['placeholder_s'] ) )
|
| 1037 |
-
$fields['shipping']['shipping_first_name']['placeholder'] =
|
| 1038 |
return $fields;
|
| 1039 |
}
|
| 1040 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss' );
|
| 1041 |
function custom_replace_checkout_fieldssa( $fields ) {
|
| 1042 |
$options = get_option( 'wccs_settings' );
|
| 1043 |
if ( ! empty( $options['replace']['label_s'] ) )
|
| 1044 |
-
$fields['shipping']['shipping_first_name']['label'] =
|
| 1045 |
return $fields;
|
| 1046 |
}
|
| 1047 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssa' );
|
|
@@ -1064,14 +1083,14 @@ add_filter( 'woocommerce_shipping_fields', 'wccs_shipping_required_fields2', 10,
|
|
| 1064 |
function custom_replace_checkout_fieldss1( $fields ) {
|
| 1065 |
$options = get_option( 'wccs_settings' );
|
| 1066 |
if ( ! empty( $options['replace']['placeholder_s1'] ) )
|
| 1067 |
-
$fields['shipping']['shipping_last_name']['placeholder'] =
|
| 1068 |
return $fields;
|
| 1069 |
}
|
| 1070 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss1' );
|
| 1071 |
function custom_replace_checkout_fieldssb( $fields ) {
|
| 1072 |
$options = get_option( 'wccs_settings' );
|
| 1073 |
if ( ! empty( $options['replace']['label_s1'] ) )
|
| 1074 |
-
$fields['shipping']['shipping_last_name']['label'] =
|
| 1075 |
return $fields;
|
| 1076 |
}
|
| 1077 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssb' );
|
|
@@ -1087,14 +1106,14 @@ add_filter( 'woocommerce_checkout_fields' , 'wccs_shipping_checkout_fields3' );
|
|
| 1087 |
function custom_replace_checkout_fieldss2( $fields ) {
|
| 1088 |
$options = get_option( 'wccs_settings' );
|
| 1089 |
if ( ! empty( $options['replace']['placeholder_s2'] ) )
|
| 1090 |
-
$fields['shipping']['shipping_company']['placeholder'] =
|
| 1091 |
return $fields;
|
| 1092 |
}
|
| 1093 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss2' );
|
| 1094 |
function custom_replace_checkout_fieldssc( $fields ) {
|
| 1095 |
$options = get_option( 'wccs_settings' );
|
| 1096 |
if ( ! empty( $options['replace']['label_s2'] ) )
|
| 1097 |
-
$fields['shipping']['shipping_company']['label'] =
|
| 1098 |
return $fields;
|
| 1099 |
}
|
| 1100 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssc' );
|
|
@@ -1148,7 +1167,7 @@ if ( 1 == ($options['check']['wccs_opt_8_s'] ) )
|
|
| 1148 |
function custom_replace_checkout_fieldssd( $fields ) {
|
| 1149 |
$options = get_option( 'wccs_settings' );
|
| 1150 |
if ( ! empty( $options['replace']['label_s7'] ) )
|
| 1151 |
-
$fields['shipping']['shipping_country']['label'] =
|
| 1152 |
return $fields;
|
| 1153 |
}
|
| 1154 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssd' );
|
|
@@ -1208,11 +1227,6 @@ add_filter( 'wcdn_order_info_fields', 'wccm_woocommerce_delivery_notes_compat',
|
|
| 1208 |
|
| 1209 |
function wpml_string_wccm($input) {
|
| 1210 |
|
| 1211 |
-
|
| 1212 |
-
return icl_t('WooCommerce Checkout Manager', ''.$input.'', ''.$input.'');
|
| 1213 |
-
} else {
|
| 1214 |
-
return $input;
|
| 1215 |
-
}
|
| 1216 |
-
|
| 1217 |
|
| 1218 |
}
|
| 3 |
Plugin Name: WooCommerce Checkout Manager
|
| 4 |
Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
|
| 5 |
Description: Manages WooCommerce Checkout fields
|
| 6 |
+
Version: 3.6.4
|
| 7 |
Author: Ephrain Marchan
|
| 8 |
Author URI: http://www.trottyzone.com
|
| 9 |
License: GPLv2 or later
|
| 25 |
register_activation_hook( __FILE__, 'wccs_install' );
|
| 26 |
load_plugin_textdomain('woocommerce-checkout-manager', false, dirname(plugin_basename(__FILE__)) . '/languages/');
|
| 27 |
function wccs_install() {
|
| 28 |
+
$defaults = array( 'buttons' => array( array(
|
| 29 |
+
'label' => __( 'Example Label', 'woocommerce-checkout-manager' ),
|
| 30 |
'placeholder' => __( 'Example placeholder', 'woocommerce-checkout-manager' ),
|
| 31 |
'cow' => __('myfld1', 'woocommerce-checkout-manager'),
|
| 32 |
'option_a' => __('option 1', 'woocommerce-checkout-manager'),
|
| 50 |
} else { // non-admin enqueues, actions, and filters
|
| 51 |
// hook to get option values and dynamically render css to support the tab classes
|
| 52 |
wp_enqueue_script('jquery-ui-datepicker');
|
| 53 |
+
wp_enqueue_style( 'jquery-ui-style', (is_ssl()) ? 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' : 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' );
|
| 54 |
}
|
| 55 |
// action function for above hook
|
| 56 |
function wccs_admin_menu() {
|
| 138 |
<tr>
|
| 139 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 140 |
<td><strong><?php _e('Select All Check boxes in this Column', 'woocommerce-checkout-manager'); ?></strong></td>
|
| 141 |
+
<td><input name="wccs_settings[checkness][select_all_rm]" type="checkbox" id="select_all_rm" value="1" <?php echo (isset($options['checkness']['select_all_rm'])) ? "checked='checked'" : ""; ?> /></td>
|
| 142 |
+
<td><input name="wccs_settings[checkness][select_all_rq]" type="checkbox" id="select_all_rq" value="1" <?php echo (isset($options['checkness']['select_all_rq'])) ? "checked='checked'" : ""; ?> /></td>
|
| 143 |
<td></td>
|
| 144 |
<td></td>
|
| 145 |
</tr>
|
| 148 |
<tr>
|
| 149 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 150 |
<td><?php _e('First Name', 'woocommerce-checkout-manager'); ?></td>
|
| 151 |
+
<td><input name="wccs_settings[checkness][wccs_opt_1]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_1'])) ? "checked='checked'" : ""; ?> /></td>
|
| 152 |
+
|
| 153 |
+
<td><input name="wccs_settings[checkness][wccs_rq_1]" type="checkbox" class="rq" value="1" <?php echo (isset($options['checkness']['wccs_rq_1'])) ? "checked='checked'" : ""; ?> /></td>
|
| 154 |
+
|
| 155 |
+
|
| 156 |
<td><input type="text" name="wccs_settings[replace][label]"
|
| 157 |
value="<?php echo esc_attr( $options['replace']['label'] ); ?>" /></td>
|
| 158 |
<td><input type="text" name="wccs_settings[replace][placeholder]"
|
| 163 |
<tr>
|
| 164 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 165 |
<td><?php _e('Last Name', 'woocommerce-checkout-manager'); ?></td>
|
| 166 |
+
<td><input name="wccs_settings[checkness][wccs_opt_2]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_2'])) ? "checked='checked'" : ""; ?> /></td>
|
| 167 |
+
<td><input name="wccs_settings[checkness][wccs_rq_2]" type="checkbox" class="rq" value="1" <?php echo (isset($options['checkness']['wccs_rq_2'])) ? "checked='checked'" : ""; ?> /></td>
|
| 168 |
<td><input type="text" name="wccs_settings[replace][label1]"
|
| 169 |
value="<?php echo esc_attr( $options['replace']['label1'] ); ?>" /></td>
|
| 170 |
<td><input type="text" name="wccs_settings[replace][placeholder1]"
|
| 175 |
<tr>
|
| 176 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 177 |
<td><?php _e('Country', 'woocommerce-checkout-manager'); ?></td>
|
| 178 |
+
<td><input name="wccs_settings[checkness][wccs_opt_8]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_8'])) ? "checked='checked'" : ""; ?> /></td>
|
| 179 |
+
<td><input name="wccs_settings[checkness][wccs_rq_8]" type="checkbox" class="rq" value="1" <?php echo (isset($options['checkness']['wccs_rq_8'])) ? "checked='checked'" : ""; ?> /></td>
|
| 180 |
+
<td><input type="text" name="wccs_settings[replace][label2]"
|
| 181 |
value="<?php echo esc_attr( $options['replace']['label2'] ); ?>" /></td>
|
| 182 |
+
<td></td>
|
| 183 |
</tr>
|
| 184 |
</tbody>
|
| 185 |
<tbody>
|
| 186 |
<tr>
|
| 187 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 188 |
<td><?php _e('Phone', 'woocommerce-checkout-manager'); ?></td>
|
| 189 |
+
<td><input name="wccs_settings[checkness][wccs_opt_10]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_10'])) ? "checked='checked'" : ""; ?> /></td>
|
| 190 |
+
<td><input name="wccs_settings[checkness][wccs_rq_10]" type="checkbox" class="rq" value="1" <?php echo (isset($options['checkness']['wccs_rq_10'])) ? "checked='checked'" : ""; ?> /></td>
|
| 191 |
<td><input type="text" name="wccs_settings[replace][label3]"
|
| 192 |
value="<?php echo esc_attr( $options['replace']['label3'] ); ?>" /></td>
|
| 193 |
<td><input type="text" name="wccs_settings[replace][placeholder3]"
|
| 198 |
<tr>
|
| 199 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 200 |
<td><?php _e('Email', 'woocommerce-checkout-manager'); ?></td>
|
| 201 |
+
<td><input name="wccs_settings[checkness][wccs_opt_11]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_11'])) ? "checked='checked'" : ""; ?> /></td>
|
| 202 |
+
<td><input name="wccs_settings[checkness][wccs_rq_11]" type="checkbox" class="rq" value="1" <?php echo (isset($options['checkness']['wccs_rq_11'])) ? "checked='checked'" : ""; ?> /></td>
|
| 203 |
<td><input type="text" name="wccs_settings[replace][label4]"
|
| 204 |
value="<?php echo esc_attr( $options['replace']['label4'] ); ?>" /></td>
|
| 205 |
<td><input type="text" name="wccs_settings[replace][placeholder4]"
|
| 210 |
<tr>
|
| 211 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 212 |
<td><?php _e('Company', 'woocommerce-checkout-manager'); ?></td>
|
| 213 |
+
<td><input name="wccs_settings[checkness][wccs_opt_3]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_3'])) ? "checked='checked'" : ""; ?> /></td>
|
| 214 |
<td></td>
|
| 215 |
<td><input type="text" name="wccs_settings[replace][label5]"
|
| 216 |
value="<?php echo esc_attr( $options['replace']['label5'] ); ?>" /></td>
|
| 222 |
<tr>
|
| 223 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 224 |
<td><?php _e('Order Notes', 'woocommerce-checkout-manager'); ?></td>
|
| 225 |
+
<td><input name="wccs_settings[checkness][wccs_opt_12]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_12'])) ? "checked='checked'" : ""; ?> /></td>
|
| 226 |
<td></td>
|
| 227 |
<td><input type="text" name="wccs_settings[replace][label11]"
|
| 228 |
value="<?php echo esc_attr( $options['replace']['label11'] ); ?>" /></td>
|
| 234 |
<tr>
|
| 235 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 236 |
<td><?php _e('Address 1', 'woocommerce-checkout-manager'); ?></td>
|
| 237 |
+
<td><input name="wccs_settings[checkness][wccs_opt_4]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_4'])) ? "checked='checked'" : ""; ?></td>
|
| 238 |
<td></td>
|
| 239 |
<td></td>
|
| 240 |
<td></td>
|
| 244 |
<tr>
|
| 245 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 246 |
<td><?php _e('Address 2', 'woocommerce-checkout-manager'); ?></td>
|
| 247 |
+
<td><input name="wccs_settings[checkness][wccs_opt_5]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_5'])) ? "checked='checked'" : ""; ?> /></td>
|
| 248 |
<td></td>
|
| 249 |
<td></td>
|
| 250 |
<td></td>
|
| 254 |
<tr>
|
| 255 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 256 |
<td><?php _e('City', 'woocommerce-checkout-manager'); ?></td>
|
| 257 |
+
<td><input name="wccs_settings[checkness][wccs_opt_6]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_6'])) ? "checked='checked'" : ""; ?> /></td>
|
| 258 |
<td></td>
|
| 259 |
<td></td>
|
| 260 |
<td></td>
|
| 264 |
<tr>
|
| 265 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 266 |
<td><?php _e('Postal Code', 'woocommerce-checkout-manager'); ?></td>
|
| 267 |
+
<td><input name="wccs_settings[checkness][wccs_opt_7]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_7'])) ? "checked='checked'" : ""; ?> /></td>
|
| 268 |
<td></td>
|
| 269 |
<td></td>
|
| 270 |
<td></td>
|
| 274 |
<tr>
|
| 275 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 276 |
<td><?php _e('State', 'woocommerce-checkout-manager'); ?></td>
|
| 277 |
+
<td><input name="wccs_settings[checkness][wccs_opt_9]" type="checkbox" class="rm" value="1" <?php echo (isset($options['checkness']['wccs_opt_9'])) ? "checked='checked'" : ""; ?> /></td>
|
| 278 |
<td></td>
|
| 279 |
<td></td>
|
| 280 |
<td></td>
|
| 297 |
<tr>
|
| 298 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 299 |
<td><strong><?php _e('Select All Check boxes in this Column', 'woocommerce-checkout-manager'); ?></strong></td>
|
| 300 |
+
<td><input name="wccs_settings[check][select_all_rm_s]" type="checkbox" id="select_all_rm_s" value="1" <?php echo (isset($options['check']['select_all_rm_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 301 |
+
<td><input name="wccs_settings[check][select_all_rq_s]" type="checkbox" id="select_all_rq_s" value="1" <?php echo (isset($options['check']['select_all_rq_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 302 |
<td></td>
|
| 303 |
<td></td>
|
| 304 |
</tr>
|
| 308 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 309 |
<td><?php _e('First Name', 'woocommerce-checkout-manager'); ?></td>
|
| 310 |
<td><input name="wccs_settings[check][wccs_opt_1_s]" type="checkbox" class="rm_s" value="1"
|
| 311 |
+
<?php echo (isset($options['check']['wccs_opt_1_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 312 |
+
<td><input name="wccs_settings[check][wccs_rq_1_s]" type="checkbox" class="rq_s" value="1" <?php echo (isset($options['check']['wccs_rq_1_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 313 |
<td><input type="text" name="wccs_settings[replace][label_s]"
|
| 314 |
value="<?php echo esc_attr( $options['replace']['label_s'] ); ?>" /></td>
|
| 315 |
<td><input type="text" name="wccs_settings[replace][placeholder_s]"
|
| 320 |
<tr>
|
| 321 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 322 |
<td><?php _e('Last Name', 'woocommerce-checkout-manager'); ?></td>
|
| 323 |
+
<td><input name="wccs_settings[check][wccs_opt_2_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_2_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 324 |
+
<td><input name="wccs_settings[check][wccs_rq_2_s]" type="checkbox" class="rq_s" value="1" <?php echo (isset($options['check']['wccs_rq_2_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 325 |
<td><input type="text" name="wccs_settings[replace][label_s1]"
|
| 326 |
value="<?php echo esc_attr( $options['replace']['label_s1'] ); ?>" /></td>
|
| 327 |
<td><input type="text" name="wccs_settings[replace][placeholder_s1]"
|
| 332 |
<tr>
|
| 333 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 334 |
<td><?php _e('Company', 'woocommerce-checkout-manager'); ?></td>
|
| 335 |
+
<td><input name="wccs_settings[check][wccs_opt_3_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_3_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 336 |
<td></td>
|
| 337 |
<td><input type="text" name="wccs_settings[replace][label_s2]"
|
| 338 |
value="<?php echo esc_attr( $options['replace']['label_s2'] ); ?>" /></td>
|
| 344 |
<tr>
|
| 345 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 346 |
<td><?php _e('Country', 'woocommerce-checkout-manager'); ?></td>
|
| 347 |
+
<td><input name="wccs_settings[check][wccs_opt_8_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_8_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 348 |
<td></td>
|
| 349 |
<td><input type="text" name="wccs_settings[replace][label_s7]"
|
| 350 |
value="<?php echo esc_attr( $options['replace']['label_s7'] ); ?>" /></td>
|
| 355 |
<tr>
|
| 356 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 357 |
<td><?php _e('Address 1', 'woocommerce-checkout-manager'); ?></td>
|
| 358 |
+
<td><input name="wccs_settings[check][wccs_opt_4_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_4_s'])) ? "checked='checked'" : ""; ?></td>
|
| 359 |
<td></td>
|
| 360 |
<td></td>
|
| 361 |
<td></td>
|
| 365 |
<tr>
|
| 366 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 367 |
<td><?php _e('Address 2', 'woocommerce-checkout-manager'); ?></td>
|
| 368 |
+
<td><input name="wccs_settings[check][wccs_opt_5_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_5_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 369 |
<td></td>
|
| 370 |
<td></td>
|
| 371 |
<td></td>
|
| 375 |
<tr>
|
| 376 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 377 |
<td><?php _e('City', 'woocommerce-checkout-manager'); ?></td>
|
| 378 |
+
<td><input name="wccs_settings[check][wccs_opt_6_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_6_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 379 |
<td></td>
|
| 380 |
<td></td>
|
| 381 |
<td></td>
|
| 385 |
<tr>
|
| 386 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 387 |
<td><?php _e('Postal Code', 'woocommerce-checkout-manager'); ?></td>
|
| 388 |
+
<td><input name="wccs_settings[check][wccs_opt_7_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_7_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 389 |
<td></td>
|
| 390 |
<td></td>
|
| 391 |
<td></td>
|
| 395 |
<tr>
|
| 396 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
| 397 |
<td><?php _e('State', 'woocommerce-checkout-manager'); ?></td>
|
| 398 |
+
<td><input name="wccs_settings[check][wccs_opt_9_s]" type="checkbox" class="rm_s" value="1" <?php echo (isset($options['check']['wccs_opt_9_s'])) ? "checked='checked'" : ""; ?> /></td>
|
| 399 |
<td></td>
|
| 400 |
<td></td>
|
| 401 |
<td></td>
|
| 437 |
<tr>
|
| 438 |
<th><?php _e('Enable Title - Additional information', 'atc-menu'); ?></th>
|
| 439 |
<th>
|
| 440 |
+
<input style="float:left;" name="wccs_settings[checkness][checkbox12]" type="checkbox" value="true" <?php echo (isset($options['checkness']['checkbox12'])) ? "checked='checked'": ""; ?> /></th>
|
| 441 |
<th><?php _e('Checkout Page', 'atc-menu'); ?></th>
|
| 442 |
<th>
|
| 443 |
+
<input style="float:left;" name="wccs_settings[checkness][checkbox1]" type="checkbox" value="true" <?php echo (isset($options['checkness']['checkbox1'])) ? "checked='checked'": ""; ?> /></th>
|
| 444 |
<th><?php _e('Checkout Details and Email Receipt', 'atc-menu'); ?></th>
|
| 445 |
</tr>
|
| 446 |
</thead>
|
| 546 |
?>
|
| 547 |
<tr valign="top" class="wccs-row">
|
| 548 |
<td class="wccs-order" title="<?php esc_attr_e( 'Change order', 'woocommerce-checkout-manager' ); ?>"><?php echo $i + 1; ?></td>
|
| 549 |
+
|
| 550 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][label]"
|
| 551 |
+
value="<?php echo esc_attr($options['buttons'][$i]['label']); ?>" /></td>
|
| 552 |
+
|
| 553 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
|
| 554 |
+
value="<?php echo esc_attr($options['buttons'][$i]['placeholder']); ?>" /></td>
|
| 555 |
+
|
| 556 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_a]"
|
| 557 |
+
value="<?php echo esc_attr( $options['buttons'][$i]['option_a'] ); ?>" /></td>
|
| 558 |
+
|
| 559 |
<td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_b]"
|
| 560 |
+
value="<?php echo esc_attr( $options['buttons'][$i]['option_b'] ); ?>" /></td>
|
| 561 |
+
|
| 562 |
<td>
|
| 563 |
<select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
|
| 564 |
+
<option value="text" <?php selected( $options['buttons'][$i]['type'], 'text' ); ?>>Text Input</option>
|
| 565 |
+
<option value="select" <?php selected( $options['buttons'][$i]['type'], 'select' ); ?>>Select Options</option>
|
| 566 |
+
<option value="date" <?php selected( $options['buttons'][$i]['type'], 'date' ); ?>>Date Picker</option>
|
| 567 |
+
<option value="checkbox" <?php selected( $options['buttons'][$i]['type'], 'checkbox' ); ?>>Checkbox (1, 0)</option>
|
| 568 |
</select>
|
| 569 |
</td>
|
| 570 |
<td><input type="text" maxlength="10" name="wccs_settings[buttons][<?php echo $i; ?>][cow]"
|
| 571 |
+
value="<?php echo esc_attr($options['buttons'][$i]['cow']); ?>" /></td>
|
| 572 |
+
|
| 573 |
+
<td style="text-align:center;"><input style="float:none;" name="wccs_settings[buttons][<?php echo $i; ?>][checkbox]" type="checkbox" value="true" <?php echo (isset($options['buttons'][$i]['checkbox'])) ? "checked='checked'": ""; ?> /></td>
|
| 574 |
<td class="wccs-remove"><a class="wccs-remove-button" href="javascript:;" title="<?php esc_attr_e( 'Remove Field' , 'woocommerce-checkout-manager' ); ?>">×</a></td>
|
| 575 |
</tr>
|
| 576 |
<?php endfor; endif; ?>
|
| 645 |
function custom_replace_checkout_fields( $fields ) {
|
| 646 |
$options = get_option( 'wccs_settings' );
|
| 647 |
if ( ! empty( $options['replace']['placeholder'] ) )
|
| 648 |
+
$fields['billing']['billing_first_name']['placeholder'] = wpml_string_wccm($options['replace']['placeholder']);
|
| 649 |
return $fields;
|
| 650 |
}
|
| 651 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields' );
|
| 652 |
function custom_replace_checkout_fieldsa( $fields ) {
|
| 653 |
$options = get_option( 'wccs_settings' );
|
| 654 |
if ( ! empty( $options['replace']['label'] ) )
|
| 655 |
+
$fields['billing']['billing_first_name']['label'] = wpml_string_wccm($options['replace']['label']);
|
| 656 |
return $fields;
|
| 657 |
}
|
| 658 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsa' );
|
| 675 |
function custom_replace_checkout_fields1( $fields ) {
|
| 676 |
$options = get_option( 'wccs_settings' );
|
| 677 |
if ( ! empty( $options['replace']['placeholder1'] ) )
|
| 678 |
+
$fields['billing']['billing_last_name']['placeholder'] = wpml_string_wccm($options['replace']['placeholder1']);
|
| 679 |
return $fields;
|
| 680 |
}
|
| 681 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields1' );
|
| 682 |
function custom_replace_checkout_fieldsb( $fields ) {
|
| 683 |
$options = get_option( 'wccs_settings' );
|
| 684 |
if ( ! empty( $options['replace']['label1'] ) )
|
| 685 |
+
$fields['billing']['billing_last_name']['label'] = wpml_string_wccm($options['replace']['label1']);
|
| 686 |
return $fields;
|
| 687 |
}
|
| 688 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsb' );
|
| 698 |
function custom_replace_checkout_fields2( $fields ) {
|
| 699 |
$options = get_option( 'wccs_settings' );
|
| 700 |
if ( ! empty( $options['replace']['placeholder2'] ) )
|
| 701 |
+
$fields['billing']['billing_company']['placeholder'] = wpml_string_wccm($options['replace']['placeholder2']);
|
| 702 |
return $fields;
|
| 703 |
}
|
| 704 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields2' );
|
| 705 |
function custom_replace_checkout_fieldsc( $fields ) {
|
| 706 |
$options = get_option( 'wccs_settings' );
|
| 707 |
if ( ! empty( $options['replace']['label5'] ) )
|
| 708 |
+
$fields['billing']['billing_company']['label'] = wpml_string_wccm($options['replace']['label5']);
|
| 709 |
return $fields;
|
| 710 |
}
|
| 711 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsc' );
|
| 759 |
function custom_replace_checkout_fieldsh( $fields ) {
|
| 760 |
$options = get_option( 'wccs_settings' );
|
| 761 |
if ( ! empty( $options['replace']['label2'] ) )
|
| 762 |
+
$fields['billing']['billing_country']['label'] = wpml_string_wccm($options['replace']['label2']);
|
| 763 |
return $fields;
|
| 764 |
}
|
| 765 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsh' );
|
| 790 |
function custom_replace_checkout_fields9( $fields ) {
|
| 791 |
$options = get_option( 'wccs_settings' );
|
| 792 |
if ( ! empty( $options['replace']['placeholder3'] ) )
|
| 793 |
+
$fields['billing']['billing_phone']['placeholder'] = wpml_string_wccm($options['replace']['placeholder3']);
|
| 794 |
return $fields;
|
| 795 |
}
|
| 796 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields9' );
|
| 797 |
function custom_replace_checkout_fieldsj( $fields ) {
|
| 798 |
$options = get_option( 'wccs_settings' );
|
| 799 |
if ( ! empty( $options['replace']['label3'] ) )
|
| 800 |
+
$fields['billing']['billing_phone']['label'] = wpml_string_wccm($options['replace']['label3']);
|
| 801 |
return $fields;
|
| 802 |
}
|
| 803 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsj' );
|
| 820 |
function custom_replace_checkout_fields10( $fields ) {
|
| 821 |
$options = get_option( 'wccs_settings' );
|
| 822 |
if ( ! empty( $options['replace']['placeholder4'] ) )
|
| 823 |
+
$fields['billing']['billing_email']['placeholder'] = wpml_string_wccm($options['replace']['placeholder4']);
|
| 824 |
return $fields;
|
| 825 |
}
|
| 826 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields10' );
|
| 827 |
function custom_replace_checkout_fieldsk( $fields ) {
|
| 828 |
$options = get_option( 'wccs_settings' );
|
| 829 |
if ( ! empty( $options['replace']['label4'] ) )
|
| 830 |
+
$fields['billing']['billing_email']['label'] = wpml_string_wccm($options['replace']['label4']);
|
| 831 |
return $fields;
|
| 832 |
}
|
| 833 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsk' );
|
| 843 |
function custom_replace_checkout_fields11( $fields ) {
|
| 844 |
$options = get_option( 'wccs_settings' );
|
| 845 |
if ( ! empty( $options['replace']['placeholder11'] ) )
|
| 846 |
+
$fields['order']['order_comments']['placeholder'] = wpml_string_wccm($options['replace']['placeholder11']);
|
| 847 |
return $fields;
|
| 848 |
}
|
| 849 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fields11' );
|
| 850 |
function custom_replace_checkout_fieldsl( $fields ) {
|
| 851 |
$options = get_option( 'wccs_settings' );
|
| 852 |
if ( ! empty( $options['replace']['label11'] ) )
|
| 853 |
+
$fields['order']['order_comments']['label'] = wpml_string_wccm($options['replace']['label11']);
|
| 854 |
return $fields;
|
| 855 |
}
|
| 856 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldsl' );
|
| 994 |
foreach( $input['buttons'] as $i => $btn ) :
|
| 995 |
if( function_exists( 'icl_register_string' ) ) {
|
| 996 |
|
| 997 |
+
apply_filters('register_string_for_translation', 'WooCommerce Checkout Manager', ''.$btn['label'].'', ''.$btn['label'].'');
|
| 998 |
+
apply_filters('register_string_for_translation', 'WooCommerce Checkout Manager', ''.$btn['placeholder'].'', ''.$btn['placeholder'].'');
|
| 999 |
+
apply_filters('register_string_for_translation', 'WooCommerce Checkout Manager', ''.$btn['option_a'].'', ''.$btn['option_a'].'');
|
| 1000 |
+
apply_filters('register_string_for_translation', 'WooCommerce Checkout Manager', ''.$btn['option_b'].'', ''.$btn['option_b'].'');
|
| 1001 |
}
|
| 1002 |
if ( empty( $btn['label'] ) )
|
| 1003 |
unset( $input['buttons'][$i], $btn );
|
| 1004 |
endforeach;
|
| 1005 |
+
|
| 1006 |
+
foreach( $input['replace'] as $type => $value ) :
|
| 1007 |
+
if( function_exists( 'icl_register_string' ) ) {
|
| 1008 |
+
if(!empty($value) && $value!=''){
|
| 1009 |
+
apply_filters('register_string_for_translation', 'WooCommerce Checkout Manager', ''.$value.'', ''.$value.'');
|
| 1010 |
+
}
|
| 1011 |
+
}
|
| 1012 |
+
if ( empty( $btn['label'] ) )
|
| 1013 |
+
unset( $input['buttons'][$i], $btn );
|
| 1014 |
+
endforeach;
|
| 1015 |
+
|
| 1016 |
+
|
| 1017 |
$input['buttons'] = array_values( $input['buttons'] );
|
| 1018 |
return $input;
|
| 1019 |
}
|
| 1053 |
function custom_replace_checkout_fieldss( $fields ) {
|
| 1054 |
$options = get_option( 'wccs_settings' );
|
| 1055 |
if ( ! empty( $options['replace']['placeholder_s'] ) )
|
| 1056 |
+
$fields['shipping']['shipping_first_name']['placeholder'] = wpml_string_wccm($options['replace']['placeholder_s']);
|
| 1057 |
return $fields;
|
| 1058 |
}
|
| 1059 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss' );
|
| 1060 |
function custom_replace_checkout_fieldssa( $fields ) {
|
| 1061 |
$options = get_option( 'wccs_settings' );
|
| 1062 |
if ( ! empty( $options['replace']['label_s'] ) )
|
| 1063 |
+
$fields['shipping']['shipping_first_name']['label'] = wpml_string_wccm($options['replace']['label_s']);
|
| 1064 |
return $fields;
|
| 1065 |
}
|
| 1066 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssa' );
|
| 1083 |
function custom_replace_checkout_fieldss1( $fields ) {
|
| 1084 |
$options = get_option( 'wccs_settings' );
|
| 1085 |
if ( ! empty( $options['replace']['placeholder_s1'] ) )
|
| 1086 |
+
$fields['shipping']['shipping_last_name']['placeholder'] = wpml_string_wccm($options['replace']['placeholder_s1']);
|
| 1087 |
return $fields;
|
| 1088 |
}
|
| 1089 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss1' );
|
| 1090 |
function custom_replace_checkout_fieldssb( $fields ) {
|
| 1091 |
$options = get_option( 'wccs_settings' );
|
| 1092 |
if ( ! empty( $options['replace']['label_s1'] ) )
|
| 1093 |
+
$fields['shipping']['shipping_last_name']['label'] = wpml_string_wccm($options['replace']['label_s1']);
|
| 1094 |
return $fields;
|
| 1095 |
}
|
| 1096 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssb' );
|
| 1106 |
function custom_replace_checkout_fieldss2( $fields ) {
|
| 1107 |
$options = get_option( 'wccs_settings' );
|
| 1108 |
if ( ! empty( $options['replace']['placeholder_s2'] ) )
|
| 1109 |
+
$fields['shipping']['shipping_company']['placeholder'] = wpml_string_wccm($options['replace']['placeholder_s2']);
|
| 1110 |
return $fields;
|
| 1111 |
}
|
| 1112 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldss2' );
|
| 1113 |
function custom_replace_checkout_fieldssc( $fields ) {
|
| 1114 |
$options = get_option( 'wccs_settings' );
|
| 1115 |
if ( ! empty( $options['replace']['label_s2'] ) )
|
| 1116 |
+
$fields['shipping']['shipping_company']['label'] = wpml_string_wccm($options['replace']['label_s2']);
|
| 1117 |
return $fields;
|
| 1118 |
}
|
| 1119 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssc' );
|
| 1167 |
function custom_replace_checkout_fieldssd( $fields ) {
|
| 1168 |
$options = get_option( 'wccs_settings' );
|
| 1169 |
if ( ! empty( $options['replace']['label_s7'] ) )
|
| 1170 |
+
$fields['shipping']['shipping_country']['label'] = wpml_string_wccm($options['replace']['label_s7']);
|
| 1171 |
return $fields;
|
| 1172 |
}
|
| 1173 |
add_filter( 'woocommerce_checkout_fields' , 'custom_replace_checkout_fieldssd' );
|
| 1227 |
|
| 1228 |
function wpml_string_wccm($input) {
|
| 1229 |
|
| 1230 |
+
return apply_filters('translate_string', 'WooCommerce Checkout Manager', ''.$input.'', ''.$input.'');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1231 |
|
| 1232 |
}
|
