PDA

View Full Version : Sales code


dalem
28th October 2004, 05:39 AM
Hey there I just istalled POST Affiliate Pro I can not for the life of me get the General Sale Registration Code to work


It worked flawlessly twice but now all it does is block the cookie is there a better way to do this??


this is the way i inserted int my order script any help would be much aprec

$affiliate1 = $adata['ord_unit_cost'];
$affiliate2 = $adata['ord_id'];

# Build Title String, Content String, and Footer Menu String for normal order
$_tstr .= $_LANG['_ORDERS']['ORD_P05_TITLE_NORMAL'];

$_cstr .= '<center>'.$_nl;
$_cstr .= '<table cellpadding="5" width="90%">'.$_nl;
$_cstr .= '<tr>'.$_td_str_center.$_nl;
$_cstr .= $_LANG['_ORDERS']['ORD_P05_TEXT01'].'
http://affiliate.mysite.com/scripts/sale.php?TotalCost='.$affiliate1.'&OrderID='.$affiliate2''.$_nl;

$_cstr .= $_order_button.'
'.$_nl;
$_cstr .= '</td></tr>'.$_nl;
$_cstr .= '<tr>'.$_td_str_right.$_nl;
$_cstr .= ''.$_LANG['_ORDERS']['ORD_P05_LI_HDR'].'
'.$_nl;
$_cstr .= '<ul>'.$_nl;
$_cstr .= ' '.$_LANG['_ORDERS']['ORD_P05_LI_01'].'

'.$_nl;
$_cstr .= ' '.$_LANG['_ORDERS']['ORD_P05_LI_02'].'

'.$_nl;
$_cstr .= ' '.$_LANG['_ORDERS']['ORD_P05_LI_03'].'

'.$_nl;
$_cstr .= ' '.$_LANG['_ORDERS']['ORD_P05_LI_04'].'

'.$_nl;

$_cstr .= ' '.$_LANG['_ORDERS']['ORD_P05_LI_05'].'

'.$_nl;
$_cstr .= '[/list]

'.$_nl;
} ELSE {

mark
29th October 2004, 11:42 AM
Hello,

you should find out what's wrong.
There is Debugging feature in PostAffiliate Pro. You can turn it on in Settings in Merchant control panel.
Then try to simulate click on banner, and making a sale.
The system will log all actions to the History log and you can see what's wrong.

It could be whatever, like that the sale.php image is not displayed on the confirmation page, or there can be some cookie issue.
It seems you use different subdomains for affiliate system and your shop.
Maybe this can create problem.

Another cookie related problem could be too high security settings of your browser, it could block third-party cookies..

So try the debugging and contact me if you'll not find out what's wrong..

regards,

mark