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.
Postado
  • Fundador

Como trocar o botão ADD TO CART de lugar na página do Produto


Quer trocar a posição do seu botão 'comprar'? na loja WOOCOMMERCE é possível inserindo um comando no FUNCTIONS.PHP do seu tema. /** * woocommerce_single_product_summary hook * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 */ remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 40); add_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15); Existe o MANUAL informando qual código você deve inserir em REMOVER e ADICIONAR NOVAMENTE o botão. Por exemplo. remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 40); Para remover o botão localizado no arquivo SIMPLE_META, eu devo colocar o código 40 na linha. Já para adicionar o botão logo abaixo do PREÇO, eu coloco o 10. add_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 10); Fiz o teste e deu certinho. Nem precisei editar o código PHP do meu tema. Fonte Github.

  • Autor
    Este é um conteúdo oculto, por favor
  • Categoria
    Este é um conteúdo oculto, por favor
  • Enviado
    10-09-2018 15:11

 

Antes de perguntar, visite a Wiki GGames | Ajude-se a manter o fórum se tornando VIP e ganhe convites! 

Junta-se ao Telegram Oficial do GGames, lá pode falar de tudo! | Clique aqui

 

  • Visualizações 1,1k
  • Criado
  • Última resposta

Posts Recomendados

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.