Contributions

Payment Modules (Category Index)
Search: 

Ship 2 Pay v1.0 (MS1)

Ship 2 Pay v1.0

Written by Edwin Bekaert
edwin@ednique.com
Copyright (C) 2002 Edwin Bekaert

Relesed under the GPL license

------------------------------------------

SUMMARY:
------------------------------------------
I needed a way to limit the number of payment options depending on the chosen shipping method.
For example When my client chooses pickup at store he should be able to select cash on pickup or moneyorder and when he chose flat rate shipping he should be able to select cash on delivery or moneyorder.

After installation, go to the admin > modules and click on ship 2 pay
insert your links between shipping and payment.
If you don't specify any link, the code will work as before.
I know that the admin could be easier, but i think this is fairly good as it is my first contribution.

Expand All / Collapse All

Default payment method with ship2pay berthz 11 Oct 2008

Selecting a default payment method in oscommerce is usually done by inserting:

$payment = (!$payment) ? 'cc' : $payment;

just before

for ($i=0, $n=sizeof($selection); $i<$n; $i++) {

in the checkout_payment.php. Where cc stands for the payment method. However when using ship2pay this trick doesnt work (at least not for me). This is how it can be done with the ship2pay contrib:

Log in to your mysql db using phpmyadmin or any other method of reaching your database. Go to the ship2pay table and change the 'payments_allowed' columns of all shipping methods. Make sure that your preffered payment method is the middle one of the allowed payment methods. If you have an equal number of payment methods it is just a matter of testing which one is selected at this moment and changing your preffered payment method to that position.

E.g.
You have 3 payment methods which are inserted in your 'payments_allowed ' as following:

cod.php;cop.php;paypal.php;

Default selected is the cop.php (cash payments). If you want to have paypal as the default payment method change the 'payments_allowed' to the following:

cod.php;paypal.php;cop.php;

That's it. Simple and straightforward.

Attached file contains this text

Ship 2 Pay v1.5 (MS2) berkedam 4 Jan 2007
ship2pay v2.01a - more useful readme,install file marcingebus 31 Jan 2006
Ship 2 Pay v2.01 (fixed main error) - full package marcingebus 31 Jan 2006
New link to forum marcingebus 18 Jan 2006
New features: can connect multi-shipping (multi-oprions) modules to payments - full package marcingebus 18 Jan 2006
Ship 2 Pay v1.5 (MS2) correction / addon Alwin Stehli 5 May 2005
Ship 2 Pay v1.5 (MS2) John aka Berkedam 7 Feb 2005
Ship 2 Pay v1.4 (MS2) Matze Wolf 20 Sep 2004
Ship 2 Pay v1.31a (MS1) Martin Schuchmann 9 Jun 2003
Ship 2 Pay v1.31 (MS1) Edwin Bekaert 29 Mar 2003
Ship 2 Pay v1.3 (MS1) Edwin Bekaert 23 Mar 2003
Ship 2 Pay v1.2.2 (MS1) Edwin Bekaert 15 Mar 2003
Ship 2 Pay v1.2.1 (MS1) Edwin Bekaert 6 Mar 2003
Ship 2 Pay v1.2 (MS1) Edwin Bekaert 5 Mar 2003
Ship 2 Pay v1.1 (MS1) Edwin Bekaert 3 Mar 2003
Ship 2 Pay v1.0 (MS1) Edwin Bekaert 2 Mar 2003

Note: Contributions are used at own risk.