{"id":63041,"date":"2020-07-21T17:58:18","date_gmt":"2020-07-21T12:28:18","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=63041"},"modified":"2021-09-08T20:18:07","modified_gmt":"2021-09-08T14:48:07","slug":"modify-quick-view-text","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/modify-quick-view-text\/","title":{"rendered":"\u00bfC\u00f3mo modificar\/cambiar el texto de la vista r\u00e1pida?"},"content":{"rendered":"<p>Como propietario de una tienda, es posible que desee cambiar el <strong>Vista r\u00e1pida<\/strong> texto. En este art\u00edculo, veremos c\u00f3mo cambiar el texto de la Vista R\u00e1pida utilizando un filtro.<\/p>\n\n\n\n<p>En nuestro Addon WooCommerce, como puedes ver tenemos la opci\u00f3n de mostrar la Vista R\u00e1pida<strong> <\/strong>texto basado en el <a href=\"https:\/\/share.getcloudapp.com\/GGuowABe\">posici\u00f3n<\/a> que hayas seleccionado en los ajustes de Astra.<\/p>\n\n\n\n<p>As\u00ed que a continuaci\u00f3n son el filtro basado en la posici\u00f3n para cambiar el<strong> <\/strong>Texto de vista r\u00e1pida -<\/p>\n\n\n\n<p><strong>1]<\/strong> Para \"<strong>En imagen\"<\/strong> posici\u00f3n, puede utilizar el siguiente filtro -<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>\/**\n * Change Quick View text from the shop page (for on image button option)\n *\n *\/\n\nadd_filter( 'astra_woo_add_quick_view_text_html', 'astra_woo_add_quick_view_text_html_func', 10, 3 );\n\nfunction astra_woo_add_quick_view_text_html_func( $button, $label, $product_id ) {\n\n    global $product;\n    $product_id = $product-&gt;get_id();\n\n    $label = __( 'Buy Now', 'astra-addon' );\n    $button = '&lt;a href=\"#\" class=\"ast-quick-view-text\" data-product_id=\"' . esc_attr( $product_id ) . '\"&gt;' . $label . '&lt;\/a&gt;';\n    \n    return $button;\n}<\/code><\/pre>\n\n\n\n<p>As\u00ed es como se mostrar\u00eda Antes y Despu\u00e9s utilizando el filtro anterior -<\/p>\n\n\n\n<p><strong>Antes...<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image.png\" alt=\"Astra Pro - WooCommerce, On Image Quick View text - Before, Astra 3.0+\" class=\"wp-image-86474\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-on-image-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Despu\u00e9s...<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image.png\"><img decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image.png\" alt=\"Astra Pro - WooCommerce, On Image Quick View text - After, Astra 3.0+\" class=\"wp-image-86476\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-on-image-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>2]<\/strong> Para <strong>Despu\u00e9s del resumen <\/strong>posici\u00f3n, puede utilizar el siguiente filtro -<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>\/**\n * Change Quick View text from the shop page (for after summary option)\n *\n *\/\n\nadd_filter( 'astra_woo_add_quick_view_button_html', 'astra_woo_add_quick_view_button_html_func', 10, 3 );\n\nfunction astra_woo_add_quick_view_button_html_func( $button, $label, $product_id ) {\n\n    global $product;\n    $product_id = $product-&gt;get_id();\n\n    $label = __( 'Buy Now', 'astra-addon' );\n    $button = '&lt;div class=\"ast-qv-button-wrap\"&gt;';\n    $button .= '&lt;a href=\"#\" class=\"button ast-quick-view-button\" data-product_id=\"' . esc_attr( $product_id ) . '\"&gt;' . $label . '&lt;\/a&gt;';\n    $button .= '&lt;\/div&gt;';\n    \n    return $button;\n}\n<\/code><\/pre>\n\n\n\n<p>As\u00ed es como se mostrar\u00eda Antes y Despu\u00e9s utilizando el filtro anterior.<\/p>\n\n\n\n<p><strong>Antes de&nbsp;<\/strong>&#8211;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary.png\"><img decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary.png\" alt=\"Astra Pro - WooCommerce, After Summary Quick View text - Before, Astra 3.0+\" class=\"wp-image-86477\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-before-quick-view-after-summary-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Despu\u00e9s...<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary.png\" alt=\"Astra Pro - WooCommerce, After Summary Quick View text - After, Astra 3.0+\" class=\"wp-image-86478\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/04\/ast-3-3-after-quick-view-after-summary-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__outer-wrap uagb-inline_notice__align-left uagb-block-01ef1894\"><h4 class=\"uagb-notice-title\"><strong>Nota:<\/strong><\/h4><div class=\"uagb-notice-text\"><p>1. El filtro anterior cambiar\u00e1 el <strong>\"Vista r\u00e1pida\"<\/strong> texto a la <strong>\"Comprar ahora\"<\/strong> texto. Puede actualizarlo seg\u00fan sus necesidades.<\/p><p>2. Pegue el c\u00f3digo anterior en el campo <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">archivo functions.php del tema hijo<\/a>.<\/p><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Como propietario de una tienda, es posible que desee cambiar el texto de la Vista R\u00e1pida. En este art\u00edculo, veremos c\u00f3mo cambiar el texto de la Vista R\u00e1pida usando un filtro. En nuestro Addon WooCommerce, como puedes ver tenemos la opci\u00f3n de mostrar el texto de Vista R\u00e1pida basado en la posici\u00f3n que [...]<\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","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":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","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":[2112],"docs_tag":[],"class_list":{"0":"post-63041","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-woocommerce-filters"},"spectra_custom_meta":{"_edit_lock":["1631112487:70"],"_edit_last":["70"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"wp_last_modified_info":["September 8, 2021 @ 8:18 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"_ht_kb_post_views_count":["9"],"_ht_kb_usefulness":["0"],"_ht_article_order_103":["63041"],"views":["5229"],"helpful":["3"],"unhelpful":["6"],"redirects":["6"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2021-09-08 20:18:07"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["590"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"c04c867d13a7747ddaa113604f0600c8\";s:6:\"images\";a:1:{i:0;i:86474;}}"],"_trp_automatically_translated_slug_es_ES":["modificar-el-texto-de-la-vista-rapida"],"_uag_page_assets":["a:9:{s:3:\"css\";s:3730:\" .uagb-block-01ef1894.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-01ef1894 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;background-color: #fff8e1;border: 2px solid #fdf4c9;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-01ef1894.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-01ef1894.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-01ef1894 .uagb-notice-title{background-color: #fdf4c9;border-top-right-radius: 3px;border-top-left-radius: 3px;}@media only screen and (max-width: 976px) { .uagb-block-01ef1894 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-01ef1894 .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-01ef1894 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-01ef1894 .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 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-01ef1894' );\n});\n });\";s:18:\"current_block_list\";a:6:{i:0;s:14:\"core\/paragraph\";i:1;s:9:\"core\/code\";i:2;s:10:\"core\/image\";i:3;s:18:\"uagb\/inline-notice\";i:4;s:14:\"uagb\/container\";i:5;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1778567928\";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":"Suman","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/sumand\/"},"uagb_comment_info":0,"uagb_excerpt":"As a shop owner, you might want to change the Quick View text. In this article, we will be seeing how to change the Quick View text using a filter. In our WooCommerce Addon, as you can see we have the option to display the Quick View text based on the position which you have&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/63041"}],"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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=63041"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/63041\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=63041"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=63041"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=63041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}