Como abrir

Objetivos do blog

Depois de ler este blog, poderemos adicionar oTermos e Condições"link para abri-lo em

Cenário atual

Atualmente, o "Termos & Condições"link mostraTermos & Condições"ter textos personalizados e

Da-e-condições

Procedimento:

PASSO 1: –

O link Termos e Condições exibido na página de checkout padrão reside emcatalog / view / theme / default / template / checkout / payment_method.tpl, Bloco de código usado para

<div class = "pull-right"> <? php echo $ text_agree; ?>

$ text_agree?is the variable that prints the link on?page?and this variable is set at location?catalog / controller / checkout / payment_method.php

Variável

$ data ['text_agree'] = sprintf ($ this-> idioma-> get ('text_agree'), $ this-> url-> link ('informação / informação / acordo', 'informação_id ='. $ this-> config-> get ('config_checkout_id'), true), $ informação_info ['título'], $ informação_info ['título']);

Você precisa substituir essa definição por

$ data ['text_agree'] = sprintf ($ this-> idioma-> get ('text_agree'), $ this-> url-> link ('informação / informação', 'information_id = 5', true), $ information_info ['title'], $ information_info ['title']);

nós substituímos o

https://your_store_url/index.php?route=information/information/agree&information_id=5

que não contém

https://your_store_url.com/index.php?route=information/information&information_id=5

que contém

DEGRAU

Por fim, você tem que editar a definição decatálogo / idioma / en-gb / checkout / checkout.php

In?above?file location there would be a definition as below : –

$ _ ['text_agree'] = 'Li e concordo com os <a href="%s" class="agree"> <b>% s </ b> </a>';

Nós temos que adicionar

$ _ ['text_agree'] = 'Li e aceito os <a href="%s" target="_blank"> <b>% s </ b> </a>';

Depois de salvar as alterações acima, poderemos abrir o "Termos & Condições"link em uma nova guia

Front-end da Loja Opencart

Resumo:

Após seguir as alterações acima, poderemos abrir o "Termos & Condições"link em uma nova guia

NOTA:?This demonstration is for default template but this will work same for other templates having similar code.


Leave a Reply

Your email address will not be published. Required fields are marked *