{"id":146236,"date":"2023-03-05T18:57:21","date_gmt":"2023-03-05T13:27:21","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=146236"},"modified":"2024-02-21T17:06:18","modified_gmt":"2024-02-21T11:36:18","slug":"display-featured-products-instead-of-empty-cart","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/display-featured-products-instead-of-empty-cart\/","title":{"rendered":"Mostrar productos destacados en lugar de la cesta vac\u00eda"},"content":{"rendered":"<p>Cuando no haya a\u00f1adido ning\u00fan producto al carrito, o al configurar una tienda de comercio electr\u00f3nico por primera vez, se encontrar\u00e1 con el mensaje \"Su carrito est\u00e1 actualmente vac\u00edo\". En lugar de mostrar un carrito vac\u00edo, Astra introduce la funci\u00f3n \"Mostrar producto destacado\" en la versi\u00f3n 4.1.0 y superiores. Esta funci\u00f3n permite mostrar productos destacados en el carrito en lugar de mostrarlos vac\u00edos.<\/p>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__align-left uagb-block-77a39a5d\"><h4 class=\"uagb-notice-title\">Nota:<\/h4><div class=\"uagb-notice-text\">Esto s\u00f3lo funcionar\u00e1 cuando el tema Astra y el Astra Pro est\u00e9n instalados y activados en su sitio web.<\/div><\/div>\n\n\n\n<p>Puede convertir cualquier producto en \"Producto destacado\" seleccionando el s\u00edmbolo de la estrella que aparece junto al art\u00edculo que desea mostrar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products-1024x487.png\" alt=\"\" class=\"wp-image-146237\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products-1024x487.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products-300x143.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products-768x365.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products-1536x730.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/featured-products.png 1648w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Si has a\u00f1adido el Carrito a la Cabecera Principal\/ Encima de la Cabecera\/ Debajo de la Cabecera: Al hacer clic en el carrito te llevar\u00e1 a la configuraci\u00f3n de Personalizaci\u00f3n del Carrito de WooCommerce. Despl\u00e1zate un poco hacia abajo para activar la opci\u00f3n '<strong>Mostrar producto destacado<\/strong>'. Al activar esta opci\u00f3n, se mostrar\u00e1 el producto destacado o si el producto destacado no est\u00e1 seleccionado, entonces se mostrar\u00e1 un producto al azar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product.png\"><img decoding=\"async\" width=\"1024\" height=\"484\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product-1024x484.png\" alt=\"\" class=\"wp-image-146255\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product-1024x484.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product-300x142.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product-768x363.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product-1536x726.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-product.png 1894w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Por ejemplo:<\/strong> Sin activar la funci\u00f3n '<strong>Mostrar producto destacado<\/strong>Cuando no se a\u00f1ada ning\u00fan producto a la cesta, se ver\u00e1 as\u00ed en la interfaz.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart.png\"><img decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart-1024x453.png\" alt=\"\" class=\"wp-image-146243\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart-1024x453.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart-300x133.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart-768x340.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart-1536x680.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/no-items-in-the-cart.png 1913w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Despu\u00e9s de activar la funci\u00f3n '<strong>Mostrar proyecto destacado<\/strong>Cuando no se a\u00f1ada ning\u00fan producto a la cesta, se ver\u00e1 as\u00ed en la interfaz.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"459\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products-1024x459.png\" alt=\"\" class=\"wp-image-146246\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products-1024x459.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products-300x134.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products-768x344.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products-1536x688.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/03\/show-featured-products.png 1917w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Cuando no haya a\u00f1adido ning\u00fan producto al carrito, o al configurar una tienda de comercio electr\u00f3nico por primera vez, se encontrar\u00e1 con el mensaje \"Su carrito est\u00e1 actualmente vac\u00edo\". En lugar de mostrar un carrito vac\u00edo, Astra introduce la funci\u00f3n \"Mostrar producto destacado\" en la versi\u00f3n 4.1.0 y superiores. Esta funci\u00f3n permite mostrar productos [...]<\/p>","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[155],"docs_tag":[],"class_list":{"0":"post-146236","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-woocommerce-free"},"spectra_custom_meta":{"wp_last_modified_info":["March 7, 2023 @ 6:39 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1708515419:89"],"_wplmi_last_modified":["2023-03-14 13:37:10"],"rank_math_internal_links_processed":["1"],"rank_math_primary_docs_category":["155"],"rank_math_seo_score":["20"],"views":["2788"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"rank_math_analytic_object_id":["2389"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"7d52ffe376185a219c83879151253011\";s:6:\"images\";a:1:{i:0;i:146237;}}"],"helpful":["3"],"unhelpful":["1"],"redirects":["1"],"_wp_old_slug":["showcase-featured-products-in-the-cart-instead-of-showing-it-empty-when-no-products-are-added","display-showcase-products-instead-of-empty-cart"],"_trp_automatically_translated_slug_es_ES":["mostrar-productos-destacados-en-lugar-del-carrito-vacio"],"_uag_custom_page_level_css":[""],"ast-site-content-layout":["default"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"pfd_related_docs":[""],"_uag_page_assets":["a:9:{s:3:\"css\";s:5248:\" .uagb-block-77a39a5d.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-77a39a5d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;border: 2px solid #FFD54F;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-77a39a5d.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;top: 15px;} .uagb-block-77a39a5d.uagb-dismissable > svg{width: 16px;height: 16px;top: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center svg{right: 15px;} .uagb-block-77a39a5d .uagb-notice-title{background-color: #FFD54F;border-top-right-radius: 3px;border-top-left-radius: 3px;} .uagb-block-77a39a5d.uagb-inline_notice__align-right button[type=\"button\"] svg{left: 15px;}@media only screen and (max-width: 976px) { .uagb-block-77a39a5d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-77a39a5d .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-77a39a5d.uagb-dismissable button[type=\"button\"] svg{top: 15px;} .uagb-block-77a39a5d.uagb-dismissable > svg{top: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-right button[type=\"button\"] svg{left: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-77a39a5d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-77a39a5d .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-77a39a5d.uagb-dismissable button[type=\"button\"] svg{top: 15px;} .uagb-block-77a39a5d.uagb-dismissable > svg{top: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-left svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center button[type=\"button\"] svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-center svg{right: 15px;} .uagb-block-77a39a5d.uagb-inline_notice__align-right button[type=\"button\"] svg{left: 15px;}}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:271:\"document.addEventListener(\"DOMContentLoaded\", function(){ window.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-77a39a5d' );\n});\n });\";s:18:\"current_block_list\";a:5:{i:0;s:14:\"core\/paragraph\";i:1;s:18:\"uagb\/inline-notice\";i:2;s:10:\"core\/image\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1775566941\";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,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"mounikak","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/mounikak\/"},"uagb_comment_info":0,"uagb_excerpt":"When you have not added any products to the cart, or when setting up an eCommerce store for the first time, you will come across the message &#8220;Your cart is currently empty&#8221;. Instead of displaying an empty cart, Astra introduces the \u2018Show Featured Product\u2019 in v4.1.0 and above. This feature allows you to showcase featured&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/146236"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=146236"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/146236\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=146236"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=146236"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=146236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}