Paypal integration in 1.4

ozo

No avatar

2007-11-07 20:36

Dear Friens, Can somebody please advis me about the integration of paypal in 1.3-1.4? I used the code I got from a Dutch forum of QuickCard but nobody seems to be home for weeks. I think this is the code originated from Claps.
There was no mentioning about the lang file but do I have to edit the English an Dutch lang file? I already have the code online but sometimes the paypal button disappears and after ordering again it's there again/ Somebody had this too? What can I do about it? I got the account details from my shopowner but what do I have to configure at paypal? This is what I did up till now can somebody tell me what I am overlooking?
========================================================
Two files modyfied:

/templates/messages.tpl
/actions_client/orders.php

1. Zet in: /templates/messages.tpl In the top of the page:

<!-- 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="EUR">
<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="Betaal met Paypal, het is snel, gratis en betrouwbaar!!!">
</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 -->

<!-- BEGIN DONE -->
<!-- END DONE -->

This above: <!-- BEGIN DONE -->

Everything between: <!-- BEGIN DONE --> en <!-- END DONE --> erased
Save: /templates/messages.tpl

2. Zet in: /actions_client/orders.php Ergens in de buurt van line 67. Everything between:

//--------- Start PayPal Code and //-------- End PayPal Code

moet ingevoegd worden tussen:

saveOrder( $iOrder, $_POST );

en

$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_SAVED' );

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' );
}
else

!!! Save: /actions_client/orders.php

Thanks for helping and advising me!
Jeroen

» Quick.Cart v1.x

Jeroen Ozo

renu

No avatar

2007-11-18 20:15

I´m also ready with this thing. i´ll get back to you my friend.

renu

No avatar

2007-11-18 20:16

Sorry. I mean ALLMOST!!

renu

No avatar

2007-12-09 14:19

Hi again. I did the implementation, bu no one wants to use this function, as it´s way too expensive to use PayPal...
You can give me your mail address an I will mail you those files.
BTW: Don´t rely 100% on my skills but it is OK functional :=)

Back to top
about us | contact