Skip to main content

Whow to edit "THANK_YOU_FOR_PURCHASE" message

11 years 9 months ago #188930 by rfernandes
Hi,

I'm trying to get something like that:

Caro Sr(a) clientName,

Obrigado pela sua visita a www.mysite.com
A sua encomenda foi registada com sucesso e irá receber muito em breve, uma confirmação em emailCliente@domain.com.


O montante de 63,63 € irá ser cobrado no momento da entrega da sua encomenda (C5J4)(this message is auto-gerated by hikashop)

Obrigado pela sua preferência e compra.
Com os melhores cumprimentos,
logoImage


Well I have tried to edit the message in languages but I need to input this RED_VALUES to "%s" in translate text.
But when I try to change in "template/html/com_hikashop/checkout/end.php" I have only this:
Code:
<?php /** * @package HikaShop for Joomla! * @version 2.3.4 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php if(empty($this->html)){ echo JText::_('THANK_YOU_FOR_PURCHASE'); }else{ echo $this->html; } $this->nextButton = false;

Well the BLOCKS WITH THIS COLOR i was changed in override language like this:

ORDER_IS_COMPLETE="<p class='order_saudacao'>Caro Sr(a) <span>%s</span>,</p><p class='order_agradecerVisita'>Obrigado pela sua visita a <a href='%s' target='_blank'>%s</a>.<br>A sua encomenda foi registada com sucesso e irá receber muito em breve, uma confirmação em <span>%s</span>.</p>"

THANK_YOU_FOR_PURCHASE="<p class='order_agradecerCompra'><br>Obrigado pela sua preferência e compra.<br>Com os melhores cumprimentos.<br><img style='max-width:100px; max-height:70px;' src='%s' /></p>".

Now how i can change the code
Code:
echo $this->html;
to get the code like I wanted.

Please Log in or Create an account to join the conversation.

11 years 9 months ago #188932 by rfernandes
Hi again.

I have found the places, but how to override this plugins?

for example /components/com_hikashop/extensions/plg_hikashoppayment_collectondelivery/collectondelivery_end.php

this code:
Code:
<?php /** * @package HikaShop for Joomla! * @version 2.3.4 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><div class="hikashop_collectondelivery_end" id="hikashop_collectondelivery_end"> <span class="hikashop_collectondelivery_end_message" id="hikashop_collectondelivery_end_message"> <?php echo JText::_('ORDER_IS_COMPLETE').'<br/>'. JText::sprintf('AMOUNT_COLLECTED_ON_DELIVERY',$this->amount,$this->order_number).'<br/>'. JText::_('THANK_YOU_FOR_PURCHASE');?> </span> </div> <?php if(!empty($this->payment_params->return_url)){ $doc = JFactory::getDocument(); $doc->addScriptDeclaration("window.addEvent('domready', function() {window.location='".$this->payment_params->return_url."'});"); }

How can I override this in my template html folder?
Thanks

Please Log in or Create an account to join the conversation.

11 years 9 months ago #188937 by nicolas
Hi,

Copy that file to the folder templates/YOUR_TEMPLATE/hikashoppayment/ and the copied file will override the original one.
The following user(s) said Thank You: rfernandes

Please Log in or Create an account to join the conversation.

11 years 9 months ago - 11 years 9 months ago #189386 by rfernandes
And I can copy from
SITE/administrator/components/com_hikashop/extensions/plg_hikashoppayment_collectondelivery/collectondelivery_end.php
to the
FRONTEND_SITE/templates/MY_TEMPLATE/hikashoppayment/collectondelivery_end.php ?
Last edit: 11 years 9 months ago by rfernandes.

Please Log in or Create an account to join the conversation.

11 years 9 months ago #189406 by nicolas

Please Log in or Create an account to join the conversation.

11 years 9 months ago #189514 by rfernandes
But inside the /html/com_hikashop folder?

Please Log in or Create an account to join the conversation.

11 years 9 months ago #189521 by nicolas
No. As I said, you should put it in FRONTEND_SITE/templates/MY_TEMPLATE/hikashoppayment/
I didn't talk about the html/com_hikashop folder.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum