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.
Legend: 
Download

Report
If the ship2pay version 2 is not working for you, my version from 7 Feb 2005 will do the job
the download is: ship2pay_1.5.zip
I prepare most usefull file readme.txt & install.txt. Last version 2.01 have fix more details problem (wrong path, etc), not only the main error).
---------------------------------
Przygotowalem pelniejsze opisy plikow readme.txt oraz install.txt. W ostatniej versja 2.01 usunalem takze pare innych drobnych bledow typu bledna sciezka (languages/language), czy nazwa pliku jedykowego ship2pay.php/poland.php. Wiec jest tam wiecej zmian niz tylko te, które wymieniłem poprzednio.
In file was error (w tym pliku był blad uniemozliwiajacy poprawna prace modulu):
/catalog/includes/classes/payment.php
was / bylo :
$my_ship2pay = new ship2pay;
$arrship=explode('_',$shipping['id']);
$ship2pay_mods = $my_ship2pay->get_pay_modules($arrship[0]);
should be / powinno byc :
$my_ship2pay = new ship2pay;
$ship2pay_mods = $my_ship2pay->get_pay_modules($shipping['id']);
And small cleare of instal.txt.
Marcin Gebus
http://forums.oscommerce.com/index.php?showtopic=36112
The new features, can connect multi-shipping module to payments.
The modules exaple are bellow:
------------------------------------------
Modyfikacja umozliwia zastosowanie modulow ship2pay takze dla modulow
przesylek ktore zawieraja wiele metod wysylki (opcje wysylki). Przyklady modulow wysylkowych
z kilkoma opcjami wysylek:
- Zone - a lot of method shipping & zones & COD - v1.0(2.2MS2)
http://www.oscommerce.com/community/contributions,3948
- Additional Shipping Options for Table Module
http://www.oscommerce.com/community/contributions,1446
- Additional Shipping Options for Zone Module
http://www.oscommerce.com/community/contributions,1752
Screenshot available
Great contribution, but found an issue with its implementation. Once the Ship2Pay v1.5 is installed, and you go to Admin to insert a new Ship2Pay association, the association gets created BUT NOT activated. This is because the default code for insertion sets the Status to "0" instead of "1".
Secondly, the code was programmed to allow you to "enable" or "disable" an association, but no buttons were provided to do this. So you had to go into the database to manually set the status to "0" or "1".
I have provided a simple change which makes the contribution more user friendly:
- at insert time, sets the Status to "1" so that the association becomes active
- provided buttons for english and german to be able to "enable" and "disable" associations. This prevents you from having to delete associations to disable them, in case you wish to use them again in the future.
Changes required:
- 4 new buttons to be copied
- Small bit of code change in 1 file
Included:
- all files
- ship2pay_1.5.zip
- size: 30,2 KB (31.018 bytes)
- size on disk: 32,0 KB (32.768 bytes)
- installation instructions in: Nederlands / English / Deutsch.
- to be used on osCommerce 2.2-MS2
There should be no problems, but anyway always BACK-UP first.
Changed the installation for MS2.
...no further questions in the forum ;-)
- German language support added
- small bugfix in SQL file
* corrected a small bug in admin section
Fixed some small bug that occurred with advanced shipping modules...
Upgrade instructions can be found in the install.txt
Remarks:
http://forums.oscommerce.com/viewtopic.php?t=36112
Altough I answered in the forum on a problem that was found in the installation, I forgot to change it in the install.txt
This release only has an updated install.txt
It includes all files of the contribution.
Post your request / problems in the forum:
http://forums.oscommerce.com/viewtopic.php?t=36112
Problem in the sql statement .....
now updated
Added a status field so that you can disable the links.
Also made the admin a bit easier to use... now you get a list of all selectable shipping and payment methods.
For upgrading replace the files and copy the new files. + Change the database as detailed in ship2pay.sql
Found an error in installation script...
Only changed the install.txt
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.