Hikashop Thank you page conversion

  • Posts: 344
  • Thank you received: 3
11 years 1 month ago #153466

Joomla 2.5.18
Hikashop 2.3.0

Question 1
I have a " Google AdWords Conversion Tracking code" which i Need to place on the Hikashop Thank you page.

What file do I need to modify ? and where in the file do I place the code?
This is the code in need to implement:

<!-- Google Code for Kvikki Nettbutikk adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1019021354;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "yXk2CM6GkQYQqpD05QM";
var google_conversion_value = 1.000000;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1019021354/?value=1.000000&amp;label=yXk2CM6GkQYQqpD05QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

Question 2
What is the URL for the Hikashop Thank you page ?
Because I need to place this url into my Paypal payment account under "'Auto Return'

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #153499

Hi,

The view to edit is "checkout / after_end" via the menu Display > Views.
And to reach that view, you don't have to define an url in the return url:

Return url : The url you want your users to be redirected to when they finish their payment on the paypal interface. By default, they will be redirected to the after_end page of the checkout process which will thank them for their order.

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

  • Posts: 2
  • Thank you received: 0
10 years 11 months ago #160442

Hi! I'd like to know if I can simply paste google conversion code after the "after_end.php" code or I have to paste it in a definite "place" inside the existing code? This is my code, where I have to paste it?

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.3.0
 * @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
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #160451

Hi,

You can paste it at any place in the view ;)

The following user(s) said Thank You: Boo

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

  • Posts: 2
  • Thank you received: 0
10 years 11 months ago #160514

thank you Xavier :D

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

  • Posts: 11
  • Thank you received: 0
10 years 10 months ago #164808

Hi I pasted the google conversion code in to the thank you page, but redirecting doesn't work.
Without google conversion code,the page loads correctly.
Can you help me?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #164813

Hello,
Can you show me how did you exactly edit the file of the thank you page ?
Thanks.

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

  • Posts: 11
  • Thank you received: 0
10 years 10 months ago #164957

Hi, this is the edited file:

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.3.0
 * @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
$app = JFactory::getApplication();
$app->redirect('http://www.trongonesport.com/index.php?option=com_content&view=article&id=48:article-alias');
<!-- Google Code for trongonesport Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 969216711;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "SKI4CLnKyhEQx6WUzgM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/969216711/?label=SKI4CLnKyhEQx6WUzgM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
Thanks!

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #164958

Can you replace the code of the file of your thank you page by :

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.3.0
 * @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');
?>
<!-- Google Code for trongonesport Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 969216711;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "SKI4CLnKyhEQx6WUzgM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/969216711/?label=SKI4CLnKyhEQx6WUzgM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<?php
$app = JFactory::getApplication();
$app->redirect('http://www.trongonesport.com/index.php?option=com_content&view=article&id=48:article-alias');

The following user(s) said Thank You: boogie

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

  • Posts: 11
  • Thank you received: 0
10 years 10 months ago #165092

Yeeeaaaaa now it works!!
because it gave that problem?

Thaaanks

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #165093

Hi,

The problem was that you were doing the redirection before the conversion script, so the script was not executed :)

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

Time to create page: 0.144 seconds
Powered by Kunena Forum