Changeset 3796310
- Timestamp:
- 11/11/2026 12:39:20 PM (11 days ago)
- Location:
- vitewholesale/trunk
- Files:
-
- 41 added
- 29 deleted
- 13 edited
-
assets/AddressListContainer-CWrFugYE.css (added)
-
assets/AddressListContainer-DWUFWEkr.css (deleted)
-
assets/ChatMessageInput-C030euOv.css (added)
-
assets/ChatMessageInput-DiFy90dF.css (deleted)
-
assets/CheckoutAddressPicker-CnyV5NjK.css (deleted)
-
assets/CheckoutAddressPicker-P2LRnqGG.css (added)
-
assets/ModuleLoader-CpqlBr_p.css (added)
-
assets/ModuleLoader-qgJRxny5.css (deleted)
-
assets/QuoteListContainer-1ZDbGWUC.css (added)
-
assets/QuoteListContainer-Chw0KORa.css (deleted)
-
assets/WholesaleShopContainer-8C1lAIXu.css (added)
-
assets/WholesaleShopContainer-BUN0Vc3U.css (deleted)
-
assets/admin-C9ffLcBj.css (deleted)
-
assets/admin-DgYQfqZh.js (deleted)
-
assets/admin-Dn9P3Tvq.js (added)
-
assets/admin-dGDY_v6R.css (added)
-
assets/attrOption-BwUO343g.css (deleted)
-
assets/attrOption-H2J7H7FF.css (added)
-
assets/client-Bo8fc0Mh.css (added)
-
assets/client-CBz60jjQ.js (deleted)
-
assets/client-DV1U7XNo.js (added)
-
assets/client-oFDRTj8P.css (deleted)
-
assets/manifest.json (modified) (6 diffs)
-
assets/shared--GT8q0bw.js (deleted)
-
assets/shared-BBsZBIQN.js (added)
-
assets/shared-BDXy3KUB.js (added)
-
assets/shared-BYj8aVYo.js (added)
-
assets/shared-BgHHvLxH.js (added)
-
assets/shared-Bhca6Bu_.js (deleted)
-
assets/shared-Bjk7cPFb.js (deleted)
-
assets/shared-BlJhr78c.js (deleted)
-
assets/shared-Bna9g_4P.js (added)
-
assets/shared-BnkO9SpX.js (deleted)
-
assets/shared-Bo5lXDkR.js (added)
-
assets/shared-Bp5fSk7g.js (added)
-
assets/shared-BpR_6ljf.js (added)
-
assets/shared-BtjKeNFw.js (added)
-
assets/shared-C0DxNaFi.js (deleted)
-
assets/shared-C3k1n5sT.js (deleted)
-
assets/shared-C4r8igxp.js (added)
-
assets/shared-C92pjvXH.js (deleted)
-
assets/shared-COY8I63Z.js (added)
-
assets/shared-CZNuI8H1.js (added)
-
assets/shared-CeOUpT4E.js (deleted)
-
assets/shared-CguX6IVe.js (deleted)
-
assets/shared-CqMtgJ3w.js (added)
-
assets/shared-Cua1GHTu.js (added)
-
assets/shared-Cwyc_IZd.js (deleted)
-
assets/shared-D5vNaFQT.js (added)
-
assets/shared-D6-aetQB.js (deleted)
-
assets/shared-D8NM9c6E.js (added)
-
assets/shared-DKhl_CjL.js (deleted)
-
assets/shared-DKnq8Gf2.js (added)
-
assets/shared-DM62no3X.js (added)
-
assets/shared-DNKAGUZN.js (deleted)
-
assets/shared-DTB_oxiK.js (added)
-
assets/shared-DUargOAE.js (added)
-
assets/shared-DkMjnIVd.js (added)
-
assets/shared-DmLKuaoW.js (deleted)
-
assets/shared-Drd3So-S.js (added)
-
assets/shared-DxImMvG1.js (deleted)
-
assets/shared-LZPZpTFh.js (added)
-
assets/shared-XZKtxXq1.js (deleted)
-
assets/shared-Xj3QzILj.js (added)
-
assets/shared-dArqdlMK.js (added)
-
assets/shared-q0ACOssf.js (added)
-
assets/shared-qOqiVxiN.js (added)
-
assets/shared-xYtPBVsC.js (deleted)
-
languages/js/en_US.js (modified) (1 diff)
-
languages/vitewholesale.pot (modified) (12 diffs)
-
readme.txt (modified) (1 diff)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vitewholesale.php (modified) (1 diff)
-
vitewholesale/core/class-vitewholesale.php (modified) (4 diffs)
-
vitewholesale/libs/class-app-language.php (modified) (7 diffs)
-
vitewholesale/libs/class-custom-price-product-tab.php (added)
-
vitewholesale/libs/class-custom-price.php (added)
-
vitewholesale/libs/class-pricing-engine.php (modified) (15 diffs)
-
vitewholesale/modules/class-vitewholesale-custom-price.php (added)
-
vitewholesale/modules/class-vitewholesale-customer-badge.php (modified) (2 diffs)
-
vitewholesale/modules/class-vitewholesale-pricing-rule.php (modified) (3 diffs)
-
vitewholesale/modules/class-vitewholesale-settings.php (modified) (6 diffs)
-
vitewholesale/modules/class-vitewholesale-storefront-pricing.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vitewholesale/trunk/assets/manifest.json
r3756279 r3796310 1 1 { 2 "_ChatMessageInput- DiFy90dF.css": {3 "file": "ChatMessageInput- DiFy90dF.css",4 "src": "_ChatMessageInput- DiFy90dF.css"5 }, 6 "_ModuleLoader- qgJRxny5.css": {7 "file": "ModuleLoader- qgJRxny5.css",8 "src": "_ModuleLoader- qgJRxny5.css"9 }, 10 "_attrOption- BwUO343g.css": {11 "file": "attrOption- BwUO343g.css",12 "src": "_attrOption- BwUO343g.css"2 "_ChatMessageInput-C030euOv.css": { 3 "file": "ChatMessageInput-C030euOv.css", 4 "src": "_ChatMessageInput-C030euOv.css" 5 }, 6 "_ModuleLoader-CpqlBr_p.css": { 7 "file": "ModuleLoader-CpqlBr_p.css", 8 "src": "_ModuleLoader-CpqlBr_p.css" 9 }, 10 "_attrOption-H2J7H7FF.css": { 11 "file": "attrOption-H2J7H7FF.css", 12 "src": "_attrOption-H2J7H7FF.css" 13 13 }, 14 14 "_quill-vendor-DnvdUp38.css": { … … 16 16 "src": "_quill-vendor-DnvdUp38.css" 17 17 }, 18 "_shared-Bjk7cPFb.js": { 19 "file": "shared-Bjk7cPFb.js", 18 "_shared-BDXy3KUB.js": { 19 "file": "shared-BDXy3KUB.js", 20 "name": "AbConfirmResponse", 21 "imports": [ 22 "_shared-DKnq8Gf2.js" 23 ] 24 }, 25 "_shared-BYj8aVYo.js": { 26 "file": "shared-BYj8aVYo.js", 20 27 "name": "pencil", 21 28 "imports": [ 22 "_shared-DKhl_CjL.js" 23 ] 24 }, 25 "_shared-BlJhr78c.js": { 26 "file": "shared-BlJhr78c.js", 29 "_shared-CqMtgJ3w.js" 30 ] 31 }, 32 "_shared-BpR_6ljf.js": { 33 "file": "shared-BpR_6ljf.js", 34 "name": "QuoteStore", 35 "imports": [ 36 "_shared-DKnq8Gf2.js", 37 "_shared-dArqdlMK.js" 38 ] 39 }, 40 "_shared-C4r8igxp.js": { 41 "file": "shared-C4r8igxp.js", 42 "name": "quill-vendor", 43 "css": [ 44 "quill-vendor-DnvdUp38.css" 45 ] 46 }, 47 "_shared-CqMtgJ3w.js": { 48 "file": "shared-CqMtgJ3w.js", 49 "name": "map-pin", 50 "imports": [ 51 "_shared-C4r8igxp.js" 52 ] 53 }, 54 "_shared-D8NM9c6E.js": { 55 "file": "shared-D8NM9c6E.js", 56 "name": "phone", 57 "imports": [ 58 "_shared-CqMtgJ3w.js" 59 ] 60 }, 61 "_shared-DKnq8Gf2.js": { 62 "file": "shared-DKnq8Gf2.js", 63 "name": "attrOption", 64 "imports": [ 65 "_shared-C4r8igxp.js" 66 ], 67 "dynamicImports": [ 68 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/default.css?inline", 69 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/cyan.css?inline", 70 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/violet.css?inline", 71 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/purple.css?inline", 72 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/pink.css?inline", 73 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/red.css?inline", 74 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/orange.css?inline", 75 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/gray.css?inline", 76 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/black.css?inline" 77 ], 78 "css": [ 79 "attrOption-H2J7H7FF.css" 80 ] 81 }, 82 "_shared-DM62no3X.js": { 83 "file": "shared-DM62no3X.js", 84 "name": "trash", 85 "imports": [ 86 "_shared-CqMtgJ3w.js" 87 ] 88 }, 89 "_shared-DkMjnIVd.js": { 90 "file": "shared-DkMjnIVd.js", 91 "name": "AddressForm", 92 "imports": [ 93 "_shared-DKnq8Gf2.js", 94 "_shared-dArqdlMK.js", 95 "_shared-C4r8igxp.js" 96 ] 97 }, 98 "_shared-LZPZpTFh.js": { 99 "file": "shared-LZPZpTFh.js", 100 "name": "ChatMessageInput", 101 "imports": [ 102 "_shared-CqMtgJ3w.js", 103 "_shared-C4r8igxp.js", 104 "_shared-DKnq8Gf2.js" 105 ], 106 "css": [ 107 "ChatMessageInput-C030euOv.css" 108 ] 109 }, 110 "_shared-dArqdlMK.js": { 111 "file": "shared-dArqdlMK.js", 112 "name": "ModuleLoader", 113 "imports": [ 114 "_shared-DKnq8Gf2.js", 115 "_shared-C4r8igxp.js" 116 ], 117 "css": [ 118 "ModuleLoader-CpqlBr_p.css" 119 ] 120 }, 121 "_shared-q0ACOssf.js": { 122 "file": "shared-q0ACOssf.js", 27 123 "name": "proGate", 28 124 "imports": [ 29 "_shared- DKhl_CjL.js",30 "_shared- D6-aetQB.js"31 ] 32 }, 33 "_shared- C0DxNaFi.js": {34 "file": "shared- C0DxNaFi.js",125 "_shared-CqMtgJ3w.js", 126 "_shared-C4r8igxp.js" 127 ] 128 }, 129 "_shared-qOqiVxiN.js": { 130 "file": "shared-qOqiVxiN.js", 35 131 "name": "plus", 36 132 "imports": [ 37 "_shared-DKhl_CjL.js" 38 ] 39 }, 40 "_shared-C3k1n5sT.js": { 41 "file": "shared-C3k1n5sT.js", 42 "name": "ModuleLoader", 43 "imports": [ 44 "_shared-DmLKuaoW.js", 45 "_shared-D6-aetQB.js" 46 ], 47 "css": [ 48 "ModuleLoader-qgJRxny5.css" 49 ] 50 }, 51 "_shared-CguX6IVe.js": { 52 "file": "shared-CguX6IVe.js", 53 "name": "AbConfirmResponse", 54 "imports": [ 55 "_shared-DmLKuaoW.js" 56 ] 57 }, 58 "_shared-Cwyc_IZd.js": { 59 "file": "shared-Cwyc_IZd.js", 60 "name": "ChatMessageInput", 61 "imports": [ 62 "_shared-DKhl_CjL.js", 63 "_shared-D6-aetQB.js", 64 "_shared-C3k1n5sT.js", 65 "_shared-DmLKuaoW.js" 66 ], 67 "css": [ 68 "ChatMessageInput-DiFy90dF.css" 69 ] 70 }, 71 "_shared-D6-aetQB.js": { 72 "file": "shared-D6-aetQB.js", 73 "name": "quill-vendor", 74 "css": [ 75 "quill-vendor-DnvdUp38.css" 76 ] 77 }, 78 "_shared-DKhl_CjL.js": { 79 "file": "shared-DKhl_CjL.js", 80 "name": "map-pin", 81 "imports": [ 82 "_shared-D6-aetQB.js" 83 ] 84 }, 85 "_shared-DNKAGUZN.js": { 86 "file": "shared-DNKAGUZN.js", 87 "name": "QuoteStore", 88 "imports": [ 89 "_shared-DmLKuaoW.js", 90 "_shared-C3k1n5sT.js" 91 ] 92 }, 93 "_shared-DmLKuaoW.js": { 94 "file": "shared-DmLKuaoW.js", 95 "name": "attrOption", 96 "imports": [ 97 "_shared-D6-aetQB.js" 98 ], 99 "css": [ 100 "attrOption-BwUO343g.css" 101 ] 102 }, 103 "_shared-DxImMvG1.js": { 104 "file": "shared-DxImMvG1.js", 105 "name": "trash", 106 "imports": [ 107 "_shared-DKhl_CjL.js" 108 ] 109 }, 110 "_shared-XZKtxXq1.js": { 111 "file": "shared-XZKtxXq1.js", 112 "name": "phone", 113 "imports": [ 114 "_shared-DKhl_CjL.js" 115 ] 116 }, 117 "_shared-xYtPBVsC.js": { 118 "file": "shared-xYtPBVsC.js", 119 "name": "AddressForm", 120 "imports": [ 121 "_shared-DmLKuaoW.js", 122 "_shared-C3k1n5sT.js", 123 "_shared-D6-aetQB.js" 133 "_shared-CqMtgJ3w.js" 124 134 ] 125 135 }, … … 153 163 }, 154 164 "dev_files/admin_panel/src/main.js": { 155 "file": "admin-D gYQfqZh.js",165 "file": "admin-Dn9P3Tvq.js", 156 166 "name": "admin", 157 167 "src": "dev_files/admin_panel/src/main.js", 158 168 "isEntry": true, 159 169 "imports": [ 160 "_shared- D6-aetQB.js",161 "_shared-D mLKuaoW.js",162 "_shared- DKhl_CjL.js",163 "_shared- BlJhr78c.js",164 "_shared- Cwyc_IZd.js",165 "_shared- C3k1n5sT.js",166 "_shared- CguX6IVe.js",167 "_shared- C0DxNaFi.js",168 "_shared-D xImMvG1.js",169 "_shared- XZKtxXq1.js"170 ], 171 "css": [ 172 "admin- C9ffLcBj.css"170 "_shared-C4r8igxp.js", 171 "_shared-DKnq8Gf2.js", 172 "_shared-CqMtgJ3w.js", 173 "_shared-q0ACOssf.js", 174 "_shared-LZPZpTFh.js", 175 "_shared-dArqdlMK.js", 176 "_shared-BDXy3KUB.js", 177 "_shared-qOqiVxiN.js", 178 "_shared-DM62no3X.js", 179 "_shared-D8NM9c6E.js" 180 ], 181 "css": [ 182 "admin-dGDY_v6R.css" 173 183 ], 174 184 "assets": [ … … 183 193 }, 184 194 "dev_files/client_panel/src/main.js": { 185 "file": "client- CBz60jjQ.js",195 "file": "client-DV1U7XNo.js", 186 196 "name": "client", 187 197 "src": "dev_files/client_panel/src/main.js", 188 198 "isEntry": true, 189 199 "imports": [ 190 "_shared- D6-aetQB.js",191 "_shared-D mLKuaoW.js"200 "_shared-C4r8igxp.js", 201 "_shared-DKnq8Gf2.js" 192 202 ], 193 203 "dynamicImports": [ … … 199 209 ], 200 210 "css": [ 201 "client- oFDRTj8P.css"211 "client-Bo8fc0Mh.css" 202 212 ] 203 213 }, 204 214 "dev_files/client_panel/src/modules/Address/AddressListContainer.vue": { 205 "file": "shared- CeOUpT4E.js",215 "file": "shared-BtjKeNFw.js", 206 216 "name": "AddressListContainer", 207 217 "src": "dev_files/client_panel/src/modules/Address/AddressListContainer.vue", 208 218 "isDynamicEntry": true, 209 219 "imports": [ 210 "_shared-D mLKuaoW.js",211 "_shared- CguX6IVe.js",212 "_shared- C3k1n5sT.js",213 "_shared- xYtPBVsC.js",214 "_shared- DKhl_CjL.js",215 "_shared-B jk7cPFb.js",216 "_shared-D xImMvG1.js",217 "_shared- XZKtxXq1.js",218 "_shared- C0DxNaFi.js",219 "_shared- D6-aetQB.js"220 ], 221 "css": [ 222 "AddressListContainer- DWUFWEkr.css"220 "_shared-DKnq8Gf2.js", 221 "_shared-BDXy3KUB.js", 222 "_shared-dArqdlMK.js", 223 "_shared-DkMjnIVd.js", 224 "_shared-CqMtgJ3w.js", 225 "_shared-BYj8aVYo.js", 226 "_shared-DM62no3X.js", 227 "_shared-D8NM9c6E.js", 228 "_shared-qOqiVxiN.js", 229 "_shared-C4r8igxp.js" 230 ], 231 "css": [ 232 "AddressListContainer-CWrFugYE.css" 223 233 ] 224 234 }, 225 235 "dev_files/client_panel/src/modules/Application/WholesaleApplicationContainer.vue": { 226 "file": "shared- -GT8q0bw.js",236 "file": "shared-COY8I63Z.js", 227 237 "name": "WholesaleApplicationContainer", 228 238 "src": "dev_files/client_panel/src/modules/Application/WholesaleApplicationContainer.vue", 229 239 "isDynamicEntry": true, 230 240 "imports": [ 231 "_shared-D mLKuaoW.js",232 "_shared- C3k1n5sT.js",233 "_shared- D6-aetQB.js"241 "_shared-DKnq8Gf2.js", 242 "_shared-dArqdlMK.js", 243 "_shared-C4r8igxp.js" 234 244 ], 235 245 "css": [ … … 238 248 }, 239 249 "dev_files/client_panel/src/modules/Checkout/CheckoutAddressPicker.vue": { 240 "file": "shared- Bhca6Bu_.js",250 "file": "shared-Xj3QzILj.js", 241 251 "name": "CheckoutAddressPicker", 242 252 "src": "dev_files/client_panel/src/modules/Checkout/CheckoutAddressPicker.vue", 243 253 "isDynamicEntry": true, 244 254 "imports": [ 245 "_shared- D6-aetQB.js",246 "_shared-D mLKuaoW.js",247 "_shared- C3k1n5sT.js",248 "_shared- xYtPBVsC.js",249 "_shared-B jk7cPFb.js",250 "_shared- C0DxNaFi.js",251 "_shared- DKhl_CjL.js"252 ], 253 "css": [ 254 "CheckoutAddressPicker- CnyV5NjK.css"255 "_shared-C4r8igxp.js", 256 "_shared-DKnq8Gf2.js", 257 "_shared-dArqdlMK.js", 258 "_shared-DkMjnIVd.js", 259 "_shared-BYj8aVYo.js", 260 "_shared-qOqiVxiN.js", 261 "_shared-CqMtgJ3w.js" 262 ], 263 "css": [ 264 "CheckoutAddressPicker-P2LRnqGG.css" 255 265 ] 256 266 }, 257 267 "dev_files/client_panel/src/modules/Quote/QuoteListContainer.vue": { 258 "file": "shared- C92pjvXH.js",268 "file": "shared-Bp5fSk7g.js", 259 269 "name": "QuoteListContainer", 260 270 "src": "dev_files/client_panel/src/modules/Quote/QuoteListContainer.vue", 261 271 "isDynamicEntry": true, 262 272 "imports": [ 263 "_shared-D mLKuaoW.js",264 "_shared- Cwyc_IZd.js",265 "_shared- C3k1n5sT.js",266 "_shared- DNKAGUZN.js",267 "_shared- DKhl_CjL.js",268 "_shared- XZKtxXq1.js",269 "_shared- D6-aetQB.js"270 ], 271 "css": [ 272 "QuoteListContainer- Chw0KORa.css"273 "_shared-DKnq8Gf2.js", 274 "_shared-LZPZpTFh.js", 275 "_shared-dArqdlMK.js", 276 "_shared-BpR_6ljf.js", 277 "_shared-CqMtgJ3w.js", 278 "_shared-D8NM9c6E.js", 279 "_shared-C4r8igxp.js" 280 ], 281 "css": [ 282 "QuoteListContainer-1ZDbGWUC.css" 273 283 ] 274 284 }, 275 285 "dev_files/client_panel/src/modules/Shop/WholesaleShopContainer.vue": { 276 "file": "shared- BnkO9SpX.js",286 "file": "shared-Drd3So-S.js", 277 287 "name": "WholesaleShopContainer", 278 288 "src": "dev_files/client_panel/src/modules/Shop/WholesaleShopContainer.vue", 279 289 "isDynamicEntry": true, 280 290 "imports": [ 281 "_shared-D6-aetQB.js", 282 "_shared-DmLKuaoW.js", 283 "_shared-C3k1n5sT.js", 284 "_shared-BlJhr78c.js", 285 "_shared-DNKAGUZN.js", 286 "_shared-xYtPBVsC.js", 287 "_shared-C0DxNaFi.js", 288 "_shared-DKhl_CjL.js", 289 "_shared-DxImMvG1.js" 290 ], 291 "css": [ 292 "WholesaleShopContainer-BUN0Vc3U.css" 293 ] 291 "_shared-C4r8igxp.js", 292 "_shared-DKnq8Gf2.js", 293 "_shared-dArqdlMK.js", 294 "_shared-q0ACOssf.js", 295 "_shared-BpR_6ljf.js", 296 "_shared-DkMjnIVd.js", 297 "_shared-qOqiVxiN.js", 298 "_shared-CqMtgJ3w.js", 299 "_shared-DM62no3X.js" 300 ], 301 "css": [ 302 "WholesaleShopContainer-8C1lAIXu.css" 303 ] 304 }, 305 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/black.css?inline": { 306 "file": "shared-BBsZBIQN.js", 307 "name": "black", 308 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/black.css?inline", 309 "isDynamicEntry": true 310 }, 311 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/cyan.css?inline": { 312 "file": "shared-Bo5lXDkR.js", 313 "name": "cyan", 314 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/cyan.css?inline", 315 "isDynamicEntry": true 316 }, 317 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/default.css?inline": { 318 "file": "shared-Bna9g_4P.js", 319 "name": "default", 320 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/default.css?inline", 321 "isDynamicEntry": true 322 }, 323 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/gray.css?inline": { 324 "file": "shared-DTB_oxiK.js", 325 "name": "gray", 326 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/gray.css?inline", 327 "isDynamicEntry": true 328 }, 329 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/orange.css?inline": { 330 "file": "shared-DUargOAE.js", 331 "name": "orange", 332 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/orange.css?inline", 333 "isDynamicEntry": true 334 }, 335 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/pink.css?inline": { 336 "file": "shared-D5vNaFQT.js", 337 "name": "pink", 338 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/pink.css?inline", 339 "isDynamicEntry": true 340 }, 341 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/purple.css?inline": { 342 "file": "shared-BgHHvLxH.js", 343 "name": "purple", 344 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/purple.css?inline", 345 "isDynamicEntry": true 346 }, 347 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/red.css?inline": { 348 "file": "shared-Cua1GHTu.js", 349 "name": "red", 350 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/red.css?inline", 351 "isDynamicEntry": true 352 }, 353 "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/violet.css?inline": { 354 "file": "shared-CZNuI8H1.js", 355 "name": "violet", 356 "src": "node_modules/@appsbd/vue3-appsbd-ui/dist/skins/violet.css?inline", 357 "isDynamicEntry": true 294 358 } 295 359 } -
vitewholesale/trunk/languages/js/en_US.js
r3756279 r3796310 1 /* vitewholesale-lang 44804a69f868| generated from this site's translations. Do not edit. */2 window.apbd_vitewholesale_lang = {"code":"en_US","digits":["0","1","2","3","4","5","6","7","8","9"],"translations":{"gbl.version":"Version: %{version}","gbl.toggle_sidebar":"Toggle sidebar","gbl.first_name":"First Name","gbl.last_name":"Last Name","gbl.email":"Email","gbl.username":"Username","gbl.mobile":"Mobile","gbl.city":"City","gbl.street":"Street","gbl.country":"Country","gbl.postcode":"Postcode","gbl.state":"State","gbl.add":"Add %{name}","gbl.edit":"Edit %{name}","gbl.edit.now":"Edit","gbl.search":"Search %{name}","gbl.search.by":"Search by %{name}","gbl.search.btn":"Search","gbl.reset":"Reset","gbl.select":"Select %{name}","gbl.select.type":"Select type","gbl.enter":"Enter %{name}","gbl.delete":"Delete","gbl.reload":"Reload","gbl.action":"Action","gbl.loading":"Loading...","gbl.updating":"Updating...","gbl.adding":"Adding...","gbl.submitting":"Submitting...","gbl.submit":"Submit","gbl.status":"Status","gbl.active":"Active","gbl.inactive":"Inactive","gbl.sure":"Are you sure?","gbl.close":"Close","gbl.save":"Save","gbl.save.changes":"Save Changes","gbl.update.failed":"Failed to update.","gbl.add.failed":"Failed to add.","gbl.no_change":"No Change For Update","gbl.created.at":"Created At","gbl.status.to_inactive":"Change status to Inactive?","gbl.status.to_active":"Change status to Active?","gbl.product":"Product","gbl.category":"Category","gbl.fixed":"Fixed","gbl.percentage":"Percentage","gbl.min.qty":"Min qty","gbl.qty":"Qty","gbl.eq":"Equal to","gbl.ne":"Not equal to","gbl.ex":"Except","gbl.customer":"Customer","gbl.remove":"Remove","gbl.phone":"Phone","gbl.pending":"Pending","gbl.approved":"Approved","gbl.rejected":"Rejected","gbl.revoked":"Revoked","gbl.reject":"Reject","gbl.cancel":"Cancel","gbl.note":"Note","gbl.details":"%{name} Details","gbl.delete.title":"Delete %{name}","gbl.title":"Title","gbl.description":"Description","gbl.updated":"Successfully updated","gbl.lang_cache_unwritable":"Updated, but the uploads folder is not writable, so the panel language cache could not be refreshed. Ask your host to make wp-content/uploads writable, or the panels may keep showing an older translation.","gbl.added":"Successfully added","gbl.deleted":"Successfully deleted","gbl.delete.failed":"Delete failed, please try again","gbl.changed":"%{name} changed successfully","gbl.failed.change":"Failed to change %{name}","gbl.failed.delete":"Failed to delete %{name}","gbl.failed.save":"Failed to save %{name}","gbl.failed.set_default":"Failed to set default %{name}","gbl.set_default.success":"Set as default %{name} successfully","gbl.not_found":"%{name} not found","gbl.invalid_request":"Invalid request","gbl.status.update":"Status updated successfully","gbl.status.update_failed":"Status update failed","gbl.no_properties_to_update":"Properties cannot be updated","gbl.login_required":"You must be logged in","gbl.woocommerce_unavailable":"WooCommerce is not available","gbl.forbidden":"You do not have permission to perform this action","gbl.wholesale_access_required":"You do not have wholesale access","gbl.required_fields":"Please fill in all required fields","gbl.name":"Name","gbl.yes":"Yes","gbl.no":"No","gbl.discount":"Discount","gbl.view":"View","gbl.default":"Default","gbl.set_default":"Set as default","gbl.set_default.name":"Set as default %{name}","gbl.set_default.confirm":"Set as default %{name}?","gbl.pro":"Pro","gbl.copy":"Copy","gbl.coming_soon":"Coming Soon","gbl.company":"Company","gbl.address_1":"Address 1","gbl.address_2":"Address 2","gbl.shipping":"Shipping","gbl.billing":"Billing","gbl.shipping_address":"Shipping Address","gbl.billing_address":"Billing Address","gbl.items":"Items","gbl.total":"Total","nav.wholesale":"Wholesale","nav.admin":"Admin Menu","gbl.filter":"Filter","Search":"Search","Reset":"Reset","pro.required_title":"Pro Version Required","pro.unlock_all_intro":"Upgrade to Vite Wholesale Pro to unlock:","pro.get_plugin":"Get Pro Plugin","pro.feature.custom_fields.desc1":"Add unlimited custom fields to the wholesale application","pro.feature.custom_fields.desc2":"Text, dropdown, checkbox, radio, date & more field types","pro.feature.custom_fields.desc4":"Show or hide fields on the application form","pro.feature.quote.desc1":"Customers can request custom quotes","pro.feature.quote.desc2":"Negotiate pricing directly in a conversation thread","pro.feature.quote.desc4":"Convert accepted quotes into orders","pro.feature.email.desc1":"Customize every wholesale email sent to customers","pro.feature.email.desc2":"Application submitted/approved/rejected templates","pro.feature.email.desc4":"Match your store's own branding","pro.field_locked":"This is a Pro feature \u2014 click to learn more","pro.feature.address.desc1":"Customers manage multiple shipping/billing addresses","pro.feature.address.desc2":"Set a default address for faster checkout","pro.feature.address.desc4":"Validated against WooCommerce's own address fields","pro.feature.badge_upgrade.desc1":"Automatically upgrade a customer's badge as they spend more","pro.feature.badge_upgrade.desc2":"Set a purchase-total threshold per badge","pro.feature.badge_upgrade.desc4":"Customer is emailed automatically when upgraded","nav.prl":"Pricing Rules","prl.entity":"Pricing Rule","prl.name":"Rule Name","prl.rules":"Rules","prl.rule":"Rule","prl.group.add":"Add Rules Group","prl.group.num":"Rule Group# %{n}","prl.and":"AND","prl.or":"OR","prl.condition.empty":"No conditions \u2014 this group matches no products. Add a condition or remove this group.","prl.group.empty":"No rule groups \u2014 add one to scope this discount.","prl.matches_nothing":"Saved, but this rule matches no products yet.","prl.status.desc":"Enable or disable this rule.","prl.discount.type":"Discount Type","prl.discount.value":"Discount Value","prl.condition.field":"Condition Field","prl.condition.operator":"Condition Operator","prl.min_qty.tooltip":"Minimum quantity of matching items a customer must order for this condition to be satisfied.","prl.desc.sentence":"Apply this rule to %{body}.","prl.desc.sentence_open":"Apply this rule to %{body}","prl.desc.all_products":"all products","prl.desc.product":"product %{name}","prl.desc.category":"products in the %{name} category","prl.desc.product_not":"there is no product %{name} in the cart","prl.desc.category_not":"there are no %{name} category products in the cart","prl.desc.except_product":"%{name}","prl.desc.except_category":"%{name} category products","prl.desc.with_qty":"%{subject}, with a quantity of %{qty} for each product","prl.desc.qty_condition":"%{body}","prl.desc.join":"and","prl.desc.except_sentence":"but it will not apply to %{body}.","prl.desc.empty":"No conditions yet -- this group currently matches no products.","prl.groups_save_failed_after_create":"Pricing rule created, but saving its rule groups failed","prl.groups_save_failed_after_update":"Pricing rule updated, but saving its rule groups failed","prl.rule_in_use_by_badges":"This rule cannot be deleted or deactivated because it is currently being used by the %{badge_name} badge. Please remove the rule from the badge first.","nav.apl":"Applications","apl.entity":"Application","apl.title":"Wholesale Application","apl.submit":"Submit Application","apl.already_pending":"You already have a pending wholesale application","apl.already_approved":"You are already an approved wholesale customer","apl.submit_success":"Wholesale application submitted successfully","apl.view_details":"View Details","apl.approve":"Approve","apl.approve.confirm":"Approve this application?","apl.approve.success":"Application approved successfully.","apl.approve.failed":"Failed to approve application.","apl.submitted_at":"Submitted At","apl.reviewed_at":"Reviewed At","apl.rejection_reason":"Rejection Reason","apl.submitted_fields":"Submitted Fields","apl.reject.title":"Reject Application","apl.rejecting":"Rejecting...","apl.reject.success":"Application rejected successfully.","apl.reject.failed":"Failed to reject application.","apl.submit_failed":"Failed to submit application.","apl.approved_msg":"You are an approved wholesale customer","apl.approved_desc":"Enjoy your wholesale pricing and benefits.","apl.pending_title":"Application Status: Pending","apl.pending_desc":"Your wholesale application is under review. We will notify you once a decision has been made.","apl.what_is_title":"What is Wholesale?","apl.what_is_desc":"Wholesale customers unlock a dedicated wholesale shop, tiered bulk pricing, the ability to request custom quotes, and other exclusive features not available to regular shoppers.","apl.benefit.pricing":"Wholesale Pricing","apl.benefit.shop":"Dedicated Wholesale Shop","apl.benefit.quotes":"Quote Requests","apl.benefit.exclusive":"Exclusive Features","apl.apply_again":"Apply Again","apl.apply":"Apply for Wholesale","apl.delete.only_rejected":"Only a rejected or revoked application can be deleted.","apl.revoked_reason":"Revoked Reason","apl.revoked_title":"Your wholesale access has been revoked","apl.revoked_desc":"Please contact us if you have questions. You may also apply again below.","apl.reapplied_tooltip":"This customer has applied %d time(s) before, %d of which were rejected or revoked.","apl.reapplied_badge":"Reapplied","nav. bdg":"Badges","bdg.entity":"Badge","bdg.information":"Badge Information","bdg.title":"Badge Title","bdg.description.placeholder":"Enter description (optional)","bdg.payment_methods":"Payment Methods","bdg.options":"Badge Options","bdg.status.desc":"Enable or disable this badge.","bdg.upgrade_threshold":"Upgrade Threshold","bdg.upgrade_threshold.hint":"Minimum purchase amount required for automatic upgrade. 0 = admin assign only.","bdg.admin_assign_only":"Admin assign only","bdg.default_badge":"Default Badge","bdg.set_default.success":"Default badge updated successfully.","bdg.usage_warning":"%{count} customer(s) are assigned to this badge. Choose a replacement badge before deleting.","bdg.replacement":"Replacement Badge","bdg.deleting":"Deleting...","bdg.assign.confirm":"I confirm that I want to assign the %{badge_name} badge to this customer.","bdg.assign.confirm.required":"Please confirm the badge assignment.","bdg.default_required":"At least one badge must remain the default. Set another badge as default first.","bdg.default_must_be_active":"Only an active badge can be the default. Activate this badge first.","bdg.default_no_inactive":"The default badge cannot be deactivated. Set another badge as default first.","bdg.delete_reassign_required":"This badge is assigned to %{count} customer(s). Select a replacement badge to continue.","bdg.delete_self_reassign":"Cannot reassign customers to the badge being deleted. Select a different replacement badge.","bdg.reassign_failed":"Failed to reassign customers to the replacement badge","bdg.none_active":"No active badges are configured","nav.cfd":"Custom Fields","cfd.entity":"Custom Field","cfd.label":"Label","cfd.type":"Type","cfd.place_to_show":"Place to show","cfd.order":"Order","cfd.visibility":"Visibility","cfd.required_status":"Required status","cfd.user":"User","cfd.type.checkbox":"Checkboxes","cfd.type.radio":"Radio","cfd.type.switch":"Switch","cfd.type.dropdown":"Dropdown","cfd.type.text":"Text","cfd.type.textarea":"Textarea","cfd.type.number":"Number","cfd.type.url":"URL","cfd.type.date":"Date","cfd.form_label":"Form Label","cfd.field_label":"Field Label","cfd.field_type":"Field Type","cfd.help_text":"Help Text","cfd.show_where":"Show Where","cfd.select_location":"Select Location","cfd.field_options":"Field Options","cfd.add_options_hint":"Add selectable options","cfd.add_option":"Add Option","cfd.value":"Value","cfd.half_field":"Half Field","cfd.required":"Required","cfd.form.title":"Wholesale Application Form Fields","cfd.form.field_name":"Field Name","cfd.form.hide":"Hide","cfd.form.show_confirm":"Show this field?","cfd.form.hide_confirm":"Hide this field?","cfd.form.optional_confirm":"Make this field optional?","cfd.form.required_confirm":"Make this field required?","cfd.tab.list":"Custom Fields List","cfd.tab.form":"Custom Field Form","nav.cus":"Customers","cus.search.placeholder":"Search by name or email","cus.assign_badge":"Assign Badge","cus.no_badge":"No Badge","cus.current_badge":"Current Badge","cus.wholesale_status":"Wholesale Status","cus.assign_failed":"Failed to assign badge.","cus.total_spent":"Total Spent","cus.upgrade_to":"Upgrade to %{badge_name}","cus.upgrade_title":"Badge Upgrade Available","cus.upgrade_confirm":"Would you like to upgrade this customer from %{current_badge} to %{badge_name}?","cus.upgrade_desc":"This user's current sales are %{total_spent}, which exceeds the required threshold for the %{badge_name} Badge(%{threshold}). The user is now eligible for a %{badge_name} Badge upgrade.","cus.upgrade_success":"Customer badge upgraded successfully","cus.upgrade_failed":"Failed to upgrade customer badge.","cus.upgrade_ineligible":"This customer is not eligible for a badge upgrade right now","cus.assignment_not_found":"Customer badge assignment not found","cus.badge_threshold":"Threshold","cus.below_threshold_warning":"%{badge_name} requires a minimum spend of %{threshold}, but this customer has only spent %{total_spent} so far.","cus.wholesale_status.desc":"Turn off to remove this customer's wholesale access and badge.","cus.wholesale_disable_notice":"This badge is no longer active \u2014 saving will remove it and this customer's wholesale access.","nav.eml":"Email Templates","eml.entity":"Email Template","eml.group":"Group","eml.subject":"Subject","eml.content":"Content","eml.placeholders":"Available Placeholders","eml.click_to_insert":"Click to insert","eml.no_properties":"No properties defined","eml.property":"Property","nav.qut":"Quote Manage","qut.quote":"Quote","qut.number":"Quote #","qut.status.negotiating":"Negotiating","qut.status.offer_sent":"Offer Sent","qut.status.accepted":"Accepted","qut.status.expired":"Expired","qut.status.order_created":"Order Created","qut.requested":"Requested","qut.grand_total":"Grand Total","qut.items_total":"Items Total","qut.items":"Quote Items","qut.line_total":"Line Total","qut.was":"was","qut.no_items":"No items","qut.shipping.original":"Original Shipping Price","qut.shipping.discount":"Shipping Discount","qut.shipping.final":"Final Shipping Price","qut.shipping.hint":"Amount to discount off shipping.","qut.shipping.method":"Method","qut.make_offer":"Make Offer","qut.reject_confirm":"Reject this quote?","qut.conversation":"Conversation","qut.no_messages":"No messages yet.","qut.type_message":"Type a message...","qut.send":"Send","qut.offer_price":"Offer Price","qut.action_failed":"Something went wrong. Please try again.","qut.accept_confirm":"Accept this offer and create an order?","qut.accept_offer":"Accept Offer","qut.reject_offer":"Reject Offer","qut.send_hint":"Send your message.","qut.my_quotes":"My Quotes","qut.total_count":"%{count} total","qut.empty":"You have not requested any quotes yet.","qut.message_label":"Message","qut.message_optional":"Message (optional)","qut.message_placeholder":"Need better pricing for this order...","qut.note_label":"Note to customer (optional)","qut.note_placeholder":"Included in the conversation and the notification email...","qut.offer_note_label":"Add a message (optional)","qut.offer_note_placeholder":"Included in the conversation and sent with your response...","qut.validation.address":"Please choose a shipping address","qut.validation.method":"Please choose a shipping method","qut.validation.message":"Please describe what you need in your quote request","qut.request_title":"Request a Quote","qut.request_desc":"Choose the address this quote should ship to.","qut.request_desc_no_address":"Tell us what you need \u2014 we'll use your account address for this quote.","qut.choose_shipping_method":"Choose a shipping method.","qut.no_shipping_methods":"No shipping methods are available for this address.","qut.request_success":"Quote request submitted successfully.","qut.request_failed":"Failed to submit quote request.","qut.requests_disabled":"Quote requests are currently disabled","qut.validation.address_and_method":"Please choose a shipping address and method","qut.shipping_method_unavailable":"The selected shipping method is not available for this address","qut.no_active_offer":"This quote has no active offer to accept","qut.order_failed":"Failed to create your order, please try again or contact support","qut.order_created":"Order created successfully","qut.status_not_allowed":"This action is not available for the quote's current status","qut.reply_sent":"Reply sent","qut.rejected":"Quote rejected","qut.no_longer_offerable":"This quote can no longer be offered on","qut.provide_address":"Please provide an address to calculate shipping","nav.set":"Settings","set.entity":"General Settings","set.non_logged_in.desc":"%{name} for non logged in users.","set.wholesale_price_text":"Wholesale Price Text","set.rule_priority_strategy":"Rule Priority Strategy","set.base_price":"Base Price","set.hide_wholesale_price":"Hide Wholesale Price","set.hide_retail_price":"Hide Retail Price","set.enable_badge_payment":"Enable Badge Payment","set.enable_badge_payment.desc":"Restrict checkout payment methods at checkout to only the ones allowed by the customer's wholesale badge.","set.disable_coupon":"Disable Coupon","set.disable_coupon.desc":"Prevent wholesale customers from applying coupons on the Cart and Checkout pages. Enforced on the backend even if the coupon form is bypassed.","set.enable_quote_management":"Enable Quote Management","set.enable_quote_request":"Enable Quote Request","set.custom_address_feature_enabled":"Custom Address Feature Enabled","set.custom_address_feature_enabled.desc":"When off, customers use WooCommerce's normal single billing/shipping address instead of the saved-address book.","set.enable_quote_request.desc":"Allow approved wholesale customers to submit new quote requests. When off, the Request Quote button is hidden and new requests are blocked \u2014 existing quotes are unaffected.","set.enable_email_notification":"Enable Email Notification","set.enable_email_notification.desc":"Send wholesale-related emails (quotes, badges, templates). When off, no emails are sent.","set.badge_upgrade_type":"Badge Upgrade Type","set.badge_upgrade_type.manual":"Manual","set.badge_upgrade_type.manual.desc":"An admin upgrades a customer's badge by hand from the Customers screen when they've crossed a threshold.","set.badge_upgrade_type.automatic":"Automatic","set.badge_upgrade_type.automatic.desc":"A daily background job also upgrades customers on its own, in addition to the manual option staying available.","set.badge_upgrade_order_statuses":"Badge Upgrade Order Status","set.badge_upgrade_order_statuses.desc":"Orders in this status count toward a customer's cumulative purchase total for badge upgrades (manual or automatic).","set.is_vitepos_enabled":"VitePOS Integration","set.is_vitepos_enabled.desc":"Sync wholesale pricing and badges with VitePOS.","set.disable_discount_button":"Disable Discount Button","set.disable_discount_button.desc":"When enabled, the Discount Apply button is disabled/hidden in VitePOS, preventing users from applying discounts from VitePOS.","set.disable_fee_btn":"Disable Fee Button","set.disable_fee_btn.desc":"When enabled, the Fee button is disabled/hidden in VitePOS, preventing users from applying fees from VitePOS.","set.enable_cost_protection":"Enable Cost Protection","set.enable_cost_protection.desc":"Never let a wholesale rule price a product below its cost plus margin. If a matched rule's price would fall under that floor, the floor price is used instead. To use it: (1) enter a cost price on each product using the \"Cost of Goods\" field (WooCommerce Cost of Goods plugin), (2) set the margin below, (3) turn this on. Products with no cost entered are not protected.","set.margin_value":"Margin Value","set.margin_value.desc":"A fixed amount added to the cost to set the lowest allowed price (not a percentage). Example: cost 10.00 + margin 2.00 = lowest price 12.00. Enter 0 to protect the cost only.","set.save":"Save Settings","set.refresh_app":"Refresh App and Clear Cache","set.tab.rule":"Rule Settings","set.strategy.min":"Minimum Price","set.strategy.max":"Maximum Price","set.base_price.regular":"Regular Price","set.base_price.sale":"Sale Price","set.max_input_qty":"Maximum Input Quantity (Wholesale Shop)","set.max_input_qty.desc":"The most units of a single product a customer can enter in the Wholesale Shop and its cart panel. Does not apply to the regular WooCommerce shop, product pages or cart.","set.base_price.desc":"The %{name} of the product will be used as the base price.","set.strategy.min.desc":"If checked, the lowest price found in any of the matched price rules will be used. For example, if Rule A sets a price of $5 and Rule B sets a price of $3, $3 will be used.","set.strategy.max.desc":"If checked, the highest price found in any of the matched price rules will be used. For example, if Rule A sets a price of $5 and Rule B sets a price of $3, $5 will be used.","set.page":"Page Settings","set.wholesale_shop_shortcode.desc":"Use this shortcode to display the Wholesale Shop on any WordPress page.","set.wholesale_shop_display_mode":"Wholesale Shop Display Mode","set.shop.shortcode":"Shortcode","set.shop.full_page":"Full Page","set.shop.shortcode.desc":"You can use the [wholesale_shop] shortcode on any page you like to display the shop. The shop will then appear in your theme's normal layout (inside header, footer, and sidebar).","set.shop.full_page.desc":"The shop will be displayed as a standalone page \u2014 independent of your theme. It will not show your site's header, footer, or sidebar.","adr.entity":"Address","adr.my_addresses":"My Addresses","adr.empty":"You have not saved any addresses yet.","adr.set_default_hint":"If checked, this address will be set as default address for","adr.delete_confirm":"Delete this address?","adr.type":"Address Type","adr.label":"Address Label","adr.bootstrap_prompt":"Add an address to continue \u2014 this is a one-time step.","adr.saved_continue":"Address saved \u2014 continue below.","adr.autofill_failed":"Could not autofill the %{name} address \u2014 please enter it manually below.","adr.none_yet":"You have no saved %{name} addresses yet.","adr.feature_disabled":"The address book feature is currently disabled","shp.add_to_cart":"Add to Cart","shp.add_to_cart_failed":"Unable to add product to cart","shp.your_cart":"Your Cart","shp.clear_all":"Clear All","shp.cart_empty":"Your cart is empty","shp.wholesale_price":"Wholesale Price","shp.unit_price":"Unit Price","shp.proceed_checkout":"Proceed to Checkout","shp.request_quote":"Request Quote","shp.clear_cart_failed":"Unable to clear cart","shp.search_placeholder":"Search by product name or SKU...","shp.all_products":"All Products","shp.select_subcategory":"Select Sub-category","shp.subcategories":"Sub-categories","shp.close_category":"Close","shp.no_products":"No products found","shp.load_more":"Load more","shp.select_variations":"Select Variations","shp.no_options":"No options available","shp.max_qty_reached":"Maximum quantity of %{max} reached","shp.update_qty_failed":"Unable to update quantity","shp.remove_item_failed":"Unable to remove item","shp.back_to_shop":"Back to shop","shp.invalid_variation":"Please select a valid product option","shp.invalid_cart_item":"Invalid cart item","nav.rpt":"Reports","rpt.sales_overview":"Sales Overview","rpt.date_range":"Date Range","rpt.role":"Role","rpt.all_roles":"All Roles","rpt.category":"Category","rpt.all_categories":"All Categories","rpt.apply":"Apply","rpt.refresh":"Refresh","rpt.export":"Export","rpt.total_wholesale_revenue":"Total Wholesale Order Amount","rpt.total_retail_revenue":"Total Retail Order Amount","rpt.total_orders":"Total Orders","rpt.growth_rate":"Growth Rate","rpt.unique_customers":"Total Wholesale Customers","rpt.total_retail_users":"Total Retail/Non-Wholesale Users","rpt.total_users":"Total Users","rpt.wholesale_users":"Wholesale Users","rpt.normal_users":"Normal Users","rpt.wholesale_orders":"Wholesale Orders","rpt.retail_orders":"Retail Orders","rpt.vs_previous_period":"vs previous period","rpt.new_this_period":"%{count} new this period","rpt.not_available":"n/a","rpt.wholesale_vs_retail":"Wholesale vs Retail Split","rpt.wholesale":"Wholesale","rpt.retail":"Retail","rpt.revenue_trend":"Revenue Trend (Last 6 Months)","rpt.key_insight":"Key Insight","rpt.wholesale_applications":"Wholesale Applications","rpt.app_total":"Total Applications","rpt.app_pending":"Pending Applications","rpt.app_approved":"Approved Applications","rpt.app_rejected":"Rejected Applications","rpt.sales_trend":"Sales Trend","rpt.weekly":"Weekly","rpt.monthly":"Monthly","rpt.recent_activity":"Recent Activity","rpt.no_recent_activity":"No recent activity.","rpt.activity_order_completed":"%{name} completed an order","rpt.activity_application_submitted":"New application submitted by %{name}","rpt.activity_application_approved":"%{name}'s application was approved","rpt.activity_application_rejected":"%{name}'s application was rejected","rpt.activity_application_revoked":"%{name}'s wholesale status was revoked","rpt.activity_badge_assigned":"%{name} was assigned the %{badge} badge","rpt.activity_badge_upgraded":"%{name}'s badge was changed from %{previous} to %{badge}","rpt.just_now":"Just now","rpt.minutes_ago":"%{count}m ago","rpt.hours_ago":"%{count}h ago","rpt.days_ago":"%{count}d ago","rpt.no_data":"No wholesale orders found for this filter combination.","rpt.role_hint":"Reflects the customer's current badge, not their badge at order time.","rpt.load_failed":"Failed to load report data.","rpt.product_sales":"Product Sales","rpt.performance_analytics":"Performance Analytics","rpt.top_products_by_volume":"Top Products by Volume","rpt.top_products_by_revenue":"TopProducts by Revenue","rpt.col_rank":"#","rpt.col_product":"Product","rpt.col_units_sold":"Units Sold","rpt.col_revenue":"Revenue","rpt.col_units":"Units","rpt.no_products":"No product sales found for this filter combination.","rpt.best_sellers_volume":"Best Sellers by Volume (Top 10)","rpt.best_customers":"Best Customers (Top 10)","rpt.category_performance":"Category Performance","rpt.no_performance_data":"No sales data found for this filter combination.","pro.feature.reports.desc1":"Wholesale revenue, orders, and customer stats at a glance","pro.feature.reports.desc2":"Wholesale vs retail split and a 6-month revenue trend","pro.feature.reports.desc4":"Filter by date range, badge tier, or product category","rpt.pro_showcase_banner_title":"Unlock advanced reporting","rpt.pro_showcase_banner_body":"Charts, revenue trends, filters, CSV export, and two more report views are available in Pro.","rpt.pro_showcase_tab_title":"This report is a Pro feature","rpt.pro_showcase_tab_body":"Upgrade to Pro to unlock this report, with live data for your store.","rpt.upgrade_to_pro":"Upgrade to Pro","rpt.preview_sales_trend":"Sales Trend chart","rpt.preview_wholesale_vs_retail":"Wholesale vs. Retail split","rpt.preview_wholesale_applications":"Wholesale Applications breakdown","rpt.preview_recent_activity":"Recent Activity feed","rpt.preview_product_sales":"Product Sales breakdown (Top by Volume / Top by Revenue)","rpt.preview_performance_analytics":"Performance Analytics (Best Sellers, Best Customers, Category Performance)","nav.license":"License","lic.entity":"License Info","lic.status":"License Status","lic.status.valid":"Valid","lic.status.invalid":"Invalid","lic.type":"License Type","lic.expires_on":"License Expires On","lic.support_expires_on":"Support Expires On","lic.key":"Your License Key","lic.renew":"Renew","lic.deactivate":"Deactivate License","lic.deactivate.confirm":"Are you sure you want to deactivate this license?","lic.not_licensed":"No Active License Found","lic.not_licensed.desc":"Activate your Vite Wholesale Pro license key to unlock updates and premium support.","lic.promo.title":"Vite Wholesale Pro","lic.promo.desc":"Unlock pricing rules, quote negotiation, customer address book, and more.","lic.promo.cta":"Learn more","val.required":"%{fld_name} is required","val.should_be_numeric":"%{fld_name} should be numeric","val.not_valid_email":"%{fld_name} not a valid email address","val.password_not_match":"%{fld_name} does not match with its password","val.invalid":"%{fld_name} is invalid","val.length_not_valid":"%{fld_name} length is not valid, please check it","val.should_be_more_than":"%{fld_name} should be more than %{min}","val.should_be_less_than":"%{fld_name} should be less than %{max}","sys.wholesale_shop":"Wholesale Shop","sys.quotes":"Quotes","sys.shop_pro_required_title":"Wholesale Shop is a Pro feature","sys.shop_pro_required_desc":"Activate ViteWholesale Pro to display the dedicated wholesale shop on this page. This message is only visible to administrators.","sys.shop_unavailable_title":"Wholesale Shop is currently unavailable","sys.shop_unavailable_desc":"This is a Pro feature \u2014 only approved wholesale customers on a store with ViteWholesale Pro active can access it.","sys.manage_plugins":"Manage Plugins","sys.endpoint_pro_required":"%s is only available to approved wholesale customers.","sys.wholesale_status_label":"Wholesale status:","sys.badge_label":"Badge: %s","sys.storefront_price_each":"Wholesale price: %s each","sys.storefront_tier_price":"Buy %1$d or more for %2$s each (wholesale price)"}};1 /* vitewholesale-lang 998715d3dbf1 | generated from this site's translations. Do not edit. */ 2 window.apbd_vitewholesale_lang = {"code":"en_US","digits":["0","1","2","3","4","5","6","7","8","9"],"translations":{"gbl.version":"Version: %{version}","gbl.toggle_sidebar":"Toggle sidebar","gbl.first_name":"First Name","gbl.last_name":"Last Name","gbl.email":"Email","gbl.username":"Username","gbl.mobile":"Mobile","gbl.city":"City","gbl.street":"Street","gbl.country":"Country","gbl.postcode":"Postcode","gbl.state":"State","gbl.add":"Add %{name}","gbl.edit":"Edit %{name}","gbl.edit.now":"Edit","gbl.search":"Search %{name}","gbl.search.by":"Search by %{name}","gbl.search.btn":"Search","gbl.reset":"Reset","gbl.select":"Select %{name}","gbl.select.type":"Select type","gbl.enter":"Enter %{name}","gbl.delete":"Delete","gbl.reload":"Reload","gbl.action":"Action","gbl.loading":"Loading...","gbl.updating":"Updating...","gbl.adding":"Adding...","gbl.submitting":"Submitting...","gbl.submit":"Submit","gbl.status":"Status","gbl.active":"Active","gbl.inactive":"Inactive","gbl.sure":"Are you sure?","gbl.close":"Close","gbl.save":"Save","gbl.save.changes":"Save Changes","gbl.update.failed":"Failed to update.","gbl.add.failed":"Failed to add.","gbl.no_change":"No Change For Update","gbl.created.at":"Created At","gbl.status.to_inactive":"Change status to Inactive?","gbl.status.to_active":"Change status to Active?","gbl.product":"Product","gbl.category":"Category","gbl.fixed":"Fixed","gbl.percentage":"Percentage","gbl.min.qty":"Min qty","gbl.qty":"Qty","gbl.eq":"Equal to","gbl.ne":"Not equal to","gbl.ex":"Except","gbl.customer":"Customer","gbl.remove":"Remove","gbl.phone":"Phone","gbl.pending":"Pending","gbl.approved":"Approved","gbl.rejected":"Rejected","gbl.revoked":"Revoked","gbl.reject":"Reject","gbl.cancel":"Cancel","gbl.note":"Note","gbl.details":"%{name} Details","gbl.delete.title":"Delete %{name}","gbl.title":"Title","gbl.description":"Description","gbl.updated":"Successfully updated","gbl.lang_cache_unwritable":"Updated, but the uploads folder is not writable, so the panel language cache could not be refreshed. Ask your host to make wp-content/uploads writable, or the panels may keep showing an older translation.","gbl.added":"Successfully added","gbl.deleted":"Successfully deleted","gbl.delete.failed":"Delete failed, please try again","gbl.changed":"%{name} changed successfully","gbl.failed.change":"Failed to change %{name}","gbl.failed.delete":"Failed to delete %{name}","gbl.failed.save":"Failed to save %{name}","gbl.failed.set_default":"Failed to set default %{name}","gbl.set_default.success":"Set as default %{name} successfully","gbl.not_found":"%{name} not found","gbl.invalid_request":"Invalid request","gbl.status.update":"Status updated successfully","gbl.status.update_failed":"Status update failed","gbl.no_properties_to_update":"Properties cannot be updated","gbl.login_required":"You must be logged in","gbl.woocommerce_unavailable":"WooCommerce is not available","gbl.forbidden":"You do not have permission to perform this action","gbl.wholesale_access_required":"You do not have wholesale access","gbl.required_fields":"Please fill in all required fields","gbl.name":"Name","gbl.yes":"Yes","gbl.no":"No","gbl.discount":"Discount","gbl.view":"View","gbl.default":"Default","gbl.set_default":"Set as default","gbl.set_default.name":"Set as default %{name}","gbl.set_default.confirm":"Set as default %{name}?","gbl.pro":"Pro","gbl.copy":"Copy","gbl.coming_soon":"Coming Soon","gbl.company":"Company","gbl.address_1":"Address 1","gbl.address_2":"Address 2","gbl.shipping":"Shipping","gbl.billing":"Billing","gbl.shipping_address":"Shipping Address","gbl.billing_address":"Billing Address","gbl.items":"Items","gbl.total":"Total","nav.wholesale":"Wholesale","nav.admin":"Admin Menu","gbl.filter":"Filter","Search":"Search","Reset":"Reset","pro.required_title":"Pro Version Required","pro.unlock_all_intro":"Upgrade to Vite Wholesale Pro to unlock:","pro.get_plugin":"Get Pro Plugin","pro.feature.custom_fields.desc1":"Add unlimited custom fields to the wholesale application","pro.feature.custom_fields.desc2":"Text, dropdown, checkbox, radio, date & more field types","pro.feature.custom_fields.desc4":"Show or hide fields on the application form","pro.feature.quote.desc1":"Customers can request custom quotes","pro.feature.quote.desc2":"Negotiate pricing directly in a conversation thread","pro.feature.quote.desc4":"Convert accepted quotes into orders","pro.feature.email.desc1":"Customize every wholesale email sent to customers","pro.feature.email.desc2":"Application submitted/approved/rejected templates","pro.feature.email.desc4":"Match your store's own branding","pro.field_locked":"This is a Pro feature \u2014 click to learn more","pro.feature.address.desc1":"Customers manage multiple shipping/billing addresses","pro.feature.address.desc2":"Set a default address for faster checkout","pro.feature.address.desc4":"Validated against WooCommerce's own address fields","pro.feature.badge_upgrade.desc1":"Automatically upgrade a customer's badge as they spend more","pro.feature.badge_upgrade.desc2":"Set a purchase-total threshold per badge","pro.feature.badge_upgrade.desc4":"Customer is emailed automatically when upgraded","nav.prl":"Pricing Rules","prl.entity":"Pricing Rule","prl.name":"Rule Name","prl.rules":"Rules","prl.rule":"Rule","prl.group.add":"Add Rules Group","prl.group.num":"Rule Group# %{n}","prl.and":"AND","prl.or":"OR","prl.condition.empty":"No conditions \u2014 this group matches no products. Add a condition or remove this group.","prl.group.empty":"No rule groups \u2014 add one to scope this discount.","prl.matches_nothing":"Saved, but this rule matches no products yet.","prl.status.desc":"Enable or disable this rule.","prl.discount.type":"Discount Type","prl.discount.value":"Discount Value","prl.condition.field":"Condition Field","prl.condition.operator":"Condition Operator","prl.min_qty.tooltip":"Minimum quantity of matching items a customer must order for this condition to be satisfied.","prl.desc.sentence":"Apply this rule to %{body}.","prl.desc.sentence_open":"Apply this rule to %{body}","prl.desc.all_products":"all products","prl.desc.product":"product %{name}","prl.desc.category":"products in the %{name} category","prl.desc.product_not":"there is no product %{name} in the cart","prl.desc.category_not":"there are no %{name} category products in the cart","prl.desc.except_product":"%{name}","prl.desc.except_category":"%{name} category products","prl.desc.with_qty":"%{subject}, with a quantity of %{qty} for each product","prl.desc.qty_condition":"%{body}","prl.desc.join":"and","prl.desc.except_sentence":"but it will not apply to %{body}.","prl.desc.empty":"No conditions yet -- this group currently matches no products.","prl.groups_save_failed_after_create":"Pricing rule created, but saving its rule groups failed","prl.groups_save_failed_after_update":"Pricing rule updated, but saving its rule groups failed","prl.rule_in_use_by_badges":"This rule cannot be deleted or deactivated because it is currently being used by the %{badge_name} badge. Please remove the rule from the badge first.","nav.apl":"Applications","apl.entity":"Application","apl.title":"Wholesale Application","apl.submit":"Submit Application","apl.already_pending":"You already have a pending wholesale application","apl.already_approved":"You are already an approved wholesale customer","apl.submit_success":"Wholesale application submitted successfully","apl.view_details":"View Details","apl.approve":"Approve","apl.approve.confirm":"Approve this application?","apl.approve.success":"Application approved successfully.","apl.approve.failed":"Failed to approve application.","apl.submitted_at":"Submitted At","apl.reviewed_at":"Reviewed At","apl.rejection_reason":"Rejection Reason","apl.submitted_fields":"Submitted Fields","apl.reject.title":"Reject Application","apl.rejecting":"Rejecting...","apl.reject.success":"Application rejected successfully.","apl.reject.failed":"Failed to reject application.","apl.submit_failed":"Failed to submit application.","apl.approved_msg":"You are an approved wholesale customer","apl.approved_desc":"Enjoy your wholesale pricing and benefits.","apl.pending_title":"Application Status: Pending","apl.pending_desc":"Your wholesale application is under review. We will notify you once a decision has been made.","apl.what_is_title":"What is Wholesale?","apl.what_is_desc":"Wholesale customers unlock a dedicated wholesale shop, tiered bulk pricing, the ability to request custom quotes, and other exclusive features not available to regular shoppers.","apl.benefit.pricing":"Wholesale Pricing","apl.benefit.shop":"Dedicated Wholesale Shop","apl.benefit.quotes":"Quote Requests","apl.benefit.exclusive":"Exclusive Features","apl.apply_again":"Apply Again","apl.apply":"Apply for Wholesale","apl.delete.only_rejected":"Only a rejected or revoked application can be deleted.","apl.revoked_reason":"Revoked Reason","apl.revoked_title":"Your wholesale access has been revoked","apl.revoked_desc":"Please contact us if you have questions. You may also apply again below.","apl.reapplied_tooltip":"This customer has applied %d time(s) before, %d of which were rejected or revoked.","apl.reapplied_badge":"Reapplied","nav.cpr":"Custom Wholesale Price","cpr.entity":"Product","cpr.product":"Product","cpr.set_price":"Set Custom Price","cpr.custom_price":"Enable Custom Wholesale Price","cpr.custom_price.desc":"When on, the prices below replace pricing rules for this product. A badge with no price set here still uses the pricing rules.","cpr.badges_priced":"Badges with Price","cpr.no_price_set":"No custom price is set yet. Pricing rules (if any) will apply until you set one.","cpr.modal_title":"Custom Wholesale Price: %{name}","cpr.sale_price":"Sale Price","cpr.regular_price":"Regular Price","cpr.cost_of_goods":"Cost of Goods","cpr.badge_prices":"Price per Badge","cpr.variation_prices":"Price per Variation","cpr.variation_hint":"Set the wholesale price for each variation. A variation with no price uses your pricing rules, or the normal price if none apply.","cpr.no_badges":"There are no active badges. Add a badge first.","cpr.price":"Price","cpr.below_cost_warning":"Warning: this price is below the minimum price (cost of goods plus margin).","cpr.tip_toggle":"Turn on to use the custom wholesale prices for this product instead of pricing rules.","cpr.tip_priced_one":"A custom wholesale price is set for 1 badge.","cpr.tip_priced_many":"A custom wholesale price is set for %{count} badges.","cpr.tip_badge_input":"Enter wholesale price for this badge","cpr.below_cost_for":"Below the minimum price of %{min}: %{badges}","cpr.confirm_enable":"Turn on the custom wholesale price for this product?","cpr.confirm_enable_btn":"Yes, turn on","cpr.confirm_disable":"Turn off the custom wholesale price for this product? The saved prices are kept.","cpr.confirm_disable_btn":"Yes, turn off","cpr.invalid_price":"Enter a valid price. Prices cannot be negative.","cpr.below_cost_blocked":"A price below the minimum price (cost of goods plus margin) cannot be saved. Raise the price, or allow it in Settings.","cpr.not_editable":"You do not have permission to edit this product.","nav.bdg":"Badges","bdg.entity":"Badge","bdg.information":"Badge Information","bdg.title":"Badge Title","bdg.description.placeholder":"Enter description (optional)","bdg.payment_methods":"Payment Methods","bdg.options":"Badge Options","bdg.status.desc":"Enable or disable this badge.","bdg.upgrade_threshold":"Upgrade Threshold","bdg.upgrade_threshold.hint":"Minimum purchase amount required for automatic upgrade. 0 = admin assign only.","bdg.admin_assign_only":"Admin assign only","bdg.default_badge":"Default Badge","bdg.set_default.success":"Default badge updated successfully.","bdg.usage_warning":"%{count} customer(s) are assigned to this badge. Choose a replacement badge before deleting.","bdg.replacement":"Replacement Badge","bdg.deleting":"Deleting...","bdg.assign.confirm":"I confirm that I want to assign the %{badge_name} badge to this customer.","bdg.assign.confirm.required":"Please confirm the badge assignment.","bdg.default_required":"At least one badge must remain the default. Set another badge as default first.","bdg.default_must_be_active":"Only an active badge can be the default. Activate this badge first.","bdg.default_no_inactive":"The default badge cannot be deactivated. Set another badge as default first.","bdg.delete_reassign_required":"This badge is assigned to %{count} customer(s). Select a replacement badge to continue.","bdg.delete_self_reassign":"Cannot reassign customers to the badge being deleted. Select a different replacement badge.","bdg.reassign_failed":"Failed to reassign customers to the replacement badge","bdg.none_active":"No active badges are configured","nav.cfd":"Custom Fields","cfd.entity":"Custom Field","cfd.label":"Label","cfd.type":"Type","cfd.place_to_show":"Place to show","cfd.order":"Order","cfd.visibility":"Visibility","cfd.required_status":"Required status","cfd.user":"User","cfd.type.checkbox":"Checkboxes","cfd.type.radio":"Radio","cfd.type.switch":"Switch","cfd.type.dropdown":"Dropdown","cfd.type.text":"Text","cfd.type.textarea":"Textarea","cfd.type.number":"Number","cfd.type.url":"URL","cfd.type.date":"Date","cfd.form_label":"Form Label","cfd.field_label":"Field Label","cfd.field_type":"Field Type","cfd.help_text":"Help Text","cfd.show_where":"Show Where","cfd.select_location":"Select Location","cfd.field_options":"Field Options","cfd.add_options_hint":"Add selectable options","cfd.add_option":"Add Option","cfd.value":"Value","cfd.half_field":"Half Field","cfd.required":"Required","cfd.form.title":"Wholesale Application Form Fields","cfd.form.field_name":"Field Name","cfd.form.hide":"Hide","cfd.form.show_confirm":"Show this field?","cfd.form.hide_confirm":"Hide this field?","cfd.form.optional_confirm":"Make this field optional?","cfd.form.required_confirm":"Make this field required?","cfd.tab.list":"Custom Fields List","cfd.tab.form":"Custom Field Form","nav.cus":"Customers","cus.search.placeholder":"Search by name or email","cus.assign_badge":"Assign Badge","cus.no_badge":"No Badge","cus.current_badge":"Current Badge","cus.wholesale_status":"Wholesale Status","cus.assign_failed":"Failed to assign badge.","cus.total_spent":"Total Spent","cus.upgrade_to":"Upgrade to %{badge_name}","cus.upgrade_title":"Badge Upgrade Available","cus.upgrade_confirm":"Would you like to upgrade this customer from %{current_badge} to %{badge_name}?","cus.upgrade_desc":"This user's current sales are %{total_spent}, which exceeds the required threshold for the %{badge_name} Badge(%{threshold}). The user is now eligible for a %{badge_name} Badge upgrade.","cus.upgrade_success":"Customer badge upgraded successfully","cus.upgrade_failed":"Failed to upgrade customer badge.","cus.upgrade_ineligible":"This customer is not eligible for a badge upgrade right now","cus.assignment_not_found":"Customer badge assignment not found","cus.badge_threshold":"Threshold","cus.below_threshold_warning":"%{badge_name} requires a minimum spend of %{threshold}, but this customer has only spent %{total_spent} so far.","cus.wholesale_status.desc":"Turn off to remove this customer's wholesale access and badge.","cus.wholesale_disable_notice":"This badge is no longer active \u2014 saving will remove it and this customer's wholesale access.","nav.eml":"Email Templates","eml.entity":"Email Template","eml.group":"Group","eml.subject":"Subject","eml.content":"Content","eml.placeholders":"Available Placeholders","eml.click_to_insert":"Click to insert","eml.no_properties":"No properties defined","eml.property":"Property","nav.qut":"Quote Manage","qut.quote":"Quote","qut.number":"Quote #","qut.status.negotiating":"Negotiating","qut.status.offer_sent":"Offer Sent","qut.status.accepted":"Accepted","qut.status.expired":"Expired","qut.status.order_created":"Order Created","qut.requested":"Requested","qut.grand_total":"Grand Total","qut.items_total":"Items Total","qut.items":"Quote Items","qut.line_total":"Line Total","qut.was":"was","qut.below_cost":"Below cost price!","qut.total_below_cost":"After the discount the total is %{revenue} (shipping excluded), below the %{cost} cost of the items.","qut.total_below_cost_hint":"Items with no cost price are not counted.","qut.min_price_short":"Minimum %{min}","qut.below_cost_note":"Cost price is %{cost}.","qut.below_cost_margin":"Cost price %{cost} + margin %{margin} = minimum %{min}.","qut.no_items":"No items","qut.shipping.original":"Original Shipping Price","qut.shipping.discount":"Shipping Discount","qut.shipping.final":"Final Shipping Price","qut.shipping.hint":"Amount to discount off shipping.","qut.shipping.method":"Method","qut.make_offer":"Make Offer","qut.reject_confirm":"Reject this quote?","qut.conversation":"Conversation","qut.no_messages":"No messages yet.","qut.type_message":"Type a message...","qut.send":"Send","qut.offer_price":"Offer Price","qut.action_failed":"Something went wrong. Please try again.","qut.accept_confirm":"Accept this offer and create an order?","qut.accept_offer":"Accept Offer","qut.reject_offer":"Reject Offer","qut.send_hint":"Send your message.","qut.my_quotes":"My Quotes","qut.total_count":"%{count} total","qut.empty":"You have not requested any quotes yet.","qut.message_label":"Message","qut.message_optional":"Message (optional)","qut.message_placeholder":"Need better pricing for this order...","qut.note_label":"Note to customer (optional)","qut.note_placeholder":"Included in the conversation and the notification email...","qut.offer_note_label":"Add a message (optional)","qut.offer_note_placeholder":"Included in the conversation and sent with your response...","qut.validation.address":"Please choose a shipping address","qut.validation.method":"Please choose a shipping method","qut.validation.message":"Please describe what you need in your quote request","qut.request_title":"Request a Quote","qut.request_desc":"Choose the address this quote should ship to.","qut.request_desc_no_address":"This quote will ship to your account address. Add a shipping address if it should go somewhere else.","qut.request_desc_add_address":"Add a shipping address to request a quote.","qut.choose_shipping_method":"Choose a shipping method.","qut.no_shipping_methods":"No shipping methods are available for this address.","qut.request_success":"Quote request submitted successfully.","qut.request_failed":"Failed to submit quote request.","qut.requests_disabled":"Quote requests are currently disabled","qut.validation.address_and_method":"Please choose a shipping address and method","qut.shipping_method_unavailable":"The selected shipping method is not available for this address","qut.no_active_offer":"This quote has no active offer to accept","qut.order_failed":"Failed to create your order, please try again or contact support","qut.order_created":"Order created successfully","qut.status_not_allowed":"This action is not available for the quote's current status","qut.reply_sent":"Reply sent","qut.rejected":"Quote rejected","qut.no_longer_offerable":"This quote can no longer be offered on","qut.provide_address":"Please provide an address to calculate shipping","nav.set":"Settings","set.entity":"General Settings","set.theme_color":"Theme Color","set.theme_color.desc":"Main color of the admin panel and the customer-facing wholesale pages. Pick one, then save.","set.color.green":"Green","set.color.blue":"Blue","set.color.cyan":"Cyan","set.color.violet":"Violet","set.color.purple":"Purple","set.color.pink":"Pink","set.color.red":"Red","set.color.orange":"Orange","set.color.gray":"Gray","set.color.black":"Black","set.non_logged_in.desc":"%{name} for non logged in users.","set.wholesale_price_text":"Wholesale Price Text","set.rule_priority_strategy":"Rule Priority Strategy","set.base_price":"Base Price","set.hide_wholesale_price":"Hide Wholesale Price","set.hide_retail_price":"Hide Retail Price","set.enable_badge_payment":"Enable Badge Payment","set.enable_badge_payment.desc":"Restrict checkout payment methods at checkout to only the ones allowed by the customer's wholesale badge.","set.disable_coupon":"Disable Coupon","set.disable_coupon.desc":"Prevent wholesale customers from applying coupons on the Cart and Checkout pages. Enforced on the backend even if the coupon form is bypassed.","set.enable_quote_management":"Enable Quote Management","set.enable_quote_request":"Enable Quote Request","set.custom_address_feature_enabled":"Custom Address Feature Enabled","set.custom_address_feature_enabled.desc":"When off, customers use WooCommerce's normal single billing/shipping address instead of the saved-address book.","set.enable_quote_request.desc":"Allow approved wholesale customers to submit new quote requests. When off, the Request Quote button is hidden and new requests are blocked \u2014 existing quotes are unaffected.","set.enable_email_notification":"Enable Email Notification","set.enable_email_notification.desc":"Send wholesale-related emails (quotes, badges, templates). When off, no emails are sent.","set.badge_upgrade_type":"Badge Upgrade Type","set.badge_upgrade_type.manual":"Manual","set.badge_upgrade_type.manual.desc":"An admin upgrades a customer's badge by hand from the Customers screen when they've crossed a threshold.","set.badge_upgrade_type.automatic":"Automatic","set.badge_upgrade_type.automatic.desc":"A daily background job also upgrades customers on its own, in addition to the manual option staying available.","set.badge_upgrade_order_statuses":"Badge Upgrade Order Status","set.badge_upgrade_order_statuses.desc":"Orders in this status count toward a customer's cumulative purchase total for badge upgrades (manual or automatic).","set.is_vitepos_enabled":"VitePOS Integration","set.is_vitepos_enabled.desc":"Sync wholesale pricing and badges with VitePOS.","set.disable_discount_button":"Disable Discount Button","set.disable_discount_button.desc":"When enabled, the Discount Apply button is disabled/hidden in VitePOS, preventing users from applying discounts from VitePOS.","set.disable_fee_btn":"Disable Fee Button","set.disable_fee_btn.desc":"When enabled, the Fee button is disabled/hidden in VitePOS, preventing users from applying fees from VitePOS.","set.enable_cost_protection":"Enable Cost (Purchase Price) Protection","set.enable_cost_protection.desc":"Never let a wholesale rule price a product below its cost plus margin. If a matched rule's price would fall under that floor, the floor price is used instead. To use it: (1) enter a cost price on each product using the \"Cost of Goods\" field (WooCommerce Cost of Goods plugin), (2) set the margin below, (3) turn this on. Products with no cost entered are not protected.","set.margin_value":"Margin Value","set.margin_value.desc":"A fixed amount added to the cost to set the lowest allowed price (not a percentage). Example: cost 10.00 + margin 2.00 = lowest price 12.00. Enter 0 to protect the cost only.","set.allow_below_cost_custom_price":"Allow Custom Price Below Cost (Purchase Price)","set.allow_below_cost_custom_price.desc":"When on, the admin can set any custom wholesale price lower than the product cost (purchase price). When off, a custom wholesale price lower than the product cost (purchase price), plus the margin when Cost Protection is on, cannot be saved.","set.allow_below_cost_custom_price.info_cp_on":"Cost Protection is on: lowest allowed price = cost (purchase price) + margin (%{margin}).","set.allow_below_cost_custom_price.info_cp_on_zero":"Cost Protection is on and the margin is 0: the lowest allowed price is the cost (purchase price) itself.","set.allow_below_cost_custom_price.info_cp_off":"Cost Protection is off: the margin is ignored and the lowest allowed price is the cost (purchase price).","set.allow_below_cost_custom_price.info_allow_on":"This setting is on: a custom price below the lowest allowed price can be saved.","set.allow_below_cost_custom_price.info_allow_off":"This setting is off: a custom price below the lowest allowed price cannot be saved.","set.allow_below_cost_custom_price.info_no_cost":"Products with no cost (purchase price) entered are not checked.","set.save":"Save Settings","set.refresh_app":"Refresh App and Clear Cache","set.tab.rule":"Rule Settings","set.strategy.min":"Minimum Price","set.strategy.max":"Maximum Price","set.base_price.regular":"Regular Price","set.base_price.sale":"Sale Price","set.max_input_qty":"Maximum Input Quantity (Wholesale Shop)","set.max_input_qty.desc":"The most units of a single product a customer can enter in the Wholesale Shop and its cart panel. Does not apply to the regular WooCommerce shop, product pages or cart.","set.base_price.desc":"The %{name} of the product will be used as the base price.","set.strategy.min.desc":"If checked, the lowest price found in any of the matched price rules will be used. For example, if Rule A sets a price of $5 and Rule B sets a price of $3, $3 will be used.","set.strategy.max.desc":"If checked, the highest price found in any of the matched price rules will be used. For example, if Rule A sets a price of $5 and Rule B sets a price of $3, $5 will be used.","set.page":"Page Settings","set.wholesale_shop_shortcode.desc":"Use this shortcode to display the Wholesale Shop on any WordPress page.","set.wholesale_shop_display_mode":"Wholesale Shop Display Mode","set.shop.shortcode":"Shortcode","set.shop.full_page":"Full Page","set.shop.shortcode.desc":"You can use the [wholesale_shop] shortcode on any page you like to display the shop. The shop will then appear in your theme's normal layout (inside header, footer, and sidebar).","set.shop.full_page.desc":"The shop will be displayed as a standalone page \u2014 independent of your theme. It will not show your site's header, footer, or sidebar.","adr.entity":"Address","adr.my_addresses":"My Addresses","adr.empty":"You have not saved any addresses yet.","adr.set_default_hint":"If checked, this address will be set as default address for","adr.delete_confirm":"Delete this address?","adr.type":"Address Type","adr.label":"Address Label","adr.bootstrap_prompt":"Add an address to continue \u2014 this is a one-time step.","adr.saved_continue":"Address saved \u2014 continue below.","adr.autofill_failed":"Could not autofill the %{name} address \u2014 please enter it manually below.","adr.none_yet":"You have no saved %{name} addresses yet.","adr.feature_disabled":"The address book feature is currently disabled","shp.add_to_cart":"Add to Cart","shp.add_to_cart_failed":"Unable to add product to cart","shp.your_cart":"Your Cart","shp.clear_all":"Clear All","shp.cart_empty":"Your cart is empty","shp.wholesale_price":"Wholesale Price","shp.unit_price":"Unit Price","shp.proceed_checkout":"Proceed to Checkout","shp.subtotal":"Subtotal","shp.tax_shipping_note":"Shipping and taxes calculated at checkout.","shp.request_quote":"Request Quote","shp.clear_cart_failed":"Unable to clear cart","shp.search_placeholder":"Search by product name or SKU...","shp.search_clear":"Clear search","shp.all_products":"All Products","shp.select_subcategory":"Select Sub-category","shp.subcategories":"Sub-categories","shp.close_category":"Close","shp.no_products":"No products found","shp.load_more":"Load more","shp.select_variations":"Select Variations","shp.no_options":"No options available","shp.max_qty_reached":"Maximum quantity of %{max} reached","shp.update_qty_failed":"Unable to update quantity","shp.remove_item_failed":"Unable to remove item","shp.back_to_shop":"Back to shop","shp.invalid_variation":"Please select a valid product option","shp.invalid_cart_item":"Invalid cart item","nav.rpt":"Reports","rpt.sales_overview":"Sales Overview","rpt.date_range":"Date Range","rpt.role":"Role","rpt.all_roles":"All Roles","rpt.category":"Category","rpt.all_categories":"All Categories","rpt.apply":"Apply","rpt.refresh":"Refresh","rpt.export":"Export","rpt.total_wholesale_revenue":"Total Wholesale Order Amount","rpt.total_retail_revenue":"Total Retail Order Amount","rpt.total_orders":"Total Orders","rpt.growth_rate":"Growth Rate","rpt.unique_customers":"Total Wholesale Customers","rpt.total_retail_users":"Total Retail/Non-Wholesale Users","rpt.total_users":"Total Users","rpt.wholesale_users":"Wholesale Users","rpt.normal_users":"Normal Users","rpt.wholesale_orders":"Wholesale Orders","rpt.retail_orders":"Retail Orders","rpt.vs_previous_period":"vs previous period","rpt.new_this_period":"%{count} new this period","rpt.not_available":"n/a","rpt.wholesale_vs_retail":"Wholesale vs Retail Split","rpt.wholesale":"Wholesale","rpt.retail":"Retail","rpt.revenue_trend":"Revenue Trend (Last 6 Months)","rpt.key_insight":"Key Insight","rpt.wholesale_applications":"Wholesale Applications","rpt.app_total":"Total Applications","rpt.app_pending":"Pending Applications","rpt.app_approved":"Approved Applications","rpt.app_rejected":"Rejected Applications","rpt.sales_trend":"Sales Trend","rpt.weekly":"Weekly","rpt.monthly":"Monthly","rpt.recent_activity":"Recent Activity","rpt.no_recent_activity":"No recent activity.","rpt.activity_order_completed":"%{name} completed an order","rpt.activity_application_submitted":"New application submitted by %{name}","rpt.activity_application_approved":"%{name}'s application was approved","rpt.activity_application_rejected":"%{name}'s application was rejected","rpt.activity_application_revoked":"%{name}'s wholesale status was revoked","rpt.activity_badge_assigned":"%{name} was assigned the %{badge} badge","rpt.activity_badge_upgraded":"%{name}'s badge was changed from %{previous} to %{badge}","rpt.just_now":"Just now","rpt.minutes_ago":"%{count}m ago","rpt.hours_ago":"%{count}h ago","rpt.days_ago":"%{count}d ago","rpt.no_data":"No wholesale orders found for this filter combination.","rpt.role_hint":"Reflects the customer's current badge, not their badge at order time.","rpt.load_failed":"Failed to load report data.","rpt.product_sales":"Product Sales","rpt.performance_analytics":"Performance Analytics","rpt.top_products_by_volume":"Top 10 Products by Volume","rpt.top_products_by_revenue":"Top 10 Products by Revenue","rpt.col_rank":"#","rpt.col_product":"Product","rpt.col_units_sold":"Units Sold","rpt.col_revenue":"Revenue","rpt.col_units":"Units","rpt.no_products":"No product sales found for this filter combination.","rpt.best_sellers_volume":"Best Sellers by Volume (Top 10)","rpt.best_customers":"Best Customers (Top 10)","rpt.category_performance":"Category Performance","rpt.no_performance_data":"No sales data found for this filter combination.","pro.feature.reports.desc1":"Wholesale revenue, orders, and customer stats at a glance","pro.feature.reports.desc2":"Wholesale vs retail split and a 6-month revenue trend","pro.feature.reports.desc4":"Filter by date range, badge tier, or product category","rpt.pro_showcase_banner_title":"Unlock advanced reporting","rpt.pro_showcase_banner_body":"Charts, revenue trends, filters, CSV export, and two more report views are available in Pro.","rpt.pro_showcase_tab_title":"This report is a Pro feature","rpt.pro_showcase_tab_body":"Upgrade to Pro to unlock this report, with live data for your store.","rpt.upgrade_to_pro":"Upgrade to Pro","rpt.preview_sales_trend":"Sales Trend chart","rpt.preview_wholesale_vs_retail":"Wholesale vs. Retail split","rpt.preview_wholesale_applications":"Wholesale Applications breakdown","rpt.preview_recent_activity":"Recent Activity feed","rpt.preview_product_sales":"Product Sales breakdown (Top by Volume / Top by Revenue)","rpt.preview_performance_analytics":"Performance Analytics (Best Sellers, Best Customers, Category Performance)","nav.license":"License","lic.entity":"License Info","lic.status":"License Status","lic.status.valid":"Valid","lic.status.invalid":"Invalid","lic.type":"License Type","lic.expires_on":"License Expires On","lic.support_expires_on":"Support Expires On","lic.key":"Your License Key","lic.renew":"Renew","lic.deactivate":"Deactivate License","lic.deactivate.confirm":"Are you sure you want to deactivate this license?","lic.not_licensed":"No Active License Found","lic.not_licensed.desc":"Activate your Vite Wholesale Pro license key to unlock updates and premium support.","lic.promo.title":"Vite Wholesale Pro","lic.promo.desc":"Unlock pricing rules, quote negotiation, customer address book, and more.","lic.promo.cta":"Learn more","val.required":"%{fld_name} is required","val.should_be_numeric":"%{fld_name} should be numeric","val.not_valid_email":"%{fld_name} not a valid email address","val.password_not_match":"%{fld_name} does not match with its password","val.invalid":"%{fld_name} is invalid","val.length_not_valid":"%{fld_name} length is not valid, please check it","val.should_be_more_than":"%{fld_name} should be more than %{min}","val.should_be_less_than":"%{fld_name} should be less than %{max}","sys.wholesale_shop":"Wholesale Shop","sys.quotes":"Quotes","sys.shop_pro_required_title":"Wholesale Shop is a Pro feature","sys.shop_pro_required_desc":"Activate ViteWholesale Pro to display the dedicated wholesale shop on this page. This message is only visible to administrators.","sys.shop_unavailable_title":"Wholesale Shop is currently unavailable","sys.shop_unavailable_desc":"This is a Pro feature \u2014 only approved wholesale customers on a store with ViteWholesale Pro active can access it.","sys.manage_plugins":"Manage Plugins","sys.endpoint_pro_required":"%s is only available to approved wholesale customers.","sys.wholesale_status_label":"Wholesale status:","sys.badge_label":"Badge: %s","sys.storefront_price_each":"Wholesale price: %s each","sys.storefront_tier_price":"Buy %1$d or more for %2$s each (wholesale price)"}}; -
vitewholesale/trunk/languages/vitewholesale.pot
r3756279 r3796310 203 203 msgstr "" 204 204 205 #. slug: gbl.product, rpt.col_product205 #. slug: gbl.product, cpr.entity, cpr.product, rpt.col_product 206 206 msgid "Product" 207 207 msgstr "" … … 858 858 859 859 #. Badge module (bdg.*). 860 #. slug: nav.cpr 861 msgid "Custom Wholesale Price" 862 msgstr "" 863 864 #. slug: cpr.set_price 865 msgid "Set Custom Price" 866 msgstr "" 867 868 #. slug: cpr.custom_price 869 msgid "Enable Custom Wholesale Price" 870 msgstr "" 871 872 #. slug: cpr.custom_price.desc 873 msgid "When on, the prices below replace pricing rules for this product. A badge with no price set here still uses the pricing rules." 874 msgstr "" 875 876 #. slug: cpr.badges_priced 877 msgid "Badges with Price" 878 msgstr "" 879 880 #. slug: cpr.no_price_set 881 msgid "No custom price is set yet. Pricing rules (if any) will apply until you set one." 882 msgstr "" 883 884 #. slug: cpr.modal_title 885 msgid "Custom Wholesale Price: %{name}" 886 msgstr "" 887 888 #. slug: cpr.sale_price, set.base_price.sale 889 msgid "Sale Price" 890 msgstr "" 891 892 #. slug: cpr.regular_price, set.base_price.regular 893 msgid "Regular Price" 894 msgstr "" 895 896 #. slug: cpr.cost_of_goods 897 msgid "Cost of Goods" 898 msgstr "" 899 900 #. slug: cpr.badge_prices 901 msgid "Price per Badge" 902 msgstr "" 903 904 #. slug: cpr.variation_prices 905 msgid "Price per Variation" 906 msgstr "" 907 908 #. slug: cpr.variation_hint 909 msgid "Set the wholesale price for each variation. A variation with no price uses your pricing rules, or the normal price if none apply." 910 msgstr "" 911 912 #. slug: cpr.no_badges 913 msgid "There are no active badges. Add a badge first." 914 msgstr "" 915 916 #. slug: cpr.price 917 msgid "Price" 918 msgstr "" 919 920 #. slug: cpr.below_cost_warning 921 msgid "Warning: this price is below the minimum price (cost of goods plus margin)." 922 msgstr "" 923 924 #. slug: cpr.tip_toggle 925 msgid "Turn on to use the custom wholesale prices for this product instead of pricing rules." 926 msgstr "" 927 928 #. slug: cpr.tip_priced_one 929 msgid "A custom wholesale price is set for 1 badge." 930 msgstr "" 931 932 #. slug: cpr.tip_priced_many 933 msgid "A custom wholesale price is set for %{count} badges." 934 msgstr "" 935 936 #. slug: cpr.tip_badge_input 937 msgid "Enter wholesale price for this badge" 938 msgstr "" 939 940 #. slug: cpr.below_cost_for 941 msgid "Below the minimum price of %{min}: %{badges}" 942 msgstr "" 943 944 #. slug: cpr.confirm_enable 945 msgid "Turn on the custom wholesale price for this product?" 946 msgstr "" 947 948 #. slug: cpr.confirm_enable_btn 949 msgid "Yes, turn on" 950 msgstr "" 951 952 #. slug: cpr.confirm_disable 953 msgid "Turn off the custom wholesale price for this product? The saved prices are kept." 954 msgstr "" 955 956 #. slug: cpr.confirm_disable_btn 957 msgid "Yes, turn off" 958 msgstr "" 959 960 #. slug: cpr.invalid_price 961 msgid "Enter a valid price. Prices cannot be negative." 962 msgstr "" 963 964 #. slug: cpr.below_cost_blocked 965 msgid "A price below the minimum price (cost of goods plus margin) cannot be saved. Raise the price, or allow it in Settings." 966 msgstr "" 967 968 #. slug: cpr.not_editable 969 msgid "You do not have permission to edit this product." 970 msgstr "" 971 860 972 #. slug: nav.bdg 861 973 msgid "Badges" … … 1291 1403 msgstr "" 1292 1404 1405 #. slug: qut.below_cost 1406 msgid "Below cost price!" 1407 msgstr "" 1408 1409 #. slug: qut.total_below_cost 1410 msgid "After the discount the total is %{revenue} (shipping excluded), below the %{cost} cost of the items." 1411 msgstr "" 1412 1413 #. slug: qut.total_below_cost_hint 1414 msgid "Items with no cost price are not counted." 1415 msgstr "" 1416 1417 #. slug: qut.min_price_short 1418 msgid "Minimum %{min}" 1419 msgstr "" 1420 1421 #. slug: qut.below_cost_note 1422 msgid "Cost price is %{cost}." 1423 msgstr "" 1424 1425 #. slug: qut.below_cost_margin 1426 msgid "Cost price %{cost} + margin %{margin} = minimum %{min}." 1427 msgstr "" 1428 1293 1429 #. slug: qut.no_items 1294 1430 msgid "No items" … … 1424 1560 1425 1561 #. slug: qut.request_desc_no_address 1426 msgid "Tell us what you need — we'll use your account address for this quote." 1562 msgid "This quote will ship to your account address. Add a shipping address if it should go somewhere else." 1563 msgstr "" 1564 1565 #. slug: qut.request_desc_add_address 1566 msgid "Add a shipping address to request a quote." 1427 1567 msgstr "" 1428 1568 … … 1497 1637 msgstr "" 1498 1638 1639 #. slug: set.theme_color 1640 msgid "Theme Color" 1641 msgstr "" 1642 1643 #. slug: set.theme_color.desc 1644 msgid "Main color of the admin panel and the customer-facing wholesale pages. Pick one, then save." 1645 msgstr "" 1646 1647 #. slug: set.color.green 1648 msgid "Green" 1649 msgstr "" 1650 1651 #. slug: set.color.blue 1652 msgid "Blue" 1653 msgstr "" 1654 1655 #. slug: set.color.cyan 1656 msgid "Cyan" 1657 msgstr "" 1658 1659 #. slug: set.color.violet 1660 msgid "Violet" 1661 msgstr "" 1662 1663 #. slug: set.color.purple 1664 msgid "Purple" 1665 msgstr "" 1666 1667 #. slug: set.color.pink 1668 msgid "Pink" 1669 msgstr "" 1670 1671 #. slug: set.color.red 1672 msgid "Red" 1673 msgstr "" 1674 1675 #. slug: set.color.orange 1676 msgid "Orange" 1677 msgstr "" 1678 1679 #. slug: set.color.gray 1680 msgid "Gray" 1681 msgstr "" 1682 1683 #. slug: set.color.black 1684 msgid "Black" 1685 msgstr "" 1686 1499 1687 #. slug: set.non_logged_in.desc 1500 1688 msgid "%{name} for non logged in users." … … 1618 1806 1619 1807 #. slug: set.enable_cost_protection 1620 msgid "Enable Cost Protection"1808 msgid "Enable Cost (Purchase Price) Protection" 1621 1809 msgstr "" 1622 1810 … … 1633 1821 msgstr "" 1634 1822 1823 #. slug: set.allow_below_cost_custom_price 1824 msgid "Allow Custom Price Below Cost (Purchase Price)" 1825 msgstr "" 1826 1827 #. slug: set.allow_below_cost_custom_price.desc 1828 msgid "When on, the admin can set any custom wholesale price lower than the product cost (purchase price). When off, a custom wholesale price lower than the product cost (purchase price), plus the margin when Cost Protection is on, cannot be saved." 1829 msgstr "" 1830 1831 #. slug: set.allow_below_cost_custom_price.info_cp_on 1832 msgid "Cost Protection is on: lowest allowed price = cost (purchase price) + margin (%{margin})." 1833 msgstr "" 1834 1835 #. slug: set.allow_below_cost_custom_price.info_cp_on_zero 1836 msgid "Cost Protection is on and the margin is 0: the lowest allowed price is the cost (purchase price) itself." 1837 msgstr "" 1838 1839 #. slug: set.allow_below_cost_custom_price.info_cp_off 1840 msgid "Cost Protection is off: the margin is ignored and the lowest allowed price is the cost (purchase price)." 1841 msgstr "" 1842 1843 #. slug: set.allow_below_cost_custom_price.info_allow_on 1844 msgid "This setting is on: a custom price below the lowest allowed price can be saved." 1845 msgstr "" 1846 1847 #. slug: set.allow_below_cost_custom_price.info_allow_off 1848 msgid "This setting is off: a custom price below the lowest allowed price cannot be saved." 1849 msgstr "" 1850 1851 #. slug: set.allow_below_cost_custom_price.info_no_cost 1852 msgid "Products with no cost (purchase price) entered are not checked." 1853 msgstr "" 1854 1635 1855 #. slug: set.save 1636 1856 msgid "Save Settings" … … 1651 1871 #. slug: set.strategy.max 1652 1872 msgid "Maximum Price" 1653 msgstr ""1654 1655 #. slug: set.base_price.regular1656 msgid "Regular Price"1657 msgstr ""1658 1659 #. slug: set.base_price.sale1660 msgid "Sale Price"1661 1873 msgstr "" 1662 1874 … … 1791 2003 msgstr "" 1792 2004 2005 #. slug: shp.subtotal 2006 msgid "Subtotal" 2007 msgstr "" 2008 2009 #. slug: shp.tax_shipping_note 2010 msgid "Shipping and taxes calculated at checkout." 2011 msgstr "" 2012 1793 2013 #. slug: shp.request_quote 1794 2014 msgid "Request Quote" … … 1801 2021 #. slug: shp.search_placeholder 1802 2022 msgid "Search by product name or SKU..." 2023 msgstr "" 2024 2025 #. slug: shp.search_clear 2026 msgid "Clear search" 1803 2027 msgstr "" 1804 2028 … … 2069 2293 2070 2294 #. slug: rpt.top_products_by_volume 2071 msgid "Top Products by Volume"2295 msgid "Top 10 Products by Volume" 2072 2296 msgstr "" 2073 2297 2074 2298 #. slug: rpt.top_products_by_revenue 2075 msgid "Top Products by Revenue"2299 msgid "Top 10 Products by Revenue" 2076 2300 msgstr "" 2077 2301 … … 2327 2551 msgstr "" 2328 2552 2553 msgid "Vite Wholesale" 2554 msgstr "" 2555 2556 msgid "Custom wholesale price" 2557 msgstr "" 2558 2559 msgid "Use the prices below instead of pricing rules for this product. A badge with no price here still uses the pricing rules." 2560 msgstr "" 2561 2562 msgid "Set the wholesale prices inside each variation (Variations tab, under the variation price). A variation with no price here uses your pricing rules, or the normal WooCommerce price if none apply." 2563 msgstr "" 2564 2565 msgid "Cost of goods" 2566 msgstr "" 2567 2568 msgid "Minimum price (cost + margin): %s" 2569 msgstr "" 2570 2571 msgid "Empty = use pricing rules" 2572 msgstr "" 2573 2574 msgid "Warning: a price is below the minimum price (cost of goods plus margin)." 2575 msgstr "" 2576 2577 msgid "A price below the minimum price (cost of goods plus margin) cannot be saved. Raise the price, or allow it in Wholesale settings." 2578 msgstr "" 2579 2580 msgid "Vite Wholesale prices" 2581 msgstr "" 2582 2583 msgid "Empty = use the product price" 2584 msgstr "" 2585 2586 msgid "Vite Wholesale: the custom prices were not saved because a price is below the minimum price (cost of goods plus margin). Other product changes were saved." 2587 msgstr "" 2588 2589 msgid "Vite Wholesale: the custom prices were not saved because a price is not valid (it must not be negative). Other product changes were saved." 2590 msgstr "" 2591 2329 2592 msgid "You are a wholesale user. You cannot apply coupons." 2330 2593 msgstr "" -
vitewholesale/trunk/readme.txt
r3756401 r3796310 7 7 WC requires at least: 8.0 8 8 WC tested up to: 10.9 9 Stable tag: 1.0. 59 Stable tag: 1.0.9 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
vitewholesale/trunk/vendor/composer/installed.php
r3756279 r3796310 4 4 'pretty_version' => 'dev-pre-release', 5 5 'version' => 'dev-pre-release', 6 'reference' => ' 00a939ddb376ff11b9ab4ab50e2b874b782f23fd',6 'reference' => '83f8b3eca3452686cded0e3532163559826b86e1', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-pre-release', 24 24 'version' => 'dev-pre-release', 25 'reference' => ' 00a939ddb376ff11b9ab4ab50e2b874b782f23fd',25 'reference' => '83f8b3eca3452686cded0e3532163559826b86e1', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
vitewholesale/trunk/vitewholesale.php
r3756279 r3796310 5 5 * Plugin URI: https://wholesale.vitepos.com 6 6 * Description: A WordPress Plugin by appsbd 7 * Version: 1.0. 57 * Version: 1.0.9 8 8 * Author: appsbd 9 9 * Author URI: https://appsbd.com -
vitewholesale/trunk/vitewholesale/core/class-vitewholesale.php
r3756279 r3796310 18 18 use vitewholesale\Modules\ViteWholesale_Badge; 19 19 use vitewholesale\Modules\ViteWholesale_Pricing_Rule; 20 use vitewholesale\Modules\ViteWholesale_Custom_Price; 20 21 use vitewholesale\Modules\ViteWholesale_Customer_Badge; 21 22 use vitewholesale\Modules\ViteWholesale_Activity_Log; … … 774 775 $this->add_module( ViteWholesale_Badge::class ); 775 776 $this->add_module( ViteWholesale_Pricing_Rule::class ); 777 $this->add_module( ViteWholesale_Custom_Price::class ); 776 778 $this->add_module( ViteWholesale_Customer_Badge::class ); 777 779 $this->add_module( ViteWholesale_Activity_Log::class ); … … 884 886 $jv->quote_request_enabled = $this->is_quote_request_enabled(); 885 887 $jv->max_input_qty = (int) ViteWholesale_Settings::get_module_option( 'max_input_qty', 99999 ); 888 $jv->theme_color = ViteWholesale_Settings::get_theme_color(); 886 889 $jv->nonce_timeout = 100; 887 890 … … 1163 1166 $jv->settings = $this->get_datetime_ui_settings(); 1164 1167 $jv->order_statuses = $this->get_wc_order_status_options(); 1168 $jv->theme_color = ViteWholesale_Settings::get_theme_color(); 1165 1169 $jv->nonce_timeout = 100; 1166 1170 $jv = appsbd_apply_filters( 'appsbd/wholesale/settings', $jv ); -
vitewholesale/trunk/vitewholesale/libs/class-app-language.php
r3756279 r3796310 325 325 326 326 327 $language['nav.cpr'] = $kernel_object->__( 'Custom Wholesale Price' ); 328 $language['cpr.entity'] = $kernel_object->__( 'Product' ); 329 $language['cpr.product'] = $kernel_object->__( 'Product' ); 330 $language['cpr.set_price'] = $kernel_object->__( 'Set Custom Price' ); 331 $language['cpr.custom_price'] = $kernel_object->__( 'Enable Custom Wholesale Price' ); 332 $language['cpr.custom_price.desc'] = $kernel_object->__( 'When on, the prices below replace pricing rules for this product. A badge with no price set here still uses the pricing rules.' ); 333 $language['cpr.badges_priced'] = $kernel_object->__( 'Badges with Price' ); 334 $language['cpr.no_price_set'] = $kernel_object->__( 'No custom price is set yet. Pricing rules (if any) will apply until you set one.' ); 335 $language['cpr.modal_title'] = $kernel_object->__( 'Custom Wholesale Price: %{name}' ); 336 $language['cpr.sale_price'] = $kernel_object->__( 'Sale Price' ); 337 $language['cpr.regular_price'] = $kernel_object->__( 'Regular Price' ); 338 $language['cpr.cost_of_goods'] = $kernel_object->__( 'Cost of Goods' ); 339 $language['cpr.badge_prices'] = $kernel_object->__( 'Price per Badge' ); 340 $language['cpr.variation_prices'] = $kernel_object->__( 'Price per Variation' ); 341 $language['cpr.variation_hint'] = $kernel_object->__( 'Set the wholesale price for each variation. A variation with no price uses your pricing rules, or the normal price if none apply.' ); 342 $language['cpr.no_badges'] = $kernel_object->__( 'There are no active badges. Add a badge first.' ); 343 $language['cpr.price'] = $kernel_object->__( 'Price' ); 344 $language['cpr.below_cost_warning'] = $kernel_object->__( 'Warning: this price is below the minimum price (cost of goods plus margin).' ); 345 $language['cpr.tip_toggle'] = $kernel_object->__( 'Turn on to use the custom wholesale prices for this product instead of pricing rules.' ); 346 $language['cpr.tip_priced_one'] = $kernel_object->__( 'A custom wholesale price is set for 1 badge.' ); 347 $language['cpr.tip_priced_many'] = $kernel_object->__( 'A custom wholesale price is set for %{count} badges.' ); 348 $language['cpr.tip_badge_input'] = $kernel_object->__( 'Enter wholesale price for this badge' ); 349 $language['cpr.below_cost_for'] = $kernel_object->__( 'Below the minimum price of %{min}: %{badges}' ); 350 $language['cpr.confirm_enable'] = $kernel_object->__( 'Turn on the custom wholesale price for this product?' ); 351 $language['cpr.confirm_enable_btn'] = $kernel_object->__( 'Yes, turn on' ); 352 $language['cpr.confirm_disable'] = $kernel_object->__( 'Turn off the custom wholesale price for this product? The saved prices are kept.' ); 353 $language['cpr.confirm_disable_btn'] = $kernel_object->__( 'Yes, turn off' ); 354 $language['cpr.invalid_price'] = $kernel_object->__( 'Enter a valid price. Prices cannot be negative.' ); 355 $language['cpr.below_cost_blocked'] = $kernel_object->__( 'A price below the minimum price (cost of goods plus margin) cannot be saved. Raise the price, or allow it in Settings.' ); 356 $language['cpr.not_editable'] = $kernel_object->__( 'You do not have permission to edit this product.' ); 327 357 $language['nav.bdg'] = $kernel_object->__( 'Badges' ); 328 358 $language['bdg.entity'] = $kernel_object->__( 'Badge' ); … … 451 481 $language['qut.line_total'] = $kernel_object->__( 'Line Total' ); 452 482 $language['qut.was'] = $kernel_object->__( 'was' ); 483 $language['qut.below_cost'] = $kernel_object->__( 'Below cost price!' ); 484 $language['qut.total_below_cost'] = $kernel_object->__( 'After the discount the total is %{revenue} (shipping excluded), below the %{cost} cost of the items.' ); 485 $language['qut.total_below_cost_hint'] = $kernel_object->__( 'Items with no cost price are not counted.' ); 486 $language['qut.min_price_short'] = $kernel_object->__( 'Minimum %{min}' ); 487 $language['qut.below_cost_note'] = $kernel_object->__( 'Cost price is %{cost}.' ); 488 $language['qut.below_cost_margin'] = $kernel_object->__( 'Cost price %{cost} + margin %{margin} = minimum %{min}.' ); 453 489 $language['qut.no_items'] = $kernel_object->__( 'No items' ); 454 490 $language['qut.shipping.original'] = $kernel_object->__( 'Original Shipping Price' ); … … 484 520 $language['qut.request_title'] = $kernel_object->__( 'Request a Quote' ); 485 521 $language['qut.request_desc'] = $kernel_object->__( 'Choose the address this quote should ship to.' ); 486 $language['qut.request_desc_no_address'] = $kernel_object->__( 'Tell us what you need — we\'ll use your account address for this quote.' ); 522 $language['qut.request_desc_no_address'] = $kernel_object->__( 'This quote will ship to your account address. Add a shipping address if it should go somewhere else.' ); 523 $language['qut.request_desc_add_address'] = $kernel_object->__( 'Add a shipping address to request a quote.' ); 487 524 $language['qut.choose_shipping_method'] = $kernel_object->__( 'Choose a shipping method.' ); 488 525 $language['qut.no_shipping_methods'] = $kernel_object->__( 'No shipping methods are available for this address.' ); … … 506 543 $language['nav.set'] = $kernel_object->__( 'Settings' ); 507 544 $language['set.entity'] = $kernel_object->__( 'General Settings' ); 545 $language['set.theme_color'] = $kernel_object->__( 'Theme Color' ); 546 $language['set.theme_color.desc'] = $kernel_object->__( 'Main color of the admin panel and the customer-facing wholesale pages. Pick one, then save.' ); 547 $language['set.color.green'] = $kernel_object->__( 'Green' ); 548 $language['set.color.blue'] = $kernel_object->__( 'Blue' ); 549 $language['set.color.cyan'] = $kernel_object->__( 'Cyan' ); 550 $language['set.color.violet'] = $kernel_object->__( 'Violet' ); 551 $language['set.color.purple'] = $kernel_object->__( 'Purple' ); 552 $language['set.color.pink'] = $kernel_object->__( 'Pink' ); 553 $language['set.color.red'] = $kernel_object->__( 'Red' ); 554 $language['set.color.orange'] = $kernel_object->__( 'Orange' ); 555 $language['set.color.gray'] = $kernel_object->__( 'Gray' ); 556 $language['set.color.black'] = $kernel_object->__( 'Black' ); 508 557 $language['set.non_logged_in.desc'] = $kernel_object->__( '%{name} for non logged in users.' ); 509 558 $language['set.wholesale_price_text'] = $kernel_object->__( 'Wholesale Price Text' ); … … 536 585 $language['set.disable_fee_btn'] = $kernel_object->__( 'Disable Fee Button' ); 537 586 $language['set.disable_fee_btn.desc'] = $kernel_object->__( 'When enabled, the Fee button is disabled/hidden in VitePOS, preventing users from applying fees from VitePOS.' ); 538 $language['set.enable_cost_protection'] = $kernel_object->__( 'Enable Cost Protection' );587 $language['set.enable_cost_protection'] = $kernel_object->__( 'Enable Cost (Purchase Price) Protection' ); 539 588 $language['set.enable_cost_protection.desc'] = $kernel_object->__( 'Never let a wholesale rule price a product below its cost plus margin. If a matched rule\'s price would fall under that floor, the floor price is used instead. To use it: (1) enter a cost price on each product using the "Cost of Goods" field (WooCommerce Cost of Goods plugin), (2) set the margin below, (3) turn this on. Products with no cost entered are not protected.' ); 540 589 $language['set.margin_value'] = $kernel_object->__( 'Margin Value' ); 541 590 $language['set.margin_value.desc'] = $kernel_object->__( 'A fixed amount added to the cost to set the lowest allowed price (not a percentage). Example: cost 10.00 + margin 2.00 = lowest price 12.00. Enter 0 to protect the cost only.' ); 591 $language['set.allow_below_cost_custom_price'] = $kernel_object->__( 'Allow Custom Price Below Cost (Purchase Price)' ); 592 $language['set.allow_below_cost_custom_price.desc'] = $kernel_object->__( 'When on, the admin can set any custom wholesale price lower than the product cost (purchase price). When off, a custom wholesale price lower than the product cost (purchase price), plus the margin when Cost Protection is on, cannot be saved.' ); 593 $language['set.allow_below_cost_custom_price.info_cp_on'] = $kernel_object->__( 'Cost Protection is on: lowest allowed price = cost (purchase price) + margin (%{margin}).' ); 594 $language['set.allow_below_cost_custom_price.info_cp_on_zero'] = $kernel_object->__( 'Cost Protection is on and the margin is 0: the lowest allowed price is the cost (purchase price) itself.' ); 595 $language['set.allow_below_cost_custom_price.info_cp_off'] = $kernel_object->__( 'Cost Protection is off: the margin is ignored and the lowest allowed price is the cost (purchase price).' ); 596 $language['set.allow_below_cost_custom_price.info_allow_on'] = $kernel_object->__( 'This setting is on: a custom price below the lowest allowed price can be saved.' ); 597 $language['set.allow_below_cost_custom_price.info_allow_off'] = $kernel_object->__( 'This setting is off: a custom price below the lowest allowed price cannot be saved.' ); 598 $language['set.allow_below_cost_custom_price.info_no_cost'] = $kernel_object->__( 'Products with no cost (purchase price) entered are not checked.' ); 542 599 $language['set.save'] = $kernel_object->__( 'Save Settings' ); 543 600 $language['set.refresh_app'] = $kernel_object->__( 'Refresh App and Clear Cache' ); … … 586 643 $language['shp.unit_price'] = $kernel_object->__( 'Unit Price' ); 587 644 $language['shp.proceed_checkout'] = $kernel_object->__( 'Proceed to Checkout' ); 645 $language['shp.subtotal'] = $kernel_object->__( 'Subtotal' ); 646 $language['shp.tax_shipping_note'] = $kernel_object->__( 'Shipping and taxes calculated at checkout.' ); 588 647 $language['shp.request_quote'] = $kernel_object->__( 'Request Quote' ); 589 648 $language['shp.clear_cart_failed'] = $kernel_object->__( 'Unable to clear cart' ); 590 649 $language['shp.search_placeholder'] = $kernel_object->__( 'Search by product name or SKU...' ); 650 $language['shp.search_clear'] = $kernel_object->__( 'Clear search' ); 591 651 $language['shp.all_products'] = $kernel_object->__( 'All Products' ); 592 652 $language['shp.select_subcategory'] = $kernel_object->__( 'Select Sub-category' ); … … 661 721 $language['rpt.product_sales'] = $kernel_object->__( 'Product Sales' ); 662 722 $language['rpt.performance_analytics'] = $kernel_object->__( 'Performance Analytics' ); 663 $language['rpt.top_products_by_volume'] = $kernel_object->__( 'Top Products by Volume' );664 $language['rpt.top_products_by_revenue'] = $kernel_object->__( 'Top Products by Revenue' );723 $language['rpt.top_products_by_volume'] = $kernel_object->__( 'Top 10 Products by Volume' ); 724 $language['rpt.top_products_by_revenue'] = $kernel_object->__( 'Top 10 Products by Revenue' ); 665 725 $language['rpt.col_rank'] = $kernel_object->__( '#' ); 666 726 $language['rpt.col_product'] = $kernel_object->__( 'Product' ); -
vitewholesale/trunk/vitewholesale/libs/class-pricing-engine.php
r3756279 r3796310 34 34 * @param int $qty Requested quantity. 35 35 * @param array|null $cart_items Optional cart-wide matching snapshot — 36 * list of ['parent_id' => int, 'qty' => int ]36 * list of ['parent_id' => int, 'qty' => int, 'variation_id' => int (optional)] 37 37 * for every cart line, so a Rule Group can 38 38 * match via items elsewhere in the cart. … … 49 49 } 50 50 51 52 53 54 $custom_price = Custom_Price::get_price_for_badge( self::custom_price_owner_id( $product ), $badge_id, $product->get_parent_id() ? $product->get_id() : 0 ); 55 if ( null !== $custom_price ) { 56 return self::format_price( $custom_price ); 57 } 58 51 59 $matching_rules = self::get_matching_rules_for_badge( $badge_id, $product, $qty, $cart_items ); 52 60 if ( empty( $matching_rules ) ) { … … 80 88 81 89 return self::format_price( $price ); 90 } 91 92 /** 93 * Product ID that owns the custom price meta: the parent for a variation. 94 * 95 * @param \WC_Product $product WooCommerce product. 96 * 97 * @return int 98 */ 99 protected static function custom_price_owner_id( $product ) { 100 $parent_id = $product->get_parent_id(); 101 return $parent_id ? $parent_id : $product->get_id(); 82 102 } 83 103 … … 219 239 } 220 240 221 $parent_id = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id(); 241 $parent_id = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id(); 242 $variation_id = $product->get_parent_id() ? $product->get_id() : 0; 222 243 223 244 $main_conditions = array(); … … 259 280 foreach ( $main_conditions as $condition ) { 260 281 if ( null === $cart_items ) { 261 $row_result = self::evaluate_condition( $condition, $parent_id, $qty );282 $row_result = self::evaluate_condition( $condition, $parent_id, $qty, $variation_id ); 262 283 } elseif ( 'ne' === $condition->cond ) { 263 284 $row_result = self::condition_absent_from_cart( $condition, $cart_items ); … … 312 333 313 334 if ( 'ne' === $condition->cond ) { 314 if ( ! self::evaluate_condition( $condition, $parent_id, $qty ) ) {335 if ( ! self::evaluate_condition( $condition, $parent_id, $qty, $variation_id ) ) { 315 336 return false; 316 337 } … … 319 340 320 341 $has_eq_row = true; 321 if ( self::evaluate_condition( $condition, $parent_id, $qty ) ) {342 if ( self::evaluate_condition( $condition, $parent_id, $qty, $variation_id ) ) { 322 343 $product_participates = true; 323 344 } … … 330 351 331 352 foreach ( $except_conditions as $condition ) { 332 if ( self::condition_value_matches( $condition, $parent_id ) ) {353 if ( self::condition_value_matches( $condition, $parent_id, $variation_id ) ) { 333 354 return false; 334 355 } … … 358 379 protected static function condition_matches_any_cart_item( $condition, $cart_items ) { 359 380 foreach ( $cart_items as $item ) { 360 if ( self::evaluate_condition( $condition, $item['parent_id'], $item['qty'] ) ) {381 if ( self::evaluate_condition( $condition, $item['parent_id'], $item['qty'], isset( $item['variation_id'] ) ? (int) $item['variation_id'] : 0 ) ) { 361 382 return true; 362 383 } … … 383 404 protected static function condition_absent_from_cart( $condition, $cart_items ) { 384 405 foreach ( $cart_items as $item ) { 385 if ( self::condition_value_matches( $condition, $item['parent_id'] ) ) {406 if ( self::condition_value_matches( $condition, $item['parent_id'], isset( $item['variation_id'] ) ? (int) $item['variation_id'] : 0 ) ) { 386 407 return false; 387 408 } … … 399 420 * 400 421 * @param object $condition Condition row (prop, val properties). 401 * @param int $parent_id Resolved product id (parent id for variations). 422 * @param int $parent_id Resolved product id (parent id for variations). 423 * @param int $variation_id Variation id, or 0 when the line is not a variation. 402 424 * 403 425 * @return bool 404 426 */ 405 protected static function condition_value_matches( $condition, $parent_id ) {427 protected static function condition_value_matches( $condition, $parent_id, $variation_id = 0 ) { 406 428 if ( 'P' === $condition->prop ) { 407 return ( (int) $condition->val === (int) $parent_id ); 429 430 431 return ( (int) $condition->val === (int) $parent_id ) 432 || ( $variation_id && (int) $condition->val === (int) $variation_id ); 408 433 } 409 434 … … 443 468 * @param int $parent_id Resolved product id (parent id for variations). 444 469 * @param int|null $qty Requested quantity, or null to skip the gate. 470 * @param int $variation_id Variation id, or 0 when the line is not a variation. 445 471 * 446 472 * @return bool 447 473 */ 448 protected static function evaluate_condition( $condition, $parent_id, $qty ) {449 $matches = self::condition_value_matches( $condition, $parent_id );474 protected static function evaluate_condition( $condition, $parent_id, $qty, $variation_id = 0 ) { 475 $matches = self::condition_value_matches( $condition, $parent_id, $variation_id ); 450 476 451 477 … … 508 534 */ 509 535 protected static function is_cost_protection_active() { 510 return 'Y' === ViteWholesale_Settings::get_module_option( 'enable_cost_protection', ' N' );536 return 'Y' === ViteWholesale_Settings::get_module_option( 'enable_cost_protection', 'Y' ); 511 537 } 512 538 … … 519 545 */ 520 546 protected static function get_cost_floor( $product ) { 521 $cost = get_post_meta( $product->get_id(), '_wc_cog_cost', true ); 522 $cost = appsbd_apply_filters( 'appsbd/vitewholesale/filters/product-cost', $cost, $product ); 523 524 if ( '' === $cost || null === $cost || ! is_numeric( $cost ) ) { 525 return null; 526 } 527 528 $margin_setting = ViteWholesale_Settings::get_module_option( 'cost_protection_margin', '0' ); 529 $margin = is_numeric( $margin_setting ) ? (float) $margin_setting : 0; 530 531 return (float) $cost + $margin; 547 return Custom_Price::get_floor( $product ); 532 548 } 533 549 … … 564 580 if ( ! $product ) { 565 581 return null; 582 } 583 584 $custom_price = Custom_Price::get_price_for_badge( self::custom_price_owner_id( $product ), $badge_id, $product->get_parent_id() ? $product->get_id() : 0 ); 585 if ( null !== $custom_price ) { 586 return array( 587 'regular_price' => self::get_base_price( $product, 'S' ), 588 'wholesale_price' => self::format_price( $custom_price ), 589 'min_qty' => 1, 590 'qty_met' => true, 591 ); 566 592 } 567 593 -
vitewholesale/trunk/vitewholesale/modules/class-vitewholesale-customer-badge.php
r3756279 r3796310 294 294 $assigned_by = get_current_user_id(); 295 295 296 297 298 $previous = Mapbd_ViteWholesale_Customer_Badge::get_by_customer_id( $customer_id ); 299 $previous_badge_id = $previous ? (int) $previous->badge_id : 0; 300 296 301 if ( Mapbd_ViteWholesale_Customer_Badge::assign_badge( $customer_id, $badge_id, $assigned_type, $assigned_by ) ) { 297 302 $this->sync_application_on_manual_assign( $customer_id, $badge_id, $assigned_by ); 303 if ( $previous_badge_id !== (int) $badge_id ) { 304 $this->send_badge_assigned_email( $customer_id, $badge_id ); 305 } 298 306 $this->add_info( 'gbl.added' ); 299 307 $response->display_with_response( true ); … … 305 313 } 306 314 } 315 } 316 317 /** 318 * Tell the customer an admin assigned them a badge. 319 * 320 * Pro-only notification (no-op on a Lite-only install, or when email 321 * notifications are off) — same bridge action the Application module 322 * uses for its approval email. 323 * 324 * @param int $customer_id Customer user ID. 325 * @param int $badge_id Badge ID that was assigned. 326 */ 327 private function send_badge_assigned_email( $customer_id, $badge_id ) { 328 $user = get_userdata( $customer_id ); 329 $badge = new Mapbd_ViteWholesale_Badge(); 330 $badge->id( $badge_id ); 331 if ( ! $user || ! $badge->select() ) { 332 return; 333 } 334 appsbd_do_action( 335 'appsbd/vitewholesale/actions/send-email-template', 336 'BAS', 337 $user->user_email, 338 array( 339 'customer_name' => $user->display_name, 340 'badge_title' => $badge->title, 341 ) 342 ); 307 343 } 308 344 -
vitewholesale/trunk/vitewholesale/modules/class-vitewholesale-pricing-rule.php
r3756279 r3796310 259 259 $conditions = Mapbd_ViteWholesale_Rule::get_by_rule_group_id( $group->id ); 260 260 foreach ( $conditions as $condition ) { 261 $condition->val_title = ( 'P' === $condition->prop ) ? get_the_title( (int) $condition->val) : null;261 $condition->val_title = ( 'P' === $condition->prop ) ? html_entity_decode( get_the_title( (int) $condition->val ), ENT_QUOTES, 'UTF-8' ) : null; 262 262 } 263 263 $res_data->rule_groups[] = array( … … 475 475 476 476 /** 477 * Search WooCommerce products by title for the ajax-search product selector 477 * Search WooCommerce products by title for the ajax-search product selector. 478 * 479 * A variable product is never listed itself, only its variations (one 480 * option each, e.g. "Hoodie - Blue, Yes"), so a rule targets a specific 481 * variation. A search term also finds variations whose own name matches 482 * (e.g. "Blue"). 478 483 */ 479 484 public function search_products() { … … 492 497 $args['s'] = $term; 493 498 } 494 $products = wc_get_products( $args ); 495 foreach ( $products as $product ) { 496 $results[] = array( 499 $seen = array(); 500 $add = function ( $product ) use ( &$results, &$seen ) { 501 if ( isset( $seen[ $product->get_id() ] ) ) { 502 return; 503 } 504 $seen[ $product->get_id() ] = true; 505 $results[] = array( 497 506 'val' => $product->get_id(), 498 'title' => $product->get_name(),507 'title' => html_entity_decode( $product->get_name(), ENT_QUOTES, 'UTF-8' ), 499 508 ); 509 }; 510 511 foreach ( wc_get_products( $args ) as $product ) { 512 if ( ! $product->is_type( 'variable' ) ) { 513 $add( $product ); 514 continue; 515 } 516 517 foreach ( $product->get_children() as $variation_id ) { 518 $variation = wc_get_product( $variation_id ); 519 if ( $variation && 'publish' === $variation->get_status() ) { 520 $add( $variation ); 521 } 522 } 523 } 524 525 if ( ! empty( $term ) ) { 526 $variation_args = $args; 527 $variation_args['type'] = 'variation'; 528 foreach ( wc_get_products( $variation_args ) as $variation ) { 529 $add( $variation ); 530 } 500 531 } 501 532 } -
vitewholesale/trunk/vitewholesale/modules/class-vitewholesale-settings.php
r3756279 r3796310 24 24 class ViteWholesale_Settings extends ViteWholesale_Module { 25 25 26 /** 27 * Theme colors the admin may pick (swatch names of the panels' shared 28 * UI kit skins, see dev_files/libraries/theme.js). First is the default. 29 */ 30 const THEME_COLORS = array( 'green', 'blue', 'cyan', 'violet', 'purple', 'pink', 'red', 'orange', 'gray', 'black' ); 31 32 /** 33 * The saved theme color, always one of THEME_COLORS. 34 * 35 * @return string 36 */ 37 public static function get_theme_color() { 38 $color = self::get_module_option( 'theme_color', 'green' ); 39 return in_array( $color, self::THEME_COLORS, true ) ? $color : 'green'; 40 } 41 26 42 27 43 /** … … 53 69 public function get_admin_settings() { 54 70 $options['wholesale_price_text'] = $this->get_option( 'wholesale_price_text', 'Wholesale Price' ); 71 $options['theme_color'] = self::get_theme_color(); 55 72 $options['hide_wholesale_price'] = $this->get_option( 'hide_wholesale_price', 'N' ); 56 73 $options['hide_retail_price'] = $this->get_option( 'hide_retail_price', 'N' ); … … 59 76 $options['disable_coupon'] = $this->get_option( 'disable_coupon', 'N' ); 60 77 $options['enable_quote_management'] = $this->get_option( 'enable_quote_management', 'N' ); 61 $options['enable_cost_protection'] = $this->get_option( 'enable_cost_protection', ' N' );78 $options['enable_cost_protection'] = $this->get_option( 'enable_cost_protection', 'Y' ); 62 79 $options['cost_protection_margin'] = $this->get_option( 'cost_protection_margin', '0' ); 80 $options['allow_below_cost_custom_price'] = $this->get_option( 'allow_below_cost_custom_price', 'N' ); 63 81 $options['rule_priority_strategy'] = $this->get_option( 'rule_priority_strategy', 'MIN' ); 64 82 $options['base_price'] = $this->get_option( 'base_price', 'S' ); … … 78 96 private function set_default_options() { 79 97 $this->options['wholesale_price_text'] = 'Wholesale Price'; 98 $this->options['theme_color'] = 'green'; 80 99 $this->options['hide_wholesale_price'] = 'N'; 81 100 $this->options['hide_retail_price'] = 'N'; … … 84 103 $this->options['disable_coupon'] = 'N'; 85 104 $this->options['enable_quote_management'] = 'N'; 86 $this->options['enable_cost_protection'] = ' N';105 $this->options['enable_cost_protection'] = 'Y'; 87 106 $this->options['cost_protection_margin'] = 0; 107 $this->options['allow_below_cost_custom_price'] = 'N'; 88 108 $this->options['rule_priority_strategy'] = 'MIN'; 89 109 $this->options['base_price'] = 'S'; … … 152 172 if ( in_array( $key, $skiped_key ) ) { 153 173 continue; 174 } elseif ( 'theme_color' === $key && ! in_array( $post, self::THEME_COLORS, true ) ) { 175 continue; 154 176 } else { 155 177 $this->options[ $key ] = $post; -
vitewholesale/trunk/vitewholesale/modules/class-vitewholesale-storefront-pricing.php
r3756279 r3796310 120 120 if ( empty( $badge_id ) ) { 121 121 return $price_html; 122 } 123 124 if ( $product->is_type( 'variable' ) ) { 125 return $this->append_variable_offer( $price_html, $product, $badge_id ); 122 126 } 123 127 … … 156 160 157 161 /** 162 * Wholesale offer line for a variable product: the lowest–highest 163 * wholesale price across its variations (each variation's own custom 164 * price, the product's custom price, or a pricing rule). A variable 165 * product's own regular price is always empty, so it cannot go through 166 * the single-product path above. 167 * 168 * @param string $price_html Original price HTML. 169 * @param \WC_Product $product Variable product. 170 * @param int $badge_id Customer's badge ID. 171 * 172 * @return string 173 */ 174 protected function append_variable_offer( $price_html, $product, $badge_id ) { 175 $prices = array(); 176 $min_qty = null; 177 foreach ( $product->get_children() as $variation_id ) { 178 $variation = wc_get_product( $variation_id ); 179 if ( ! $variation || '' === $variation->get_regular_price() ) { 180 continue; 181 } 182 $context = Pricing_Engine::get_offer_context( $variation_id, $badge_id ); 183 if ( null === $context ) { 184 continue; 185 } 186 $prices[] = wc_get_price_to_display( $variation, array( 'price' => $context['wholesale_price'] ) ); 187 if ( ! $context['qty_met'] ) { 188 $min_qty = null === $min_qty ? $context['min_qty'] : min( $min_qty, $context['min_qty'] ); 189 } 190 } 191 if ( empty( $prices ) ) { 192 return $price_html; 193 } 194 195 $low = min( $prices ); 196 $high = max( $prices ); 197 $text = wp_strip_all_tags( wc_price( $low ) ); 198 if ( $high > $low ) { 199 $text .= ' – ' . wp_strip_all_tags( wc_price( $high ) ); 200 } 201 $text .= $product->get_price_suffix(); 202 203 if ( null === $min_qty ) { 204 /* translators: %s: wholesale price or price range */ 205 $label = sprintf( esc_html__( 'Wholesale price: %s each', 'vitewholesale' ), $text ); 206 } else { 207 /* translators: 1: minimum quantity, 2: wholesale price or price range */ 208 $label = sprintf( esc_html__( 'Buy %1$d or more for %2$s each (wholesale price)', 'vitewholesale' ), $min_qty, $text ); 209 } 210 211 return $price_html . '<span class="apbd-wholesale-offer" style="display:block">' . $label . '</span>'; 212 } 213 214 /** 158 215 * Recalculate cart item prices using the current customer's badge and 159 216 * the whole cart's contents (cart-wide Rule Group matching — see … … 198 255 foreach ( $cart->get_cart() as $cart_item ) { 199 256 $cart_items[] = array( 200 'parent_id' => (int) $cart_item['product_id'], 201 'qty' => (int) $cart_item['quantity'], 257 'parent_id' => (int) $cart_item['product_id'], 258 'variation_id' => (int) ( $cart_item['variation_id'] ?? 0 ), 259 'qty' => (int) $cart_item['quantity'], 202 260 ); 203 261 }
Note:
See TracChangeset
for help on using the changeset viewer.