[Skip to main content](#vessel-content)

#   tracking code to heureka page

##

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

7 years 19 hours ago [\#313333](#313333) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#313333 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")* was created by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.2.7
-- Browser(s) name and version -- : chrome

Hello,

can You please help me with implementing tracking code to hikashop?
As I find out, it should go in view end.php
code should look like:

&lt;?php
require_once __DIR__ . '/../vendor/autoload.php';
try {
// Use your own API key here. And keep it secret!
$apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$options = [
// Use \Heureka\ShopCertification::HEUREKA_SK if your e-shop is on heureka.sk
'service' =&gt; \Heureka\ShopCertification::HEUREKA_SK,
];
$shopCertification = new \Heureka\ShopCertification($apiKey, $options);
// Set customer email - it is MANDATORY.
$shopCertification-&gt;setEmail('jan.novak@example.com');
// Set order ID - it helps you track your customers' orders in Heureka shop administration.
$shopCertification-&gt;setOrderId(1597884);

// And finally send the order to our service.
$shopCertification-&gt;logOrder();
// Everything went well - we are done here.

I need to import in this code user mail who created the order and also order number

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

7 years 12 hours ago [\#313338](#313338) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#313338 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

The order id is available in $this-&gt;order-&gt;order_id and the email is available in $this-&gt;order-&gt;customer-&gt;user_email
in the view file checkout / end.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

7 years 9 hours ago [\#313369](#313369) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#313369 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Thank You for Your replay
I implemented it like this:

&lt;?php
require_once __DIR__ . '/../vendor/autoload.php';
try {
// Use your own API key here. And keep it secret!
$apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$options = [
// Use \Heureka\ShopCertification::HEUREKA_SK if your e-shop is on heureka.sk
'service' =&gt; \Heureka\ShopCertification::HEUREKA_SK,
];
$shopCertification = new \Heureka\ShopCertification($apiKey, $options);
// Set customer email - it is MANDATORY.
$shopCertification-&gt;setEmail('$this-&gt;order-&gt;customer-&gt;user_email');
// Set order ID - it helps you track your customers' orders in Heureka shop administration.
$shopCertification-&gt;setOrderId($this-&gt;order-&gt;order_id);

// And finally send the order to our service.
$shopCertification-&gt;logOrder();
// Everything went well - we are done here.

but get this error:
Warning: require_once(/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

Fatal error: require_once(): Failed opening required '/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/local/php72/lib/php') in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

I am not programmer and dont know what is wrong

I would be gratefull if You can help me

thank You

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 11 months ago [\#313377](#313377) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#313377 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

That error comes from your template. I would recommend to contact your template provider about it.
What I can propose to fix it temporarily is to rename that error.php file from your template via FTP and copy the error.php file from the protostar template there. That should hopefully avoid the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#315939](#315939) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315939 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Can You please help to transom next code from virtuemart to work with hikashop?

&lt;?php
$orderModel = VmModel::getModel('orders');
$order = $orderModel-&gt;getMyOrderDetails($this-&gt;cart-&gt;virtuemart_order_id);
$query = '[ www.heureka.sk/direct/dotaznik/objednavka.php?id=](http://www.heureka.sk/direct/dotaznik/objednavka.php?id=)';
$query.= 'HEUREKA ID';
$query.= '&amp;email='.$order-&gt;email;
foreach ($order as $item) {
$query.= '&amp;itemId[]='.$item-&gt;order_item_sku;
}
$query.= '&amp;orderid='.$order-&gt;order_number;

$parsed = parse_url($query);
$fp = fsockopen($parsed, 80, $errno, $errstr, 5);
if ($fp) {
$out = "GET " . $parsed . "?" . $parsed . " HTTP/1.1\r\n" .
"Host: " . $parsed . "\r\n" .
"Connection: Close\r\n\r\n";
fputs($fp, $out);
while (!feof($fp)) {
$return .= fgets($fp, 128);
}
fclose($fp);
}
?&gt;

and should I put it in end.php view?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#315957](#315957) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315957 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

Here you go: Code:

&lt;?php $query = 'http://www.heureka.sk/direct/dotaznik/objednavka.php?id='; $query.= 'HEUREKA ID'; $query.= '&amp;email='.$this-&gt;order-&gt;customer-&gt;user_email; foreach ($this-&gt;order-&gt;products as $item) { $query.= '&amp;itemId[]='.$item-&gt;order_product_code; } $query.= '&amp;orderid='.$this-&gt;order-&gt;order_number; $parsed = parse_url($query); $fp = fsockopen($parsed['host'], 80, $errno, $errstr, 5); if ($fp) { $out = "GET " . $parsed['path'] . "?" . $parsed['query'] . " HTTP/1.1\r\n" . "Host: " . $parsed['host'] . "\r\n" . "Connection: Close\r\n\r\n"; fputs($fp, $out); while (!feof($fp)) { $return .= fgets($fp, 128); } fclose($fp); } ?&gt;

and yes, you want to put it either in the checkout/end.php view file or the checkout/after_end.php view file. I would recommend to start with the end.php file and see if that works for you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#315959](#315959) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315959 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

I implemented it like this:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 4.2.2
* @author hikashop.com
* @copyright (C) 2010-2019 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(empty($this-&gt;html)) {
echo JText::_('THANK_YOU_FOR_PURCHASE');
if(!empty($this-&gt;url))
echo '&lt;br/&gt;'.JText::sprintf('YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE', $this-&gt;url);
} else {
echo $this-&gt;html;
}
$this-&gt;nextButton = false;

&lt;?php
$query = '[ www.heureka.sk/direct/dotaznik/objednavka.php?id=](http://www.heureka.sk/direct/dotaznik/objednavka.php?id=)';
$query.= 'HEUREKA ID';
$query.= '&amp;email='.$this-&gt;order-&gt;customer-&gt;user_email;
foreach ($this-&gt;order-&gt;products as $item) {
$query.= '&amp;itemId[]='.$item-&gt;order_product_code;
}
$query.= '&amp;orderid='.$this-&gt;order-&gt;order_number;

$parsed = parse_url($query);
$fp = fsockopen($parsed, 80, $errno, $errstr, 5);
if ($fp) {
$out = "GET " . $parsed . "?" . $parsed . " HTTP/1.1\r\n" .
"Host: " . $parsed . "\r\n" .
"Connection: Close\r\n\r\n";
fputs($fp, $out);
while (!feof($fp)) {
$return .= fgets($fp, 128);
}
fclose($fp);
}
?&gt;

and I get this error:

Warning: require_once(/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

Fatal error: require_once(): Failed opening required '/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/local/php72/lib/php') in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

I copied error.php from other template but it didnt help

any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#315961](#315961) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315961 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

As the view file doesn't end with ?&gt; you need to either add it before you add your code, or remove the first &lt;?php of your code, or add your code at the beginning.
[ www.php.net/manual/en/language.basic-syntax.phptags.php](https://www.php.net/manual/en/language.basic-syntax.phptags.php)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#315974](#315974) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315974 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

OK, thanks

i got it, but now I get new error:
Warning: fsockopen() expects parameter 1 to be string, array given in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 30

I do not understand coding wery well

All I need to do is to send info about new order to heureka.sk
And heureka.sk sends to my customer demand to rate(vote) the order he made

My eshop needs to call this address after order is finished:
[ www.heureka.sk/direct/dotaznik/objednavk...mple@email.sk&amp;itemId](https://www.heureka.sk/direct/dotaznik/objednavka.php?id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&email=example@email.sk&itemId)[]=206210&amp;orderid=123456

I would be very thankfull if You can help me

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 8 months ago [\#315990](#315990) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#315990 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hello,

Your issue is coming from both of these lines : Code:

$parsed = parse_url($query); $fp = fsockopen($parsed, 80, $errno, $errstr, 5);

The problem is that $parsed is an array, so you'll have to see what's in that variable and convert it to a string if you want the fsockopen to properly work.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#316007](#316007) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316007 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Is there any other way to call this address?
www.heureka.sk/direct/dotaznik/objednavk...mple@email.sk&amp;itemId []=206210&amp;orderid=123456

Itemid is not mandatory

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#316023](#316023) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316023 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

now I changed the code:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 4.2.2
* @author hikashop.com
* @copyright (C) 2010-2019 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(empty($this-&gt;html)) {
echo JText::_('THANK_YOU_FOR_PURCHASE');
if(!empty($this-&gt;url))
echo '&lt;br/&gt;'.JText::sprintf('YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE', $this-&gt;url);
} else {
echo $this-&gt;html;
}
$this-&gt;nextButton = false;

$query = '[ www.heureka.sk/direct/dotaznik/objednavka.php?id=](http://www.heureka.sk/direct/dotaznik/objednavka.php?id=)';
$query.= 'HEUREKA ID';
$query.= '&amp;email='.$this-&gt;order-&gt;customer-&gt;user_email;
$query.= '&amp;orderid='.$this-&gt;order-&gt;order_number;

$fp = fsockopen($query, 80, $errno, $errstr, 5);
if ($fp) {
$out = "GET " . $query .
"Connection: Close\r\n\r\n";
fputs($fp, $out);
while (!feof($fp)) {
$return .= fgets($fp, 128);
}
fclose($fp);
}
?&gt;

but get this error:

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 30

Warning: fsockopen(): unable to connect to [ www.heureka.sk/direct/dotaznik/objednavka.php?id=HEUREKA](http://www.heureka.sk/direct/dotaznik/objednavka.php?id=HEUREKA) ID&amp;email=info@example.sk&amp;orderid=920020581:80 (php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known) in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 30

what can be wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#316029](#316029) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316029 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

On the line: Code:

$query = 'www.heureka.sk/direct/dotaznik/objednavka.php?id=';

You're missing the https://
So it should be: Code:

$query = 'https://www.heureka.sk/direct/dotaznik/objednavka.php?id=';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#316035](#316035) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316035 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

OK but now I get this error:

Warning: fsockopen(): unable to connect to https://www.heureka.sk/direct/dotaznik/objednavka.php?id=ba878678f84b0dde02b1cea4c02d625f&amp;email=info@potravinyslovenska.sk&amp;orderid=920020597:80 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 26

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#316038](#316038) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316038 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

Looking online, it shoudl be ssl:// instead of https://
[ stackoverflow.com/questions/378574/unabl...cket-transport-https](https://stackoverflow.com/questions/378574/unable-to-find-the-socket-transport-https)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#316054](#316054) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316054 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,
with ssl:// I have the same error like mentioned above

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 30

Warning: fsockopen(): unable to connect to [ www.heureka.sk/direct/dotaznik/objednavka.php?id=HEUREKA](http://www.heureka.sk/direct/dotaznik/objednavka.php?id=HEUREKA) ID&amp;email=info@example.sk&amp;orderid=920020581:80 (php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known) in /www/e/n/u123817/public_html/templates/sj_thecool_free/html/com_hikashop/checkout/end.php on line 30

I am stacked

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#316069](#316069) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316069 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hi,

It seems that your server is not able to open connections to the outside.
Probably a hosting issue.
In that case, remove the whole: Code:

$fp = fsockopen($query, 80, $errno, $errstr, 5); if ($fp) { $out = "GET " . $query . "Connection: Close\r\n\r\n"; fputs($fp, $out); while (!feof($fp)) { $return .= fgets($fp, 128); } fclose($fp); } ?&gt;

and add instead: Code:

?&gt;&lt;img src="&lt;?php echo $query; ?&gt;" /&gt;

and use https:// in the query, not ssl://
That way, it will be the browser of the customer which will call the URL and it should work fine.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

6 years 8 months ago [\#316071](#316071) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316071 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hello,

thanks for Your response
now I get this error:
Warning: require_once(/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

Fatal error: require_once(): Failed opening required '/www/e/n/u123817/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/local/php72/lib/php') in /www/e/n/u123817/public_html/templates/sj_thecool_free/error.php on line 44

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 8 months ago [\#316072](#316072) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#316072 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hello,

As it's said on the error message, you should check which file the "require_once" is trying to include through the file "/www/e/n/u123817/public_html/templates/sj_thecool_free/error.php". And see if that file exists.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 10 months ago [\#328215](#328215) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[tracking code to heureka page](/forum/30-integrations/898717-tracking-code-to-heureka-page#328215 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : chrome  Hello,  can You please help me with implementing tracking code to hikashop? As I find out, it should go in view end.php code should look like:   &#92;Heureka&#92;ShopCertification::HEUREKA&#95;SK, &#93;; $shopCertification = new &#92;Heureka&#92;ShopCertification($apiKey, $options); // Set customer email - it is MANDATORY.  // Set order ID - it helps you track your customers' orders in Heureka shop administration. $shopCertification-&gt;setOrderId(1597884);  // And finally send the order to our service. $shopCertification-&gt;logOrder(); // Everything went well - we are done here.  I need to import in this code user mail who created the order and also order number")*

Hello,

after a while I returned to this issue and solved it

in end.php code should look like:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 4.2.2
* @author hikashop.com
* @copyright (C) 2010-2019 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(empty($this-&gt;html)) {
echo JText::_('THANK_YOU_FOR_PURCHASE');
if(!empty($this-&gt;url))
echo '&lt;br/&gt;'.JText::sprintf('YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE', $this-&gt;url);
} else {
echo $this-&gt;html;
}
$this-&gt;nextButton = false;

$query = '[ www.heureka.sk/direct/dotaznik/objednavka.php?id=](https://www.heureka.sk/direct/dotaznik/objednavka.php?id=)';
$query.= 'HEUREKA ID';
$query.= '&amp;email='.$this-&gt;order-&gt;customer-&gt;user_email;
$query.= '&amp;orderid='.$this-&gt;order-&gt;order_number;

?&gt;&lt;img src="&lt;?php echo $query; ?&gt;" /&gt;

now at the end I get some small icon of picture because of the last line in code
can You tell me how will I call product ID which was bought? ( '&amp;orderid='.$this-&gt;order-&gt;order_number)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTg3MTctdHJhY2tpbmctY29kZS10by1oZXVyZWthLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.122 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
