Ir para conteúdo
View in the app

A better way to browse. Learn more.

GGames Fórum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Como remover Cidade, Estado e País do carrinho do Woocommerce

Quer um carrinho mais clean? É bem fácil de resolver.

Já deve ter notado que o carrinho do Woocommerce fica com diversas informações desnecessárias para calcular um frete. Nesse pequeno tutorial vou ensiná-los a remover isso.

image.png

1. Vá em editar Aparência > Editor de arquivos de tema > e localize o arquivo FUNCTIONS.PHP 

image.png

2. Adicione as 3 linhas de código no final do seu código e clique em ATUALIZAR ARQUIVO.
 

add_filter( 'woocommerce_shipping_calculator_enable_country', '__return_false' );
add_filter( 'woocommerce_shipping_calculator_enable_city', '__return_false' );
add_filter( 'woocommerce_shipping_calculator_enable_state', '__return_false' );

Prontinho, agora vá no carrinho e veja o resultado final.
image.png

O código eu peguei nesse link, fotos e texto é de minha autoria.

Feedback do Usuário

Comentários Recomendados

AlexUFC

VIP Vitalício

Postado

  • VIP Vitalício

Obrigado 👏

Postado

ótima dica, muito obrigado!!!

Crie uma conta ou entre para comentar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.