Jump to content
View in the app

A better way to browse. Learn more.

Portal do Host

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.

If para Template - cart + parametros

Featured Replies

Bom dia,

Estou tentando fazer uma personalização de topo no meu WHMCS e já consegui quase tudo.

Em todas as telas do carrinho eu coloquei o topo do site normal, mas na tela do carrinho de renovação de domínios eu quero o outro topo que eu configurei para aparecer na área do cliente

Então meu IF dentro do header.tpl está assim:

{if $filename != 'clientarea' && $filename != 'supporttickets' && $filename != 'submitticket' && $filename != 'viewticket' && $filename != 'serverstatus'}

AQUI EU REPITO O TOPO DO MEU WORDPRESS, para ter uma integração total com o site.

{else}

AQUI EU TENHO UM TOPO PERSONALIZADO PARA QUANDO O CLIENTE ESTIVER DENTRO DA ÁREA DO CLIENTE ou todos os outros arquivos que seja "dentro da área do cliente".

{/if}

Entretanto eu quero que no cart.php?gid=renewals ele receba o topo que está dentro do ELSE, e em todos os outros parametros ele receba o topo que está antes do ELSE.

Não consegui fazer isso de jeito nenhum



Consegui dessa forma.

{if $filename eq "cart"}
test1
{else}
test2
{/if}

Porém tentei pegar o GET para colocar apenas na renovação de domínio mas não consegui encontrar.



  • Author
1 hora atrás, Jefferson disse:

Verifique se consegue associar o título da página citada com: {$pagetitle}


{$pagetitle == 'Título da Página do WHMCS'}

Fonte: http://docs.whmcs.com/Template_Syntax

O título da página fica igual a todos os outros parâmetros do carrinho.

"Carrinho de Compras"

Se o título mudasse para "renovação de domínios" ou algo parecido ficaria fácil de fazer.

Meu title dentro de header está assim

<title>{if $kbarticle.title} - {$kbarticle.title} | {/if}{$pagetitle} - {$companyname}</title>

 


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Do you agree with our terms?

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.