📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 01:28:55
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/woocommerce/assets/client/blocks
🔄 Refresh
✏️
Editing: wc-payment-method-cod.js
Writable
(()=>{"use strict";const e=window.wc.wcBlocksRegistry,t=window.wp.i18n,n=window.wc.wcSettings,i=window.wp.htmlEntities,o=window.wc.sanitize,s=window.wp.element,a=window.ReactJSXRuntime,c=(0,n.getPaymentMethodData)("cod",{}),r=(0,t.__)("Cash on delivery","woocommerce"),d=(0,i.decodeEntities)(c?.title||"")||r,w=()=>(0,a.jsx)(s.RawHTML,{children:(0,o.sanitizeHTML)(c.description||"")}),l=e=>{const{PaymentMethodLabel:t}=e.components;return(0,a.jsx)(t,{text:d})},p={name:"cod",label:(0,a.jsx)(l,{}),content:(0,a.jsx)(w,{}),edit:(0,a.jsx)(w,{}),canMakePayment:({cartNeedsShipping:e,selectedShippingMethods:t})=>{if(c.enableForVirtual&&!e)return!0;if(!c.enableForShippingMethods.length)return!0;const n=Object.values(t);return 0===n.length||c.enableForShippingMethods.some(e=>n.some(t=>t.includes(e)))},ariaLabel:d,supports:{features:c?.supports??[]}};(0,e.registerPaymentMethod)(p)})();
💾 Save Changes
❌ Cancel