How to setup HikaShop (Joomla Extension) Affiliate Program

HikaShop is an e-commerce extension for Joomla solution built for simplicity and flexibility that has a wide range of marketing tools as well as powerful statistics displays. HikaShop’s powerful statistics are displayed on your dashboard to manage your eshop. With advanced taxes, zones, languages and currencies management, HikaShop provides worldwide sales and advanced customization for your ecommerce needs.


At your Joomla admin panel, go to Components -> HikaShop -> Display ->Views. Search ‘Checkout’ view in quicker search filter and click ‘after_end’ template to edit. Add following code at the end of this file.

$order_id = $app->getUserState(HIKASHOP_COMPONENT.'.order_id');
$orderClass = hikashop::get('class.order');
$order = $orderClass->get($order_id);
<script async>
    function hideIF() {    
        document.getElementById('IF').style.visibility = '';
    function getSaleInfo() {
        document.getElementById('st_code').style.visibility = 'hidden';
        document.getElementById('st_code').innerHTML='<iframe src="YOUR-OSI-URL/sales/salejs/amount:<?php echo $order->order_full_price - $order->order_discount_price - $order->order_shipping_price; ?>/transaction:<?php echo $order; ?>" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';
   window.onload = getSaleInfo;
<div id="st_code"></div>

Change ‘YOUR-OSI-URL’ with your OSI URL.