osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

postaffiliatepro code compatability ?

This is a discussion on postaffiliatepro code compatability ? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi I want to use PostAffiliatePro for affiliates. It has an integration guide for oscom ..see below ..but will this ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-18-2007, 01:56 AM
New Member
 
Join Date: Oct 2005
Location: Plymouth UK
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
fatbloke
Default postaffiliatepro code compatability ?

Hi

I want to use PostAffiliatePro for affiliates.

It has an integration guide for oscom ..see below ..but will this work on oscmax ?

Thanks

Roy


1. Find and open file checkout_success.php

2. Inside the file find this line
if ($global['global_product_notifications'] != '1') {
...

3. insert the following code just above that line

//--------------------------------------------------------------------------
// integration code
//--------------------------------------------------------------------------
// get order id
$sql = "select orders_id from ".TABLE_ORDERS.
" where customers_id='".(int)$customer_id.
"' order by date_purchased desc limit 1";
$pap_orders_query = tep_db_query($sql);
$pap_orders = tep_db_fetch_array($pap_orders_query);
$pap_order_id = $pap_orders['orders_id'];

// get total amount of order
$sql = "select value from ".TABLE_ORDERS_TOTAL.
" where orders_id='".(int)$pap_order_id.
"' and class='ot_subtotal'";
$pap_orders_total_query = tep_db_query($sql);
$pap_orders_total = tep_db_fetch_array($pap_orders_total_query);
$pap_total_value = $pap_orders_total['value'];

// draw invisible image to register sale
if($pap_total_value != "" && $pap_order_id != "")
{
$img = '<script id="pap_licencecode" src="http://www.mysite.com/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--

var TotalCost="'.$pap_total_value.'";
var OrderID="'.$pap_order_id.'";
var ProductID="";
papSale();
--></script>';
print $img;
}
//--------------------------------------------------------------------------
// END of integration code
//--------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-18-2007, 06:31 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: postaffiliatepro code compatability ?

Should work fine. Give it a shot and post back any problems.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
need help locating this line of code technoboy osCMax v2 Customization/Mods 3 02-09-2006 01:01 PM
Where to get colour code tyz6970 osCommerce 2.2 Modification Help 4 08-02-2004 08:46 AM
bookmark code modom osCommerce 2.2 Modification Help 3 01-03-2003 08:33 AM


All times are GMT -8. The time now is 10:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax