Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.
Trong phần này, quản trị viên có thể viết mã CSS và JS. Hệ thống sẽ tự động nối mã vào tệp chính.Các bước thêm tập lệnh tùy chỉnhTrong Bảng quản trị, hãy vào Configure >> Content. Bạn sẽ thấy các tùy chọn sau:
CSS tùy chỉnh
Trong ví dụ này, màu nền Light Blue được áp dụng và cấu hình được lưu lại.Màu nền giao diện cửa hàng thay đổi như dưới đây:
JS tùy chỉnh
Bạn có thể thêm JavaScript theo nhu cầu rồi nhấp Save Configuration (Lưu cấu hình).Sau đó, nhấp Save Configuration (Lưu cấu hình).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kavio Docs","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/light.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=309ef015bbf172f60d4949bba63f6493","dark":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/dark.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=f6f1d419ba23a4acc53fe3759ae31e65"},"favicon":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/favicon.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=4b0b33f41d60e14761793ff204a87866","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://app.getkavio.app/api"}},"background":{"color":{"light":"#f8fafc","dark":"#0f172a"}},"navbar":{"links":[{"href":"https://getkavio.app","label":"Home"}],"primary":{"type":"button","label":"Get started free","href":"https://app.getkavio.app/register"}},"footer":{"socials":{"x":"https://x.com/getkavio","youtube":"https://www.youtube.com/@getkavio"}},"integrations":{"posthog":{"apiKey":"phc_qZKcjfjndNDmU4k5KSfhsiSCjS9yGuVuFLYfqri0YG1","apiHost":"https://dt.getkavio.app"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"knowledge-base/introduction"},{"language":"vi","default":true,"href":"vi/knowledge-base/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kavio","hasAudioNarration":false,"actualSubdomain":"kavio","customDomains":["docs.getkavio.app"],"gitSource":{"type":"gitlab","owner":"kavio1","repo":"kavio_site","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"projectId":82502039,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a992755b8d2f9ee7b619988","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"en","tag":"Kavio Ecommerce","count":84},{"language":"vi","tag":"Kavio Ecommerce","count":84},{"language":"en","tag":"Kavio Content","count":55},{"language":"vi","tag":"Kavio Content","count":55},{"language":"en","tag":"API Reference","count":26},{"language":"vi","tag":"Tài liệu API","count":26},{"language":"en","tag":"Knowledge Base","count":17},{"language":"vi","tag":"Hướng dẫn sử dụng","count":17},{"language":"en","tag":"Build with AI","count":12},{"language":"en","tag":"Advanced and technical settings","count":12},{"language":"en","tag":"Essential store settings","count":12},{"language":"vi","tag":"Xây dựng với AI","count":12},{"language":"vi","tag":"Cài đặt nâng cao và kỹ thuật","count":12},{"language":"vi","tag":"Cài đặt cửa hàng thiết yếu","count":12},{"language":"en","tag":"Setup Guides","count":10},{"language":"en","tag":"Posts","count":10},{"language":"vi","tag":"Hướng dẫn thiết lập","count":10},{"language":"vi","tag":"Bài đăng","count":10},{"language":"en","tag":"Orders and fulfillment","count":9},{"language":"vi","tag":"Đơn hàng và giao hàng","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"vi/ecommerce/settings/configuration/custom-scripts","slug":"/vi/ecommerce/settings/configuration/custom-scripts","pageMetadata":{"title":"Tập lệnh tùy chỉnh","description":"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.","href":"/vi/ecommerce/settings/configuration/custom-scripts"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,OptimizedImage}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Trong phần này, quản trị viên có thể viết mã CSS và JS. Hệ thống sẽ tự động nối mã vào tệp chính.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Các bước thêm tập lệnh tùy chỉnh`})}),`\n`,_jsxs(_components.p,{children:[`Trong Bảng quản trị, hãy vào `,_jsx(_components.strong,{children:`Configure >> Content`}),`. Bạn sẽ thấy các tùy chọn sau:`]}),`\n`,_jsx(Heading,{level:`3`,id:`css-tùy-chỉnh`,children:`CSS tùy chỉnh`}),`\n`,_jsxs(_components.p,{children:[`Trong ví dụ này, màu nền `,_jsx(_components.strong,{children:`Light Blue`}),` được áp dụng và cấu hình được lưu lại.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=d99a8dd0ceb417128612775b2497037e`,alt:`CSS tùy chỉnh`,\"data-og-width\":`984`,width:`984`,\"data-og-height\":`119`,height:`119`,\"data-path\":`ecommerce/images/configure/css.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=280\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=148147e24eb25b9aa011ad1b47e38524 280w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=560\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=2e1a60cb8b599cdb080ffbd9d7f05ea2 560w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=840\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=a644c5ce492a22eab81e80d07530952f 840w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=574a74d0dd307af720502fef0046982c 1100w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=e90f38501e14a862fbb4029b57164cdc 1650w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/css.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=1f3d333e08ce1767572fc217c02748b6 2500w`}),`\n`,_jsx(_components.p,{children:`Màu nền giao diện cửa hàng thay đổi như dưới đây:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=0c15d0726ad11f88339e623a310320e3`,alt:`Kết quả CSS tùy chỉnh`,\"data-og-width\":`1277`,width:`1277`,\"data-og-height\":`591`,height:`591`,\"data-path\":`ecommerce/images/configure/cssOutput.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=280\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=c8d4ec59f954f316430cb84cb7d0d6af 280w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=560\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=f201e4f06a42dcc381eea669d7831120 560w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=840\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=c7146bb72d161858dab0e49ba5cb8f4d 840w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=9eaf526014ea07cf8fdfe74584a7ed6d 1100w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=6fd5be57273027de52a67e09566168ad 1650w, https://mintcdn.com/kavio/a-faHzo3fbiRnpSc/ecommerce/images/configure/cssOutput.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a-faHzo3fbiRnpSc\u0026q=85\u0026s=91ebfcd73ba8c5a780d289011f4f9e9e 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`js-tùy-chỉnh`,children:`JS tùy chỉnh`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thêm JavaScript theo nhu cầu rồi nhấp `,_jsx(_components.strong,{children:`Save Configuration (Lưu cấu hình)`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=82640ad080ca76e3c185da58d375a1b9`,alt:`JS tùy chỉnh`,\"data-og-width\":`983`,width:`983`,\"data-og-height\":`229`,height:`229`,\"data-path\":`ecommerce/images/configure/js.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=280\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=ec2e9ef03ea911603d4509ce8bcfd4cc 280w, https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=560\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=3499fbe3bd7e95c898c5c876480c86c9 560w, https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=840\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=50a358f27811d71875cb4ea231221a98 840w, https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=1100\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=c7f0cd49e5fc355386a0d51feda7854f 1100w, https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=1650\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=ea2bc034f2a5caea2535df921fd17810 1650w, https://mintcdn.com/kavio/bdjPrxltmJUa45xJ/ecommerce/images/configure/js.png?w=2500\u0026fit=max\u0026auto=format\u0026n=bdjPrxltmJUa45xJ\u0026q=85\u0026s=af6ae94e3ef594b975fb0b7b7a3a9522 2500w`}),`\n`,_jsxs(_components.p,{children:[`Sau đó, nhấp `,_jsx(_components.strong,{children:`Save Configuration (Lưu cấu hình)`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Tập lệnh tùy chỉnh","description":"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.","href":"/vi/ecommerce/settings/configuration/custom-scripts"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"CSS tùy chỉnh","slug":"css-tùy-chỉnh","depth":3,"children":[]},{"title":"JS tùy chỉnh","slug":"js-tùy-chỉnh","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kavio","siteName":"Kavio Docs","title":"Tập lệnh tùy chỉnh - Kavio Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/ecommerce/settings/configuration/custom-scripts","matchLevel":1},"vi":{"href":"/vi/ecommerce/settings/configuration/custom-scripts","matchLevel":0}}},"lastModified":"2026-07-31T09:54:23.335Z","originalFileLocation":"vi/ecommerce/settings/configuration/custom-scripts.mdx","locale":"vi"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kavio Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tập lệnh tùy chỉnh - Kavio Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kavio Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kavio.mintlify.site/_mintlify/api/og/v2?division=C%C3%A0i+%C4%91%E1%BA%B7t+n%C3%A2ng+cao+v%C3%A0+k%E1%BB%B9+thu%E1%BA%ADt\u0026amp;title=T%E1%BA%ADp+l%E1%BB%87nh+t%C3%B9y+ch%E1%BB%89nh\u0026amp;description=T%E1%BA%ADp+l%E1%BB%87nh+t%C3%B9y+ch%E1%BB%89nh+l%C3%A0+c%C3%A1c+%C4%91o%E1%BA%A1n+m%C3%A3+%C4%91%C6%B0%E1%BB%A3c+t%E1%BA%A1o+%C4%91%E1%BB%83+b%E1%BB%95+sung+ch%E1%BB%A9c+n%C4%83ng+ho%E1%BA%B7c+t%C3%ADnh+n%C4%83ng+ri%C3%AAng+cho+ph%E1%BA%A7n+m%E1%BB%81m.\u0026amp;theme=8c97d124a89922b21243dc87\u0026amp;signature=7d989aaa1fec4b284d44aa9816728d8d75b590f357ff16466a5e777b5466d75d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Tập lệnh tùy chỉnh - Kavio Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kavio.mintlify.site/_mintlify/api/og/v2?division=C%C3%A0i+%C4%91%E1%BA%B7t+n%C3%A2ng+cao+v%C3%A0+k%E1%BB%B9+thu%E1%BA%ADt\u0026amp;title=T%E1%BA%ADp+l%E1%BB%87nh+t%C3%B9y+ch%E1%BB%89nh\u0026amp;description=T%E1%BA%ADp+l%E1%BB%87nh+t%C3%B9y+ch%E1%BB%89nh+l%C3%A0+c%C3%A1c+%C4%91o%E1%BA%A1n+m%C3%A3+%C4%91%C6%B0%E1%BB%A3c+t%E1%BA%A1o+%C4%91%E1%BB%83+b%E1%BB%95+sung+ch%E1%BB%A9c+n%C4%83ng+ho%E1%BA%B7c+t%C3%ADnh+n%C4%83ng+ri%C3%AAng+cho+ph%E1%BA%A7n+m%E1%BB%81m.\u0026amp;theme=8c97d124a89922b21243dc87\u0026amp;signature=7d989aaa1fec4b284d44aa9816728d8d75b590f357ff16466a5e777b5466d75d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kavio Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/vi/ecommerce/settings/configuration/custom-scripts.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.getkavio.app/ecommerce/settings/configuration/custom-scripts\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getkavio.app/#organization\",\"name\":\"Kavio Docs\",\"url\":\"https://docs.getkavio.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/light.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=309ef015bbf172f60d4949bba63f6493\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getkavio.app#website\",\"name\":\"Kavio Docs\",\"url\":\"https://docs.getkavio.app\",\"publisher\":{\"@id\":\"https://docs.getkavio.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts#webpage\",\"url\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\",\"name\":\"Tập lệnh tùy chỉnh\",\"description\":\"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\",\"dateModified\":\"2026-07-31T09:54:23.335Z\",\"isPartOf\":{\"@id\":\"https://docs.getkavio.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cài đặt nâng cao và kỹ thuật\",\"item\":\"https://docs.getkavio.app/vi/ecommerce/settings/store/users\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tập lệnh tùy chỉnh\",\"item\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts#article\",\"headline\":\"Tập lệnh tùy chỉnh\",\"name\":\"Tập lệnh tùy chỉnh\",\"description\":\"Tập lệnh tùy chỉnh là các đoạn mã được tạo để bổ sung chức năng hoặc tính năng riêng cho phần mềm.\",\"url\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getkavio.app/vi/ecommerce/settings/configuration/custom-scripts#webpage\"},\"dateModified\":\"2026-07-31T09:54:23.335Z\",\"publisher\":{\"@id\":\"https://docs.getkavio.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getkavio.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kavio Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kavio Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/vi/ecommerce/settings/configuration/custom-scripts.md","siteName":"Kavio Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/ecommerce/settings/configuration/custom-scripts"}]},{"language":"vi","default":true,"tabs":[{"tab":"Kavio Content","icon":"pen-to-square","pages":[{"title":"Kavio Content","href":"/vi/knowledge-base/introduction"}]},{"tab":"Kavio Ecommerce","icon":"store","groups":[{"group":"Bắt đầu tại đây","pages":[{"title":"Kavio Ecommerce","href":"/vi/ecommerce/getting-started"}]},{"group":"Sản phẩm và kho hàng","pages":[{"title":"Sản phẩm đơn giản","href":"/vi/ecommerce/catalog/products/simple-product"},{"title":"Cách tạo danh mục trong Kavio Ecommerce","href":"/vi/ecommerce/catalog/categories/create-category"},{"title":"Giá bán","href":"/vi/ecommerce/catalog/settings/pricing"},{"title":"Đơn hàng chờ","href":"/vi/ecommerce/catalog/settings/back-orders"},{"title":"Kích thước hình ảnh","href":"/vi/ecommerce/catalog/settings/image-size"},{"title":"Trang chi tiết sản phẩm","href":"/vi/ecommerce/catalog/settings/product-view-page"},{"title":"Đánh giá","href":"/vi/ecommerce/catalog/settings/review"}]},{"group":"Loại sản phẩm nâng cao","pages":[{"title":"Sản phẩm có biến thể","href":"/vi/ecommerce/catalog/products/configurable-product"},{"title":"Sản phẩm theo gói","href":"/vi/ecommerce/catalog/products/bundle-product"},{"title":"Sản phẩm theo nhóm","href":"/vi/ecommerce/catalog/products/grouped-product"},{"title":"Sản phẩm ảo","href":"/vi/ecommerce/catalog/products/virtual-product"},{"title":"Sản phẩm tải xuống","href":"/vi/ecommerce/catalog/products/downloadable-product"},{"title":"Sản phẩm đặt chỗ","href":"/vi/ecommerce/catalog/products/booking-product"}]},{"group":"Thuộc tính sản phẩm - Nâng cao","pages":[{"title":"Tạo thuộc tính sản phẩm","href":"/vi/ecommerce/catalog/attributes/product-attribute"},{"title":"Tạo nhóm thuộc tính","href":"/vi/ecommerce/catalog/attributes/attribute-family"},{"title":"Kiểu nhập thuộc tính","href":"/vi/ecommerce/catalog/attributes/attribute-input"},{"title":"Thuộc tính","href":"/vi/ecommerce/catalog/settings/attribute"},{"title":"Các tùy chọn cấu hình","href":"/vi/ecommerce/catalog/settings/configurable-choices"}]},{"group":"Đơn hàng và giao hàng","pages":[{"title":"Tạo và quản lý đơn hàng","href":"/vi/ecommerce/sales/orders/create-order"},{"title":"Giao dịch","href":"/vi/ecommerce/sales/orders/transactions"},{"title":"Tạo hóa đơn","href":"/vi/ecommerce/sales/orders/create-invoice"},{"title":"Tạo giao hàng","href":"/vi/ecommerce/sales/orders/create-shipment"},{"title":"Hoàn tiền","href":"/vi/ecommerce/sales/orders/create-refunds"},{"title":"Yêu cầu đổi trả (RMA)","href":"/vi/ecommerce/sales/orders/rma"},{"title":"Cài đặt đơn hàng","href":"/vi/ecommerce/sales/settings/orders-settings"},{"title":"Cài đặt hóa đơn","href":"/vi/ecommerce/sales/settings/invoice-settings"},{"title":"Quyền rút khỏi hợp đồng tại EU","href":"/vi/ecommerce/sales/orders/eu-withdrawal"}]},{"group":"Khách hàng","pages":[{"title":"Tạo khách hàng","href":"/vi/ecommerce/customers/management/create-customer"},{"title":"Nhóm khách hàng","href":"/vi/ecommerce/customers/management/customer-group"},{"title":"Giá theo nhóm khách hàng | Giá theo bậc","href":"/vi/ecommerce/customers/management/customer-group-price"},{"title":"Đánh giá của khách hàng","href":"/vi/ecommerce/customers/management/customer-review"}]},{"group":"Giao diện và nội dung cửa hàng","pages":[{"title":"Giao diện cửa hàng","href":"/vi/ecommerce/marketing/storefront/frontend"},{"title":"Thiết kế","href":"/vi/ecommerce/marketing/storefront/design"},{"title":"Trang CMS","href":"/vi/ecommerce/marketing/content/create-cms"},{"title":"Cấu hình nội dung","href":"/vi/ecommerce/marketing/storefront/content"},{"title":"Trang giỏ hàng","href":"/vi/ecommerce/marketing/storefront/cart-view-page"},{"title":"Nội dung bản quyền","href":"/vi/ecommerce/marketing/storefront/coyright-content"},{"title":"Chia sẻ lên mạng xã hội","href":"/vi/ecommerce/marketing/storefront/social-share"},{"title":"Đoạn trích nổi bật","href":"/vi/ecommerce/marketing/storefront/rich-snippets"}]},{"group":"Khuyến mãi và chăm sóc khách hàng","pages":[{"title":"Quy tắc giỏ hàng","href":"/vi/ecommerce/marketing/tools/cart-rules"},{"title":"Quy tắc danh mục","href":"/vi/ecommerce/marketing/tools/catalog-rules"},{"title":"Chiến dịch","href":"/vi/ecommerce/marketing/tools/campaigns"},{"title":"Mẫu email","href":"/vi/ecommerce/marketing/tools/email-templates"},{"title":"Đăng ký nhận bản tin","href":"/vi/ecommerce/marketing/tools/newsletter-subscription"},{"title":"Sự kiện","href":"/vi/ecommerce/marketing/tools/events"},{"title":"Cụm từ tìm kiếm","href":"/vi/ecommerce/marketing/tools/search-terms"},{"title":"Từ đồng nghĩa tìm kiếm","href":"/vi/ecommerce/marketing/tools/search-synonyms"}]},{"group":"Thanh toán, vận chuyển và thuế","pages":[{"title":"Phương thức thanh toán","href":"/vi/ecommerce/shipping-and-payments/payments/payment-methods"},{"title":"Phương thức giao hàng","href":"/vi/ecommerce/shipping-and-payments/shipping/shipping-methods"},{"title":"Thanh toán","href":"/vi/ecommerce/shipping-and-payments/configuration/checkout"},{"title":"Thanh toán với tư cách khách","href":"/vi/ecommerce/shipping-and-payments/configuration/guest-checkout"},{"title":"Phương thức thanh toán","href":"/vi/ecommerce/shipping-and-payments/configuration/payment-methods"},{"title":"Phương thức vận chuyển","href":"/vi/ecommerce/shipping-and-payments/configuration/shipping-methods"},{"title":"Vận chuyển","href":"/vi/ecommerce/shipping-and-payments/configuration/shipping"},{"title":"Thuế","href":"/vi/ecommerce/shipping-and-payments/configuration/taxes"},{"title":"Đơn vị khối lượng","href":"/vi/ecommerce/shipping-and-payments/configuration/weight-unit"}]},{"group":"Báo cáo","pages":[{"title":"Báo cáo bán hàng","href":"/vi/ecommerce/reporting/reports/sales-report"},{"title":"Báo cáo sản phẩm","href":"/vi/ecommerce/reporting/reports/product-report"},{"title":"Báo cáo khách hàng","href":"/vi/ecommerce/reporting/reports/customers-report"}]},{"group":"Cài đặt cửa hàng thiết yếu","pages":[{"title":"Cài đặt","href":"/vi/ecommerce/settings/configuration/settings"},{"title":"Địa chỉ","href":"/vi/ecommerce/settings/configuration/address"},{"title":"Giao diện cửa hàng (Kênh bán hàng)","href":"/vi/ecommerce/settings/store/channels"},{"title":"Giao diện","href":"/vi/ecommerce/settings/store/themes"},{"title":"Tiền tệ","href":"/vi/ecommerce/settings/store/currencies"},{"title":"Tỷ giá hối đoái","href":"/vi/ecommerce/settings/store/exchange-rates"},{"title":"Ngôn ngữ và khu vực","href":"/vi/ecommerce/settings/store/locales"},{"title":"Nguồn hàng","href":"/vi/ecommerce/settings/store/inventory-source"},{"title":"Thuế","href":"/vi/ecommerce/settings/store/taxes"},{"title":"Cài đặt email","href":"/vi/ecommerce/settings/configuration/email-settings"},{"title":"Thông báo","href":"/vi/ecommerce/settings/configuration/notifications"},{"title":"Magic AI","href":"/vi/ecommerce/settings/configuration/magic-ai"}]},{"group":"Cài đặt nâng cao và kỹ thuật","pages":[{"title":"Người dùng","href":"/vi/ecommerce/settings/store/users"},{"title":"Vai trò","href":"/vi/ecommerce/settings/store/roles"},{"title":"Xác thực hai yếu tố (2FA)","href":"/vi/ecommerce/settings/security/2fa-authentication"},{"title":"Chuyển dữ liệu | Nhập hàng loạt","href":"/vi/ecommerce/settings/store/data-transfer"},{"title":"GDPR","href":"/vi/ecommerce/settings/configuration/gdpr"},{"title":"Captcha","href":"/vi/ecommerce/settings/configuration/captcha"},{"title":"Google Captcha","href":"/vi/ecommerce/settings/configuration/google-captcha"},{"title":"Quản lý bộ nhớ đệm","description":"Quản lý bộ nhớ đệm cho phép quản trị viên xóa và tạo lại các loại bộ nhớ đệm của hệ thống, giúp giao diện cửa hàng và Bảng quản trị hiển thị dữ liệu mới nhất trong khi vẫn duy t...","href":"/vi/ecommerce/settings/configuration/cache-management"},{"title":"Tập lệnh tùy chỉnh","href":"/vi/ecommerce/settings/configuration/custom-scripts"},{"title":"Cấu hình tỷ giá","description":"Kavio Ecommerce Exchange Rates cho phép tự động cập nhật tỷ giá tiền tệ thông qua các dịch vụ API bên ngoài.","href":"/vi/ecommerce/settings/configuration/exchange-rates-configurations"},{"title":"Sơ đồ trang web","href":"/vi/ecommerce/marketing/tools/sitemaps"},{"title":"Viết lại URL","href":"/vi/ecommerce/marketing/tools/url-rewrite"}]}]}]}]},"basePath":"","title":"Tập lệnh tùy chỉnh - Kavio Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CIIGaZaE.js","lightbox-handle-r17bVUz3.js"]}