2012-05-10 16:02
Hello, I have added PayPal to my Shop 5.1. Please finde below my way (could be done better, but it works). 1. Edit database\lang_xx.php $config['paypal_email'] = "Your_Paypal_email_account"; 2. Edit database\xx.php $lang['PayPal_informing'] = "PayPal e-Mail-Account"; $lang['Order_sent_PayPal_0'] = "Payment"; $lang['Order_sent_PayPal_1'] = "If you want to pay now with"; $lang['Order_sent_PayPal_2'] = "please click on PAYPAL-Button."; 3. Put a paypal_logo.gif in templates\img 4. Edit templates\admin\settings.tpl Put under <!-- orders_email end --> the following code: <tr class="l0" id="paypal_email"> <th> $lang['PayPal_informing'] </th> <td> <input type="text" name="paypal_email" value="$config[paypal_email]" size="40" class="input" /> </td> </tr> 5. Edit templates\default\style.css #paymentPrint .legend{clear:both;padding:20px 0 10px;background:inherit;color:#2e6a97;font-size:1.2em;font-weight:bold;} #paymentPrint dt{clear:left;text-align:center;float:left;display:inline-block;width:100%;margin:0;padding:3px 0;} 6. Edit templates\default\orders_step_3.tpl Put UNDER <div class="message" id="ok"> <h3>$lang[Order_sent]</h3> </div> the following code: <!-- https://www.sandbox.paypal.com/de_DE/html/IntegrationCenter/ic_pps_home.html --> <div id="paymentPrint"> <div class="legend">$lang[Order_sent_PayPal_0]</div> <dl> <dt class="paypalorder1">$lang[Order_sent_PayPal_1] <!-- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" id='formPayment'> --> <form target="paypal" name="_$aData[iOrder]" action="https://www.paypal.com/cgi-bin/webscr"; method="post"> <fieldset> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="$config[paypal_email]"> <input type="hidden" name="item_name" value="Order ID: $aOrder[iOrder]"> <input type="hidden" name="amount" value="$aData[sOrderSummary]"> <input type="hidden" name="currency_code" value="$config[currency_symbol]"> <!-- Daten des Kunden --> <INPUT type="hidden" NAME="first_name" VALUE="$aOrder[sFirstName]"> <INPUT type="hidden" NAME="last_name" VALUE="$aOrder[sLastName]"> <INPUT type="hidden" NAME="address1" VALUE="$aOrder[sStreet]"> <INPUT type="hidden" NAME="zip" VALUE="$aOrder[sZipCode]"> <INPUT type="hidden" NAME="city" VALUE="$aOrder[sCity]"> <INPUT type="hidden" NAME="lc" VALUE="DE"> <INPUT type="hidden" NAME="night_phone_a" VALUE="$aOrder[sPhone]"> <INPUT type="hidden" NAME="email" VALUE="$aOrder[sEmail]"> <!-- Logo --> <input type="image" src="templates/img/paypal_logo.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </fieldset> </form> $lang[Order_sent_PayPal_2]</dt> </dl> </div> I hope that I have not forgotten something. Regards kuzco
» Quick.Cart v5.x 2012-05-11 07:31
kuzco - take some time and create this as plugin. download example plugins from our download and make something similar. of course if you want and have time to do this
2012-05-11 09:44
Ok, will send you a zip-file with all information. I took the template from productsVote - probably you have to change the section: - Requirements - License - Need more functionality or less restricted license? Regards kuzco