{"id":115,"date":"2018-03-08T11:00:57","date_gmt":"2018-03-08T11:00:57","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/?p=115"},"modified":"2023-04-28T10:20:22","modified_gmt":"2023-04-28T10:20:22","slug":"categories-in-cart-message-type","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/","title":{"rendered":"&#8220;Categories in cart&#8221; message type"},"content":{"rendered":"<p>The <strong>&#8220;Categories in cart&#8221;<\/strong> message type is shown only when at least one of the products in the cart belongs to one of the selected categories (in the example the category is &#8220;Shoes &amp; Bags&#8221;).<\/p>\n<p><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-249\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\" alt=\"Categories in cart message\" width=\"1670\" height=\"1032\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg 1670w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1-300x185.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1-1024x633.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1-768x475.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1-1536x949.jpg 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1-825x510.jpg 825w\" sizes=\"auto, (max-width: 1670px) 100vw, 1670px\" \/><\/a><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-251\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825.jpg\" alt=\"Categories in cart message - Frontend\" width=\"1800\" height=\"625\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825.jpg 1800w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825-300x104.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825-1024x356.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825-768x267.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-frontend-scaled-e1682677212825-1536x533.jpg 1536w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/a><\/p>\n<p>You can edit the message using the following placeholders {categories} to state the list of categories.<\/p>\n<ul>\n<li><i>{categories}<\/i>: list of categories<\/li>\n<li><i>{user_name}<\/i>:<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;Categories in cart&#8221; message type is shown only when at least one of the products in the cart belongs to one of the selected categories (in the example the category is &#8220;Shoes &amp; Bags&#8221;). You can edit the message using the following placeholders {categories} to state the list of categories. {categories}: list of categories &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">&#8220;Categories in cart&#8221; message type<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Cart Messages: &quot;Categories in cart&quot; message type<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Cart Messages: &quot;Categories in cart&quot; message type\" \/>\n<meta property=\"og:description\" content=\"The &#8220;Categories in cart&#8221; message type is shown only when at least one of the products in the cart belongs to one of the selected categories (in the example the category is &#8220;Shoes &amp; Bags&#8221;). You can edit the message using the following placeholders {categories} to state the list of categories. {categories}: list of categories &hellip; Continue reading &#8220;Categories in cart&#8221; message type\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Cart Messages\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-08T11:00:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-28T10:20:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\",\"name\":\"YITH Cart Messages: \\\"Categories in cart\\\" message type\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\",\"datePublished\":\"2018-03-08T11:00:57+00:00\",\"dateModified\":\"2023-04-28T10:20:22+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;Categories in cart&#8221; message type\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/\",\"name\":\"YITH WooCommerce Cart Messages\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Cart Messages: \"Categories in cart\" message type","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:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/","og_locale":"en_US","og_type":"article","og_title":"YITH Cart Messages: \"Categories in cart\" message type","og_description":"The &#8220;Categories in cart&#8221; message type is shown only when at least one of the products in the cart belongs to one of the selected categories (in the example the category is &#8220;Shoes &amp; Bags&#8221;). You can edit the message using the following placeholders {categories} to state the list of categories. {categories}: list of categories &hellip; Continue reading &#8220;Categories in cart&#8221; message type","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/","og_site_name":"YITH WooCommerce Cart Messages","article_published_time":"2018-03-08T11:00:57+00:00","article_modified_time":"2023-04-28T10:20:22+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/","name":"YITH Cart Messages: \"Categories in cart\" message type","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg","datePublished":"2018-03-08T11:00:57+00:00","dateModified":"2023-04-28T10:20:22+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-content\/uploads\/sites\/80\/2018\/03\/categories-in-cart-1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/settings\/categories-in-cart-message-type\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/"},{"@type":"ListItem","position":2,"name":"&#8220;Categories in cart&#8221; message type"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/","name":"YITH WooCommerce Cart Messages","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":3,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/posts\/115\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-cart-messages\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}