Whow to edit "THANK_YOU_FOR_PURCHASE" message

  • Posts: 57
  • Thank you received: 4
10 years 4 months ago #188930

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:

<?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
echo $this->html;
to get the code like I wanted.

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

  • Posts: 57
  • Thank you received: 4
10 years 4 months ago #188932

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:

<?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("do_nothing( 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.

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 4 months ago #188937

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.

  • Posts: 57
  • Thank you received: 4
10 years 4 months ago #189386

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: 10 years 4 months ago by rfernandes.

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 4 months ago #189406

Hi,

Sure

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

  • Posts: 57
  • Thank you received: 4
10 years 4 months ago #189514

But inside the /html/com_hikashop folder?

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 4 months ago #189521

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.065 seconds
Powered by Kunena Forum
loading