WordPress. Woocommerce

categoria-WordPress

Cómo cambiar cualquier texto en WooCommerce (2017 Fernando Tellado) https://ayudawp.com/cambiar-cualquier-texto-woocommerce/

Añadir un campo interno a la ficha de cliente de WooCommerce (2016 Esther Sola) https://www.esthersola.com/anadir-campo-ficha-cliente-woocommerce/

Redireccionar la página de la tienda de WooCommerce para ocultarla (2021 Esther Sola) https://www.esthersola.com/redireccionar-la-pagina-de-la-tienda-de-woocommerce-para-ocultarla/

Todos los shortcodes de WooCommerce y cómo utilizarlos (actualizado permanentemente) 04-10-2019: https://ayudawp.com/todos-los-shortcodes-de-woocommerce-y-como-utilizarlos/

Sobre los productos relacionados

// Add badge  "Out of stock" (and replace sale badge)
add_action('woocommerce_before_shop_loop_item_title','custom_before_shop_loop_item_title', 2 ); // Archives pages
function custom_before_shop_loop_item_title(){
    remove_action('woocommerce_before_shop_loop_item_title','woocommerce_show_product_loop_sale_flash', 10 );
    remove_action('woocommerce_after_shop_loop_item_title','woocommerce_show_product_loop_sale_flash', 6 ); // For storefront theme
    add_action('woocommerce_before_shop_loop_item_title','show_product_loop_outofstock_badge', 10 );
}

function show_product_loop_outofstock_badge(){
    global $post, $product;

    if ( $product->get_stock_status() == 'outofstock' ) :
        echo '<span class="onsale outofstock">'. esc_html__('Out of stock', 'woocommerce') .'</span>';
    elseif ( $product->is_on_sale() ) :
        echo '<span class="onsale">'. esc_html__( 'Sale!', 'woocommerce' ) .'</span>';
    endif;
}


//o probar este otro:
/*
add_filter( 'woocommerce_sale_flash', 'sale_flash_stock_status' );
function sale_flash_stock_status( $output_html, $post, $product ){
    if( $product->is_in_stock() ){
        // Leave the sale flash unchanged if it's in stock.
        return $output_html;
    }
    else {
        // Change the html output custom stock status
        $output_html = '<span class="stock-status">' . esc_html__( 'Out of stock', 'woocommerce' ) . '</span>'
        return $output_html;
    }
}
*/

2019 Combinaciones de theme y plugins para tienda

Cómo crear una tienda online con GeneratePress + Elementor + WooCommerce 5 mayo, 2019 por Arturo García: https://www.arturogarcia.com/hacer-tienda-online-woocommerce-elementor/
Los 9 mejores addons para Elementor… y 5 que no merecen la pena 5 mayo, 2019: https://www.arturogarcia.com/mejores-addons-elementor/
Y plugins para elementor:
jetengine jet engine: https://crocoblock.com/ – https://crocoblock.com/plugins/
Ultimate addons for elementor: https://ultimateelementor.com/widgets/woocommerce-products/

,

cesar
Resumen de privacidad

Esta web utiliza cookies para que podamos ofrecerte la mejor experiencia de usuario posible. La información de las cookies se almacena en tu navegador y realiza funciones tales como reconocerte cuando vuelves a nuestra web o ayudar a nuestro equipo a comprender qué secciones de la web encuentras más interesantes y útiles.