Limit the number of payment options depending on the chosen shipping method. For example When a customer chooses pickup at store he should be able to select cash on pickup or money-order and when he chooses flat rate shipping he should be able to select cash on delivery or moneyorder.
$this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
/* BOF Ship2pay 1 of 2 */
require (DIR_WS_CLASSES . 'ship2pay.php');
$my_ship2pay = new ship2pay;
$arrship = explode('_', $_SESSION['shipping']['id']);
$ship2pay_mods = $my_ship2pay->get_pay_modules($arrship[0]);
if (zen_not_null($ship2pay_mods)) {
$this->modules = explode(';', $ship2pay_mods);
} else {
/* EOF ship2pay 1 of 2 */
$this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
/* BOF Ship2pay 2 of 2 */
}
/* EOF ship2pay 2 of 2 */
Use the list of files in the installation tab for comparison with your current installation, to see if any files have been added, or removed formthe package.
The easiest way is to use a file comparison program like Beyond Compare, or Winmerge.
Version 1.8.0 | Version 1.9.0 | Status | |
---|---|---|---|
1 New files | 1 New files | ||
├ includes | ├ includes | ||
│├ classes | │├ classes | ||
││└ship2pay.php | ![]() |
││└ship2pay.php | Updated |
│└ extra_datafiles | │└ extra_datafiles | ||
│ └ship2pay_database_names.php | ![]() |
│ └ship2pay_database_names.php | |
└ YOUR_ADMIN | └ YOUR_ADMIN | ||
├ includes | ├ includes | ||
││ | │├ auto_loaders | ||
││ | ││└config.ship2pay.php | New | |
│├ classes | │├ classes | ||
││├ship2pay_payment.php | ![]() |
││├ship2pay_payment.php | Updated |
││└ship2pay_shipping.php | ![]() |
││└ship2pay_shipping.php | Updated |
│├ extra_datafiles | │├ extra_datafiles | ||
││├ship2pay_database_names.php | ![]() |
││├ship2pay_database_names.php | |
││└ship2pay_filenames.php | ![]() |
││└ship2pay_filenames.php | |
││ | │├ init_includes | ||
││ | ││└init_ship2pay.php | New | |
││ | │├ installers | ||
││ | ││└ ship2pay | ||
││ | ││ ├1_8_0.php | New | |
││ | ││ └1_9_0.php | New | |
│└ languages | │└ languages | ||
│ ├ dutch | │ ├ dutch | ||
│ │├ extra_definitions | │ │├ extra_definitions | ||
│ ││└ship2pay.php | ![]() |
│ ││└ship2pay.php | |
│ │└ship2pay.php | ![]() |
│ │└ship2pay.php | Updated |
│ └ english | │ └ english | ||
│ ├ extra_definitions | │ ├ extra_definitions | ||
│ │└ship2pay.php | ![]() |
│ │└ship2pay.php | |
│ └ship2pay.php | ![]() |
│ └ship2pay.php | Updated |
└ship2pay.php | ![]() |
└ship2pay.php | Updated |
2 Core file overrides | 2 Core file overrides | ||
└ includes | └ includes | ||
└ classes | └ classes | ||
└payment.php | ![]() |
└payment.php | Updated |
If you don't specify any link, the code will work as before.
Version: | 1.9 | |
Release Date: | 5-11-2019 | |
Zen Cart Versions: | 1.5.6 | |
Author: | Zen4All | |
Changes: |
|
|
|
||
Version: | 1.8 | |
Release Date: | 13-07-2017 | |
Zen Cart Versions: | tested on: Zen Cart 1.5.5, but should work on all 1.5.x distributions. | |
Author: | Zen4All | |
Changes: |
|
|
|
||
Version: | 1.7 | |
Release Date: | 24-06-2014 | |
Zen Cart Versions: | tested on: Zen Cart 1.5.x | |
Author: | Zen4All | |
Changes: |
|
|
|
||
Version: | 1.6 | |
Release Date: | 02-05-2014 | |
Zen Cart Versions: | tested on: Zen Cart 1.5.x | |
Author: | Zen4All | |
Changes: |
|
|
|
||
Version: | 1.5.2 | |
Release Date: | 1-11-2012 | |
Zen Cart Versions: | tested on: Zen Cart Version 1.3.9h | |
Author: | fdeboer | |
Changes: |
|
|
|
||
Version: | 1.5.1 | |
Release Date: | 19-07-2008 | |
Zen Cart Versions: | 1.3.8 | |
Author: | wladimirec | |
Changes: |
|
|
|
||
Version: | 1.5 | |
Release Date: | 27-06-2008 | |
Zen Cart Versions: | 1.3.8 | |
Author: | wladimirec | |
Changes: | based on : osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 Edwin Bekaert (edwin@ednique.com)
|