Clixgalore code integration

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #113370

Hi,

I am trying to integrate a code from ClixGalore and cannot get it work.

I read a similar Hikashop post here and have tried but for some reason the code does not show when the transaction is made.

The techy at Clixgalore has provided the code and this is how I have added it to the 'after_end' view file:
(

File Attachment:

File Name: ClixGalore-code.txt
File Size:0 KB
)

<?php
/**
* @package HikaShop for Joomla!
* @version 2.1.2
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
$order_id = $app->getUserState('com_hikashop.order_id');
$orderClass = hikashop::get('class.order');
$order = $orderClass->loadFullOrder($order_id);
?>
<img src=" www.clixGalore.com/AdvTransaction.aspx?AdID=9440&SV= <?php echo $order->order_full_price; ?>&OID=<?php echo $order->order_number; ?>" height="0" width="0" border="0">

-
When we test it nothing shows in the html.

And suggestions most welcome.

PS... I had a thought that maybe we could add it to the hikashopanalytics.php file (thoughts on that most welscome as well.

Regards and thanks


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Attachments:

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 3 months ago #113424

Hi,

The after_end view file will only be displayed at the end of the checkout if:
- the payment method uses redirects (so it won't work for authorize.net in AIM mode for example.
- the payment method doesn't have a return URL configured.

So you should first make sure that this file is actually used.

Also, make sure that you're editing it for the correct template and not another one.

You can potentially add it to hikashopanalytics, but you will have the same issue.

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

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #113427

Hi Nicolas, thanks for your reply.

Sorry, I should have mentioned, I am using Eway and at the end of the transaction, the thankyou page comes up.

I will check if it is the right template (didnt think of that)

Will check back tommorrow.

Thanks again.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #113495

Hi again Nicholas,

ok, I have had another look and the after_end file is the correct one for the formula.

But how do I know if it is the correct one for the payment gatway (Eway)?

Attached is the thank page after payment (not sure if that tells us anything.)


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Attachments:
Last edit: 11 years 3 months ago by sambob.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #113528

Hi,

For eway, you have to edit the file "eway_thanks.php" in the eway plugin via ftp.
It don't use the standard HikaShop view.

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

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #113551

Hi Xavier,

thanks for that (I was wondering if it used a different thank you view)

Thanks... lets see if that solves the issue.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #113684

Just got report back and that does not seem to have done it.

Attached is the eway_thanks page incase I have added the code incorrectly.

Any thoughts why it does not work?

File Attachment:

File Name: eway_thanks.txt
File Size:1 KB


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #113882

Hi,

Thanks to try with that code:

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.1.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2013 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_eway_thankyou" id="hikashop_eway_thankyou">
	<span id="hikashop_eway_thankyou_message" class="hikashop_eway_thankyou_message">
		<?php echo JText::_('THANK_YOU_FOR_PURCHASE');
		if(!empty($return_url)){
			echo '<br/><a href="'.$return_url.'">'.JText::_('GO_BACK_TO_SHOP').'</a>';
		}?>
	</span>
</div>
<?php
if(!empty($return_url)){
	$doc =& JFactory::getDocument();
	$doc->addScriptDeclaration("do_nothing( function() {window.location='".$return_url."'});");
}
<?php
$app =& JFactory::getApplication();
$order_id = $app->getUserState('com_hikashop.order_id'); 
$orderClass = hikashop::get('class.order');
$order = $orderClass->loadFullOrder($order_id);

echo '<img src="https://www.clixGalore.com/AdvTransaction.aspx?AdID=9440&SV='.$order->order_full_price.'&OID='.$order->order_number.'" height="0" width="0" border="0">';
?>

The following user(s) said Thank You: sambob

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

  • Posts: 260
  • Thank you received: 25
11 years 3 months ago #114245

Thanks Xavier, that did the trick.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

Time to create page: 0.085 seconds
Powered by Kunena Forum