{"id":2376,"date":"2020-06-12T02:16:15","date_gmt":"2020-06-12T02:16:15","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=2376"},"modified":"2020-06-12T02:26:18","modified_gmt":"2020-06-12T02:26:18","slug":"tao-system-xml-va-helper","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2"},"content":{"rendered":"\n<p>\u1ede b\u00e0i vi\u1ebft tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.<\/p>\n\n\n\n<p>V\u1edbi system.xml th\u00ec n\u00f3 gi\u00fap c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 config \u0111\u01b0\u1ee3c c\u00e1c ch\u1ee9c n\u0103ng c\u1ee7a module, vd: B\u1eadt\/t\u1eaft module v.v  <\/p>\n\n\n\n<p>C\u00f2n \u0111\u1ed1i v\u1edbi Helper n\u00f3 ch\u1ee9a c\u00e1c ph\u01b0\u01a1ng th\u1ee9c gi\u00fap ch\u00fang ta c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 tr\u00ean c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng v\u00e0 bi\u1ebfn trong Magento.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">T\u1ea1o system.xml<\/h2>\n\n\n\n<p>C\u00e1c b\u1ea1n t\u1ea1o file <strong>system.xml<\/strong> theo \u0111\u01b0\u1eddng d\u1eabn <strong>app\/code\/Magetop\/Helloworld\/etc\/adminhtml\/<\/strong> v\u1edbi \u0111o\u1ea1n code sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;!--\n\/**\n * system\n *\n * @copyright Copyright \u00a9 2020 MAGETOP. All rights reserved.\n * @author    info@magetop.com\n *\/\n--&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Config:etc\/system_file.xsd&quot;&gt;\n    &lt;system&gt;\n        &lt;tab id=&quot;magetop&quot; translate=&quot;label&quot; sortOrder=&quot;10&quot;&gt;\n            &lt;label&gt;Magetop&lt;\/label&gt;\n        &lt;\/tab&gt;\n        &lt;section id=&quot;helloworld&quot; translate=&quot;label&quot; sortOrder=&quot;20&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;1&quot; showInStore=&quot;1&quot;&gt;\n            &lt;label&gt;Configuration Helloworld&lt;\/label&gt;\n            &lt;tab&gt;magetop&lt;\/tab&gt;\n            &lt;resource&gt;Magetop_Helloworld::system_config&lt;\/resource&gt;\n            &lt;group id=&quot;setting&quot; translate=&quot;label&quot; type=&quot;text&quot; sortOrder=&quot;1&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                &lt;label&gt;General Setting&lt;\/label&gt;\n                &lt;field id=&quot;enable&quot; translate=&quot;label&quot; type=&quot;select&quot; sortOrder=&quot;1&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                    &lt;label&gt;Enable&lt;\/label&gt;\n                    &lt;source_model&gt;Magento\\Config\\Model\\Config\\Source\\Yesno&lt;\/source_model&gt;\n                &lt;\/field&gt;\n                &lt;field id=&quot;text&quot; translate=&quot;label&quot; type=&quot;text&quot; sortOrder=&quot;2&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                    &lt;label&gt;Text&lt;\/label&gt;\n                    &lt;comment&gt;Nh\u1eadp \u0111o\u1ea1n text s\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb&lt;\/comment&gt;\n                &lt;\/field&gt;\n            &lt;\/group&gt;\n        &lt;\/section&gt;\n    &lt;\/system&gt;\n&lt;\/config&gt;\n<\/pre><\/div>\n\n\n<p>C\u00e1c b\u1ea1n c\u1ea7n l\u01b0u \u00fd \u0111\u1eb7t id section tr\u00f9ng v\u1edbi action=&#8221;adminhtml\/system_config\/edit\/section\/helloworld&#8221; trong m\u1ee5c menu m\u00e0 m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn \u1edf b\u00e0i tr\u01b0\u1edbc \u0111\u1ec3 khi ch\u00fang ta click v\u00e0o menu n\u00f3 s\u1ebd truy c\u1eadp \u0111\u1ebfn \u0111\u00fang ph\u1ea7n section config. Sau khi l\u01b0u code l\u1ea1i c\u00e1c b\u1ea1n ti\u1ebfn h\u00e0nh clean cache.<\/p>\n\n\n\n<p>Gi\u1edd ch\u00fang ta v\u00e0o admin ch\u1ecdn Module -&gt; Module Configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"546\" data-attachment-id=\"2379\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/magetop-module-config\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?fit=669%2C546&amp;ssl=1\" data-orig-size=\"669,546\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"magetop-module-config\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?fit=300%2C245&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?fit=669%2C546&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?resize=669%2C546&#038;ssl=1\" alt=\"Module Configuration\" class=\"wp-image-2379\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?w=669&amp;ssl=1 669w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/magetop-module-config.jpg?resize=300%2C245&amp;ssl=1 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/figure>\n\n\n\n<p>N\u00f3 \u0111\u00e3 \u0111\u01b0a ch\u00fang ta \u0111\u1ebfn \u0111\u00fang system v\u1eeba t\u1ea1o \u1edf tr\u00ean.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1688\" height=\"800\" data-attachment-id=\"2380\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/cau-tao-system\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?fit=1688%2C800&amp;ssl=1\" data-orig-size=\"1688,800\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"c\u1ea5u-t\u1ea1o-system\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?fit=300%2C142&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?fit=800%2C379&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c\u1ea5u-t\u1ea1o-system.png?fit=800%2C379&amp;ssl=1\" alt=\"c\u1ea5u t\u1ea1o system\" class=\"wp-image-2380\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?w=1688&amp;ssl=1 1688w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?resize=300%2C142&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?resize=1024%2C485&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?resize=768%2C364&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?resize=1536%2C728&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/c%E1%BA%A5u-t%E1%BA%A1o-system.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>H\u00ecnh \u1ea3nh tr\u00ean m\u00ecnh \u0111\u00e3 ch\u1ec9 ra c\u00e1c thu\u1ed9c t\u00ednh trong \u0111o\u1ea1n code c\u1ee7a system.xml \u0111\u1ec3 c\u00e1c b\u1ea1n d\u1ec5 h\u00ecnh dung h\u01a1n.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">T\u1ea1o Helper<\/h2>\n\n\n\n<p>\u0110\u1ec3 l\u1ea5y d\u1eef li\u1ec7u t\u1eeb Field Text r\u1ed3i hi\u1ec3n th\u1ecb n\u00f3 n\u00ean 1 trang m\u1edbi ch\u00fang ta s\u1ebd s\u1eed d\u1ee5ng Helper<\/p>\n\n\n\n<p>T\u1ea1o file <strong>app\/code\/Magetop\/Helloworld\/Helper\/Data.php<\/strong> v\u1edbi \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Helper;\n\nuse Magento\\Framework\\App\\Helper\\AbstractHelper;\nuse Magento\\Store\\Model\\ScopeInterface;\n\nclass Data extends AbstractHelper\n{\n    public function getText($text){\n        return $this-&gt;scopeConfig-&gt;getValue('helloworld\/setting\/'.$text, ScopeInterface::SCOPE_STORE);\n    }\n}\n<\/pre><\/div>\n\n\n<p>\u1ede \u0111\u00e2y ch\u00fang ta \u0111\u00e3 t\u1ea1o ra 1 function c\u00f3 t\u00ean l\u00e0 getText truy\u1ec1n v\u00e0o $text \u0111\u1ec3 l\u1ea5y gi\u00e1 tr\u1ecb t\u1eeb field Text v\u1edbi \u0111\u01b0\u1eddng d\u1eabn &lt;id section&gt;\/&lt;id group&gt;\/&lt;id field&gt;.<\/p>\n\n\n\n<p>Ti\u1ebfp theo t\u1ea1o file <strong>Config.php <\/strong>trong <strong>app\/code\/Magetop\/Helloworld\/Controller\/Index<\/strong> v\u1edbi \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Controller\\Index;\n\nuse Magento\\Framework\\App\\Action\\Action;\nuse Magento\\Framework\\App\\Action\\Context;\nuse Magetop\\Helloworld\\Helper\\Data;\n\nclass Config extends Action\n{\n\n    protected $helper;\n\n    public function __construct(Context $context, Data $helper)\n    {\n        $this-&gt;helper = $helper;\n        parent::__construct($context);\n    }\n\n\n    public function execute()\n    {\n        echo $this-&gt;helper-&gt;getText('text');\n    }\n}\n<\/pre><\/div>\n\n\n<p>T\u1ea1o xong c\u00e1c b\u1ea1n clean cache, \u0111i\u1ec1n text v\u00e0o field v\u00e0 l\u01b0u l\u1ea1i.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1716\" height=\"646\" data-attachment-id=\"2382\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/configuration-helloworld-save\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?fit=1716%2C646&amp;ssl=1\" data-orig-size=\"1716,646\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"configuration-helloworld-save\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?fit=800%2C301&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?fit=800%2C301&amp;ssl=1\" alt=\"\u0111i\u1ec1n field text\" class=\"wp-image-2382\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?w=1716&amp;ssl=1 1716w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?resize=1024%2C385&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?resize=768%2C289&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?resize=1536%2C578&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/configuration-helloworld-save.jpg?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Sau \u0111\u00f3 truy c\u1eadp v\u00e0o \u0111\u01b0\u1eddng d\u1eabn <strong>domain\/routes\/index\/config.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"383\" data-attachment-id=\"2383\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/hien-thi-hello\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?fit=746%2C383&amp;ssl=1\" data-orig-size=\"746,383\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"hi\u1ec7n-th\u1ecb-hello\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?fit=300%2C154&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?fit=746%2C383&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?resize=746%2C383&#038;ssl=1\" alt=\"hi\u1ec3n th\u1ecb text\" class=\"wp-image-2383\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?w=746&amp;ssl=1 746w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/hi%E1%BB%87n-th%E1%BB%8B-hello.jpg?resize=300%2C154&amp;ssl=1 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/figure>\n\n\n\n<p>D\u00f2ng ch\u1eef m\u00ecnh ghi trong field \u0111\u00e3 \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb ra 1 trang.<\/p>\n\n\n\n<p>V\u1eady l\u00e0 m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn xong c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.<\/p>\n\n\n\n<p>C\u1ea3m \u01a1n c\u00e1c b\u1ea1n \u0111\u00e3 \u0111\u1ecdc b\u00e0i vi\u1ebft.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u1ede b\u00e0i vi\u1ebft tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.<\/p>\n","protected":false},"author":108,"featured_media":2386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[226],"tags":[304,434,449,494,493,492,491],"class_list":["post-2376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vn","tag-huong-dan-code-module-magento-2","tag-huong-dan-lap-trinh-magento-2","tag-huong-dan-lap-trinh-module-magento-2","tag-huong-dan-lap-trinh-module-phan-6","tag-huong-dan-su-dung-helper","tag-huong-dan-tao-system-xml","tag-huong-dan-tao-system-xml-va-su-dung-helper"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2<\/title>\n<meta name=\"description\" content=\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2\" \/>\n<meta property=\"og:description\" content=\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-12T02:16:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-12T02:26:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H\u01b0\u1edbng-d\u1eabn-t\u1ea1o-system.xml-v\u00e0-s\u1eed-d\u1ee5ng-Helper.png?fit=750%2C405&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"405\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Callula Huy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Callula Huy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2\",\"datePublished\":\"2020-06-12T02:16:15+00:00\",\"dateModified\":\"2020-06-12T02:26:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\"},\"wordCount\":494,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1\",\"keywords\":[\"H\u01b0\u1edbng d\u1eabn code module magento 2\",\"h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh Magento 2\",\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2\",\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module ph\u1ea7n 6\",\"H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Helper\",\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml\",\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper\"],\"articleSection\":[\"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1\",\"datePublished\":\"2020-06-12T02:16:15+00:00\",\"dateModified\":\"2020-06-12T02:26:18+00:00\",\"description\":\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1\",\"width\":750,\"height\":405,\"caption\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\",\"name\":\"Callula Huy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"caption\":\"Callula Huy\"},\"description\":\"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.\",\"sameAs\":[\"http:\/\/magetop.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2","description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","og_locale":"en_US","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2","og_description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.","og_url":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2020-06-12T02:16:15+00:00","article_modified_time":"2020-06-12T02:26:18+00:00","og_image":[{"width":750,"height":405,"url":"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H\u01b0\u1edbng-d\u1eabn-t\u1ea1o-system.xml-v\u00e0-s\u1eed-d\u1ee5ng-Helper.png?fit=750%2C405&ssl=1","type":"image\/png"}],"author":"Callula Huy","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Callula Huy","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2","datePublished":"2020-06-12T02:16:15+00:00","dateModified":"2020-06-12T02:26:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/"},"wordCount":494,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1","keywords":["H\u01b0\u1edbng d\u1eabn code module magento 2","h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh Magento 2","H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2","H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module ph\u1ea7n 6","H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Helper","H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml","H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper"],"articleSection":["Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","url":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","name":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1","datePublished":"2020-06-12T02:16:15+00:00","dateModified":"2020-06-12T02:26:18+00:00","description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1","width":750,"height":405,"caption":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9","name":"Callula Huy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","caption":"Callula Huy"},"description":"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.","sameAs":["http:\/\/magetop.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-Ck","jetpack-related-posts":[{"id":2197,"url":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","url_meta":{"origin":2376,"position":0},"title":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view","author":"Callula Huy","date":"May 15, 2020","format":false,"excerpt":"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng c\u1ee7a view.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2 t\u1ea1o view","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2100,"url":"https:\/\/www.magetop.com\/blog\/model-trong-magento-2\/","url_meta":{"origin":2376,"position":1},"title":"H\u01b0\u1edbng d\u1eabn d\u00f9ng Model trong Magento 2","author":"Callula Huy","date":"May 12, 2020","format":false,"excerpt":"Ti\u1ebfp t\u1ee5c series h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module, trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch s\u1eed d\u1ee5ng Model trong Magento 2 \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u t\u1eeb database.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng model trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2256,"url":"https:\/\/www.magetop.com\/blog\/tao-menu-admin-module-magento-2\/","url_meta":{"origin":2376,"position":2},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o menu admin module trong Magento 2","author":"Callula Huy","date":"May 22, 2020","format":false,"excerpt":"Ti\u1ebfp t\u1ee5c v\u1edbi lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, \u1edf b\u00e0i h\u01b0\u1edbng d\u1eabn ph\u1ea7n 5 m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u v\u1edbi c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o menu admin cho module.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u1ea1o menu admin module trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1545,"url":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/","url_meta":{"origin":2376,"position":3},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2","author":"Callula Huy","date":"March 20, 2020","format":false,"excerpt":"Ti\u1ebfp n\u1ed1i lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn code module Magento 2, Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"B\u00e0i 2: h\u01b0\u1edbng d\u1eabn t\u1ea1o table database Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1478,"url":"https:\/\/www.magetop.com\/blog\/tao-module-don-gian-magento-2\/","url_meta":{"origin":2376,"position":4},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o module \u0111\u01a1n gi\u1ea3n trong Magento 2","author":"Callula Huy","date":"March 7, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o 1 module Magento 2 \u0111\u01a1n gi\u1ea3n - Hello world module.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5829,"url":"https:\/\/www.magetop.com\/blog\/cach-tao-cms-block-trong-magento-2\/","url_meta":{"origin":2376,"position":5},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o CMS Block trong Magento 2","author":"Callula Huy","date":"April 20, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u1ea1o CMS Block trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u1ea1o CMS Block trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-CMS-Block-trong-Magento-2.png?fit=750%2C433&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-CMS-Block-trong-Magento-2.png?fit=750%2C433&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-CMS-Block-trong-Magento-2.png?fit=750%2C433&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-CMS-Block-trong-Magento-2.png?fit=750%2C433&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=2376"}],"version-history":[{"count":4,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":2385,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2376\/revisions\/2385"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/2386"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}