Skip to main content

Hikashop Thank you page conversion

12 years 6 months ago #153466 by river
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:
Code:
<!-- 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.

12 years 6 months ago #153499 by Xavier
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.

12 years 5 months ago #160442 by Boo
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?
Code:
<?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.

12 years 5 months ago #160451 by Xavier
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.

12 years 5 months ago #160514 by Boo
thank you Xavier :D

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

12 years 3 months ago #164808 by boogie
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.

12 years 3 months ago #164813 by Mohamed Thelji
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.

12 years 3 months ago #164957 by boogie
Hi, this is the edited file:
Code:
<?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.

12 years 3 months ago #164958 by Mohamed Thelji
Can you replace the code of the file of your thank you page by :
Code:
<?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.

12 years 3 months ago #165092 by boogie
Yeeeaaaaa now it works!!
because it gave that problem?

Thaaanks

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

12 years 3 months ago #165093 by Xavier
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.081 seconds
Powered by Kunena Forum