osCommerce was one of the first open-source ecommerce shopping cart systems to be available to the public. The system was created by Harald Ponce de Leon in March 2000 and is based in Germany. Over 12,000 companies worldwide are using the osCommerce system. They’ve grown to over 20,671 live sites, 8,700 add-ones, 297,518 members, and 1.6 million forum postings in the past 17 years of being available online. They still dedicate themselves to an open source system to fuel their strong community engagement.
1. Find and open file checkout_success.php in osCommerce source files.
2. Inside the file find this line if ($global['global_product_notifications'] != '1') {... it should be somewhere after \ line.
2. Insert the following code just below that line:
<?php // get order id $sql = "select orders_id from ".TABLE_ORDERS. " where customers_id='".(int)$customer_id. "' order by date_purchased desc limit 1"; $omnistar_orders_query = tep_db_query($sql); $omnistar_orders = tep_db_fetch_array($omnistar_orders_query); $omnistar_order_id = $omnistar_orders['orders_id']; // get total amount of order $sql = "select value from ".TABLE_ORDERS_TOTAL. " where orders_id='".(int)$omnistar_order_id. "' and class='ot_subtotal'"; $omnistar_orders_total_query = tep_db_query($sql); $omnistar_orders_total = tep_db_fetch_array($omnistar_orders_total_query); $omnistar_total_value = $omnistar_orders_total['value']; //get product ids $sql = "select products_id from " .TABLE_ORDERS_PRODUCTS. " where orders_id=".(int)$omnistar_order_id; $omnistar_orders_products_query = tep_db_query($sql); $omnistar_orders_products = ''; while ($row = tep_db_fetch_array($omnistar_orders_products_query)) { $omnistar_orders_products .= $row['products_id'] . ','; } $omnistar_orders_products = substr($omnistar_orders_products, 0, -1); // draw invisible image to register sale if($omnistar_total_value != "" && $omnistar_order_id != "") ?> <script> function hideIF() { document.getElementById('IF').style.display = 'none'; } function getSaleInfo() { document.getElementById('st_code').innerHTML='<iframe src="https://youraccount.ositracker.com/sales/salejs/amount:%%productprice%%/transaction:%%customerreceipt%%" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">'; } window.onload = getSaleInfo; </script> <div id="st_code"></div> <?php }?>
After you save this file you will now be able to track your sales.
In this section, we are going to show you how to customize your referral website. This is the website you will
use to register people to become affiliates.
By default this is how it looks
This could be the link to your website or the homepage of your referral website.
That’s it. You now have a referral website you can use to register people to join your affiliate program.
Thank you following this guide. If you followed it, Omnistar Affiliate software is now integrated with your Shopping Cart. Also, you now have a referral website you can use to register affiliates.
Good luck!
Omnistar Affiliate has been great for my business, it has helped me gain helpful affiliates willing to promote my business. The software is easy to set up and customize and looks a lot better than most other affiliate solutions out there. It was easy enough to integrate into my system and the documentation is very in depth and helpful.
By using omnistar affiliate software, we are able to track and pay affiliates that would have been impossible by hand. With our pricing structure, no two people's service is the same. Omnistar Affiliate lets us make sure our affiliate team is provided the best service possible.
We use the Affiliation program for promoting our CRM. By creating affiliates that promote our product, and by having great sale margins we make sure everyone gets the most of what they do.
OSI Affiliate has all the powerful tools you need to grow with referral marketing. We also support you along the way. You will get the best 1-on-1 customer support and help. Click below to get started for free.
Try It Free