473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php/affiliate integration question

max
I don't know much about PHP, but I have a small task I need help with.

Could someone tell me how to modify the line after <!--NEW--> in the
code below (paypal.php) in order to get the order number and the
grand_total passed?
as in:

http://www.yourdomain.com/affiliate/...OrderID=XXXXXX

I think this returns the ordervalue:
<?=$SC[order][grand_total] ?>

And this is for order number:

..$order['number'];

but how do I string it all together?

Thank you in advance!

[CODE paypal.php]
<?
// File modified on 12/09/2004 for v1.6.0 - to support change of
PayPal_Email field name to Payment_Email_Address

$paypal_email =
get_field_val("Payment_Methods","Payment_Email_Add ress","Name =
'PayPal'");
$store_info = get_records("Store_Information",0,"record_number =
\"1\"",0,0);
$item_name = $store_info[0][Company_Name]." order # ".$order['number'];
$url = $store_info[0][url];
$PayPal_Button = get_image("Cart_Images","PayPal Button",0,0,1);

// tell the cart to empty, and thank the customer
$SC['complete_order'] = 1;
?>
<span class="header"><?=$Final_Payment_Image?></span><br><br>
Your order has been placed, and is in our database. <br>
To continue, click the button below to submit payment via PayPal. <br>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?=$paypal_email ?>">
<input type="hidden" name="item_name" value="<?=$item_name?>">
<input type="hidden" name="amount" value="<?=$SC[order][grand_total]
?>">
<input type="hidden" name="shipping" value="">
<!-- WRP:MOD --OLD-->
<input type="hidden" name="return" value="<?=$url ?>">
<!--NEW-->
<input type="hidden" name="return"
value="http://www.whiterabbitpress.us/affiliate/scripts/sale.php?...">
<!--MOD END-->
<input type="hidden" name="cancel_return" value="<?=$url ?>">
<input type="hidden" name="no_note" value="1">
<input type="image" src="<?=$PayPal_Button?>" border="0" name="submit"
alt="Make payments with PayPal - it's fast, free and secure!">
</form>
[code]

Jul 17 '05 #1
1 1454
If those are the correct variables, you should just be able to do this:
<?='Order Number: '.$order['number'].', Grand Total:
'.$SC[order][grand_total];?>

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang Keller | last post by:
Hello, Python seems to be used quite a lot for (the integration of) enterprise applications. Just as an example, there are at least three (projects for the implementation of) ERP systems in...
2
by: JJ | last post by:
Hi, I am writing an affiliate system, where other websites put our banner on their website, and we pay them commission on sales which are made from clickthroughs. We also want to report on...
4
by: Dan | last post by:
Hello all. I am currently working on a project for several Hospitals. The application is written in Java, and the database is either Oracle or MySql, depending on the client. For a while now,...
1
by: Licemjer | last post by:
I have a need integrating SQL2000 & VSS. Is there a simple way or any other way to do it? There are some undocumented procedures in SQL2000 which are to help one to integrate SQL database into VSS....
0
by: Nathanael | last post by:
Hi Guys, You probably have heard of affiliate marketing before but what exactly is affiliate marketing? In this introduction you'll find an explanation of the basics of affiliate marketing. The...
1
by: Joe Black | last post by:
Hi all, I'm studing affiliate marketing networks, and I was wondering if anybody knows how Affiliate Service Providers (ASPs)like cj.com or linkshare.com track successful sales on merchant...
7
by: MuZZy | last post by:
Hi, We are developing a CRM (Customer Relations Management) module for our app and my boss wants to provide integration with PBX (phone systems used by lots of companies) so that if a user gets...
1
by: Larry in Honolulu | last post by:
I'm trying to help a friend who has a website where he sells a single product. He wants to have an affiliate program that would pay a single level commisssion on each sale thru PayPal.. Does...
10
by: Scott M. | last post by:
I've seen many posts and ready articles discussing how changing the membership & roles "provider" in VS .NET is easy, but have yet to see instructions on how to do it. If I already have SQL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.