Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exibição da entrega no carrinho #167

Open
gspsites opened this issue Feb 2, 2023 · 0 comments
Open

Exibição da entrega no carrinho #167

gspsites opened this issue Feb 2, 2023 · 0 comments

Comments

@gspsites
Copy link

gspsites commented Feb 2, 2023

Gostaria de saber se existe alguma função para mudar como o prazo de entrega é exibido no carrinho, hoje ele é exibido entre parentes, depois do nome do método e antes do preço, gostaria que ele aparecesse abaixo, depois do preço, porém menor e abaixo, como o plugin dos correios, igual nesse print https://ibb.co/GtNJMY9

eu até tentei colocar o seguinte código no function.php, mas deu erro

add_filter( 'woocommerce_cart_shipping_method_full_label', 'custom_shipping_method_label', 10, 2 );
function custom_shipping_method_label( $label, $method ) {
    $new_label = sprintf( '<strong>%s</strong><br>Preço: %s<br>Prazo de Entrega: %s', $method->get_label(), wc_price( $method->cost ), $method->get_delivery_time() );
    return $new_label;
}

obrigado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant