Pages:

Adding PayPal the simple way to QC v01.0

Ste707

No avatar

2006-01-14 19:53

Follow the two steps below to add PayPal to the shop checkout. This is for QC v1.0 only.

STEP ONE
edit the file >>>>actions_client/orders.php

Where you find the following code mentions, add the section between the // ----- PayPal code to the page. This should be around line 58

if( checkOrderFields( $_POST ) === true && checkOrderProducts( $iOrder ) === true ){
saveOrder( $iOrder, $_POST );
//--------- Start PayPal Code
$aData = throwOrder( $iOrder );
listBasket( $iOrder);
$aData['fSummary'] = sprintf( '%01.2f', $aData['fCourierPrice'] + $aList['fSummary'] );
if( $aData['fCourierPrice'] > 0 ){
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PAYPAL' );
}
else
//-------- End PayPal Code
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_SAVED' );


STEP TWO
Edit the file >>>>templates/messages.tpl

And add all the following code to the file at the top.

<!-- BEGIN ORDER_PAYPAL -->
<div id="message">
<div id="ok">
<form target="paypal" name="_$iOrder" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="$config[email]">
<input type="hidden" name="item_name" value="Order ID $iOrder">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="amount" value="$aList[fSummary]">
<input type="hidden" name="shipping" value="$aData[fCourierPrice]">
<input type="hidden" name="no_note" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but6.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form><br />
$lang[Order_finished]<br />
<a href="javascript:windowNew( '?p=ordersWindowPrint&amp;iOrder=$iOrder' );">&raquo; $lang[Order_print]</a><br />
<a href="?p=">$lang[Homepage]</a>
</div>
</div>
<!-- END ORDER_PAYPAL -->

Make sure you change the currency_code to your requirements.

Thanks it, it works for me so it should for you. Cheers to Stormy again.

pawe

No avatar

2006-01-14 22:06

Works great. Your the best Ste707.. :)

plattyd

No avatar

2006-01-15 15:25

I cant see where in the actions_client/orders.php to insert your code ?
I cant find no reference to this
Where you find the following code mentions, add the section between the // ----- PayPal code to the page. This should be around line 58


Cheers

Platty

eremcee

Avatar: eremcee

2006-01-16 10:59

Works

Thank you ;o)

pawe

No avatar

2006-01-16 11:05

plattyd:
Past the PayPal code after this sentence.
saveOrder( $iOrder, $_POST ); on line about 59.

diseous

No avatar

2006-01-16 20:07

You are a GOD! Thankyou

ipodstock

No avatar

2006-01-26 18:42

Will this parsed plugin work for v1.1?

Martin

No avatar

2006-01-27 00:48

worked a treat for me!

JohnnHmd

No avatar

2006-01-29 15:44

Doesn't seem to work - I can't actually see anything even mentioning PayPal!

I'm using v1.0.

John

ipodstock

No avatar

2006-01-29 17:28

Yes, it does work... for help you should try the Paypal website to "Integrate Paypal into a Custom Shopping Cart"

Help

No avatar

2006-02-23 22:28

I entered all the code but it does not do anything different??
It still says order pending and it does not take them to paypal?
HeLP

Robin

thomas.slowhand

No avatar

2006-02-23 22:47

Is this Paypal solution ONLY for Q.C v1.0 or for => v1.0? ( i. e. I'm using 1.2)??

Thomas

sherlock

No avatar

2006-02-24 01:04

the paypal solution should work.

robinsnest

No avatar

2006-02-24 02:56

I am using the newest version and I must be doing something wrong it is not showing up in the check out at all.

Robin

Si

No avatar

2006-04-12 01:05

works well

Cryptix

Avatar: Cryptix

2006-05-19 20:59

I'm using QC 1.2, i have the paypal addon functioning correctly but im yet to get nochex working. Could anyone please offer me some help as to how to get nochex working with 1.2?

Any help would be very much appreciated. Thank you.

Cryptix

Avatar: Cryptix

2006-05-19 21:00

Sorry wrong topic i am an idiot i know.

~apple

No avatar

2006-06-23 01:29

Anybody knows if it works for version 1.2?

apple

pepe

Avatar: pepe

2006-06-23 10:30

Yes works with 1.2 and 1.3 !

~apple

No avatar

2006-06-23 16:51

Thanks. I will try and post the result. Cheers :)

apple

Pages:
Back to top
about us | contact