{"id":15653529,"date":"2024-05-22T06:31:03","date_gmt":"2024-05-22T06:31:03","guid":{"rendered":"https:\/\/wpml.org\/huong-dan-bat-dau\/cai-dat-ngon-ngu\/kich-hoat-cookie-ngon-ngu-de-ho-tro-loc-ajax\/"},"modified":"2024-05-22T06:31:14","modified_gmt":"2024-05-22T06:31:14","slug":"kich-hoat-cookie-ngon-ngu-de-ho-tro-loc-ajax","status":"publish","type":"page","link":"https:\/\/wpml.org\/vi\/tai-lieu-wpml\/huong-dan-bat-dau\/cai-dat-ngon-ngu\/kich-hoat-cookie-ngon-ngu-de-ho-tro-loc-ajax\/","title":{"rendered":"K\u00edch ho\u1ea1t Cookie ng\u00f4n ng\u1eef \u0111\u1ec3 h\u1ed7 tr\u1ee3 l\u1ecdc AJAX"},"content":{"rendered":"\n<p class=\"lead\">WooCommerce \u0110a ng\u00f4n ng\u1eef v\u00e0 m\u1ed9t s\u1ed1 ch\u1ee7 \u0111\u1ec1 v\u00e0 plugin c\u1ea7n ch\u1ea1y c\u00e1c cu\u1ed9c g\u1ecdi AJAX \u1edf giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng d\u1ef1a tr\u00ean th\u00f4ng tin ng\u00f4n ng\u1eef. V\u1edbi m\u1ee5c \u0111\u00edch n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 c\u1ea7n b\u1eadt cookie ng\u00f4n ng\u1eef h\u1ed7 tr\u1ee3 l\u1ecdc AJAX .<\/p>\n\n<p>\u0110\u1ec3 b\u1eadt th\u00f4ng tin ng\u00f4n ng\u1eef cho c\u00e1c cu\u1ed9c g\u1ecdi AJAX giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng, h\u00e3y truy c\u1eadp <strong>WPML<\/strong> \u2192 <strong>Ng\u00f4n ng\u1eef<\/strong> v\u00e0 cu\u1ed9n xu\u1ed1ng ph\u1ea7n <strong>L\u1ecdc ng\u00f4n ng\u1eef cho ho\u1ea1t \u0111\u1ed9ng AJAX<\/strong> . \u1ede \u0111\u00f3, h\u00e3y ch\u1ecdn t\u00f9y <strong>ch\u1ecdn L\u01b0u tr\u1eef cookie ng\u00f4n ng\u1eef \u0111\u1ec3 h\u1ed7 tr\u1ee3 l\u1ecdc ng\u00f4n ng\u1eef cho AJAX<\/strong> .<\/p>\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"140e5ba8514a71e257816c8fb2c5964a\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX.png\"><img decoding=\"async\" width=\"950\" height=\"137\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX.png\" alt=\"\" class=\"wp-image-15653533\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX.png 950w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX-150x22.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX-300x43.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/06\/wpml-store-a-language-cookie-to-support-language-filtering-for-AJAX-768x111.png 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/a><figcaption><div class=\"tb-image-caption\">K\u00edch ho\u1ea1t cookie ng\u00f4n ng\u1eef h\u1ed7 tr\u1ee3 l\u1ecdc AJAX \u1edf giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng<\/div><\/figcaption><\/figure>\n<\/div>\n<p>B\u00e2y gi\u1edd, WPML s\u1ebd \u0111\u1eb7t cookie b\u1eb1ng JavaScript \u0111\u1ec3 cho ph\u00e9p n\u00f3 tr\u1ea3 v\u1ec1 n\u1ed9i dung ch\u00ednh x\u00e1c cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng AJAX .<\/p>\n\n<p>\u0110\u00e2y l\u00e0 c\u00e1ch n\u00f3 ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed1i v\u1edbi kh\u00e1ch truy c\u1eadp:<\/p>\n\n<ul class=\"wp-block-list\"><li>\u0110\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng \u0111\u00e3 \u0111\u0103ng nh\u1eadp, kh\u00f4ng c\u00f3 g\u00ec thay \u0111\u1ed5i v\u00e0 c\u00e0i \u0111\u1eb7t n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng. Cookie ng\u00f4n ng\u1eef \u0111\u01b0\u1ee3c l\u01b0u b\u00ecnh th\u01b0\u1eddng b\u1eb1ng PHP.<\/li><li>\u0110\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng ch\u01b0a \u0111\u0103ng nh\u1eadp, WPML s\u1ebd ki\u1ec3m tra xem c\u00e0i \u0111\u1eb7t n\u00e0y c\u00f3 \u0111\u01b0\u1ee3c b\u1eadt hay kh\u00f4ng v\u00e0 n\u1ebfu c\u00f3 th\u00ec cookie ng\u00f4n ng\u1eef s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1eb7t b\u1eb1ng JavaScript. \u0110i\u1ec1u n\u00e0y cho ph\u00e9p WPML \u0111\u1eb7t cookie ng\u00f4n ng\u1eef ngay c\u1ea3 khi trang web \u0111\u01b0\u1ee3c l\u01b0u v\u00e0o b\u1ed9 nh\u1edb \u0111\u1ec7m.<\/li><\/ul>\n\n<p>N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng WPML 4.5 tr\u1edf l\u00ean, c\u00e0i \u0111\u1eb7t n\u00e0y \u0111\u01b0\u1ee3c b\u1eadt theo m\u1eb7c \u0111\u1ecbnh. N\u1ebfu b\u1ea1n nh\u1eadn th\u1ea5y n\u00f3 can thi\u1ec7p v\u00e0o plugin b\u1ed9 nh\u1edb \u0111\u1ec7m, b\u1ea1n c\u00f3 th\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a n\u00f3 b\u1eb1ng c\u00e1ch l\u00e0m theo c\u00e1c b\u01b0\u1edbc t\u01b0\u01a1ng t\u1ef1 nh\u01b0 chi ti\u1ebft \u1edf tr\u00ean.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce \u0110a ng\u00f4n ng\u1eef v\u00e0 m\u1ed9t s\u1ed1 ch\u1ee7 \u0111\u1ec1 v\u00e0 plugin c\u1ea7n ch\u1ea1y c\u00e1c cu\u1ed9c g\u1ecdi AJAX \u1edf giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng d\u1ef1a tr\u00ean th\u00f4ng tin ng\u00f4n ng\u1eef. V\u1edbi m\u1ee5c \u0111\u00edch n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 c\u1ea7n b\u1eadt cookie ng\u00f4n ng\u1eef h\u1ed7 tr\u1ee3 l\u1ecdc AJAX . \u0110\u1ec3 b\u1eadt th\u00f4ng tin ng\u00f4n ng\u1eef cho c\u00e1c cu\u1ed9c g\u1ecdi [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":0,"parent":15197865,"menu_order":79,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"related-projects-category":[],"class_list":["post-15653529","page","type-page","status-publish","hentry"],"spectra_custom_meta":{"ratings_users":["0"],"ratings_score":["0"],"ratings_average":["0"],"_subscription_coupon_product_id":["0"],"_wpv_contains_gutenberg_views":[""],"_alp_processed":["1716359474"],"_views_template":["0"],"wpcf-unformatted-code":[""],"_wpml_media_duplicate":["1"],"_wpml_media_featured":["1"],"toolset_post_editor_mode":["block"],"wpcf-price-increase-show-from":[""],"wpcf-price-increase-show-till":[""],"_wp_page_template":["default"],"_last_translation_edit_mode":["translation-editor"],"_uagb_previous_block_counts":["a:90:{s:21:\"uagb\/advanced-heading\";i:0;s:15:\"uagb\/blockquote\";i:0;s:12:\"uagb\/buttons\";i:0;s:18:\"uagb\/buttons-child\";i:0;s:19:\"uagb\/call-to-action\";i:0;s:15:\"uagb\/cf7-styler\";i:0;s:11:\"uagb\/column\";i:0;s:12:\"uagb\/columns\";i:0;s:14:\"uagb\/container\";i:0;s:21:\"uagb\/content-timeline\";i:0;s:27:\"uagb\/content-timeline-child\";i:0;s:14:\"uagb\/countdown\";i:0;s:12:\"uagb\/counter\";i:0;s:8:\"uagb\/faq\";i:0;s:14:\"uagb\/faq-child\";i:0;s:10:\"uagb\/forms\";i:0;s:17:\"uagb\/forms-accept\";i:0;s:19:\"uagb\/forms-checkbox\";i:0;s:15:\"uagb\/forms-date\";i:0;s:16:\"uagb\/forms-email\";i:0;s:17:\"uagb\/forms-hidden\";i:0;s:15:\"uagb\/forms-name\";i:0;s:16:\"uagb\/forms-phone\";i:0;s:16:\"uagb\/forms-radio\";i:0;s:17:\"uagb\/forms-select\";i:0;s:19:\"uagb\/forms-textarea\";i:0;s:17:\"uagb\/forms-toggle\";i:0;s:14:\"uagb\/forms-url\";i:0;s:14:\"uagb\/gf-styler\";i:0;s:15:\"uagb\/google-map\";i:0;s:11:\"uagb\/how-to\";i:0;s:16:\"uagb\/how-to-step\";i:0;s:9:\"uagb\/icon\";i:0;s:14:\"uagb\/icon-list\";i:0;s:20:\"uagb\/icon-list-child\";i:0;s:10:\"uagb\/image\";i:0;s:18:\"uagb\/image-gallery\";i:0;s:13:\"uagb\/info-box\";i:0;s:18:\"uagb\/inline-notice\";i:0;s:11:\"uagb\/lottie\";i:0;s:21:\"uagb\/marketing-button\";i:0;s:10:\"uagb\/modal\";i:0;s:18:\"uagb\/popup-builder\";i:0;s:16:\"uagb\/post-button\";i:0;s:18:\"uagb\/post-carousel\";i:0;s:17:\"uagb\/post-excerpt\";i:0;s:14:\"uagb\/post-grid\";i:0;s:15:\"uagb\/post-image\";i:0;s:17:\"uagb\/post-masonry\";i:0;s:14:\"uagb\/post-meta\";i:0;s:18:\"uagb\/post-taxonomy\";i:0;s:18:\"uagb\/post-timeline\";i:0;s:15:\"uagb\/post-title\";i:0;s:20:\"uagb\/restaurant-menu\";i:0;s:26:\"uagb\/restaurant-menu-child\";i:0;s:11:\"uagb\/review\";i:0;s:12:\"uagb\/section\";i:0;s:14:\"uagb\/separator\";i:0;s:11:\"uagb\/slider\";i:0;s:17:\"uagb\/slider-child\";i:0;s:17:\"uagb\/social-share\";i:0;s:23:\"uagb\/social-share-child\";i:0;s:16:\"uagb\/star-rating\";i:0;s:23:\"uagb\/sure-cart-checkout\";i:0;s:22:\"uagb\/sure-cart-product\";i:0;s:15:\"uagb\/sure-forms\";i:0;s:22:\"uagb\/table-of-contents\";i:0;s:9:\"uagb\/tabs\";i:0;s:15:\"uagb\/tabs-child\";i:0;s:18:\"uagb\/taxonomy-list\";i:0;s:9:\"uagb\/team\";i:0;s:16:\"uagb\/testimonial\";i:0;s:14:\"uagb\/wp-search\";i:0;s:19:\"uagb\/instagram-feed\";i:0;s:10:\"uagb\/login\";i:0;s:17:\"uagb\/loop-builder\";i:0;s:18:\"uagb\/loop-category\";i:0;s:20:\"uagb\/loop-pagination\";i:0;s:15:\"uagb\/loop-reset\";i:0;s:16:\"uagb\/loop-search\";i:0;s:14:\"uagb\/loop-sort\";i:0;s:17:\"uagb\/loop-wrapper\";i:0;s:13:\"uagb\/register\";i:0;s:19:\"uagb\/register-email\";i:0;s:24:\"uagb\/register-first-name\";i:0;s:23:\"uagb\/register-last-name\";i:0;s:22:\"uagb\/register-password\";i:0;s:30:\"uagb\/register-reenter-password\";i:0;s:19:\"uagb\/register-terms\";i:0;s:22:\"uagb\/register-username\";i:0;}"],"_uag_css_file_name":["uag-css-15653529.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:4:{i:0;s:14:\"core\/paragraph\";i:1;s:20:\"toolset-blocks\/image\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778348500\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Dario","author_link":"https:\/\/wpml.org\/vi\/author\/darioh\/"},"uagb_comment_info":0,"uagb_excerpt":"WooCommerce \u0110a ng\u00f4n ng\u1eef v\u00e0 m\u1ed9t s\u1ed1 ch\u1ee7 \u0111\u1ec1 v\u00e0 plugin c\u1ea7n ch\u1ea1y c\u00e1c cu\u1ed9c g\u1ecdi AJAX \u1edf giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng d\u1ef1a tr\u00ean th\u00f4ng tin ng\u00f4n ng\u1eef. V\u1edbi m\u1ee5c \u0111\u00edch n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 c\u1ea7n b\u1eadt cookie ng\u00f4n ng\u1eef h\u1ed7 tr\u1ee3 l\u1ecdc AJAX . \u0110\u1ec3 b\u1eadt th\u00f4ng tin ng\u00f4n ng\u1eef cho c\u00e1c cu\u1ed9c g\u1ecdi&hellip;","_links":{"self":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/pages\/15653529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/comments?post=15653529"}],"version-history":[{"count":2,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/pages\/15653529\/revisions"}],"predecessor-version":[{"id":15653538,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/pages\/15653529\/revisions\/15653538"}],"up":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/pages\/15197865"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/media?parent=15653529"}],"wp:term":[{"taxonomy":"related-projects-category","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/related-projects-category?post=15653529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}