Bass ha scritto:
Strano, io l'avevo installata e funzionava perfettamente, dopo l'ho eliminata perche' non mi serviva piu'. Se non ricordo male si configurava nei moduli, ogni opzione di spedizione aveva un menu a tendina nel quale selezionare i tipi di pagamento accettati
ehm..ho seguito le istruzioni, ma niente nei moduli pagamenti e spedizioni non c'è niente di nuovo.
Ho fatto così:
INSTALLATION:
------------------------------------------
Unzip to a folder of your choice.
For upgrading replace the files and copy the new files.
Change the database as detailed in ship2pay.sql
Copy the files:
admin/ship2pay.php
admin/includes/classes/shipping.php
admin/includes/classes/payment.php
admin/includes/languages/english/ship2pay.php
admin/includes/languages/german/ship2pay.php
catalog/includes/classes/ship2pay.php
run:
ship2pay.sql
open the file catalog/database_tables.php and add:
define('TABLE_SHIP2PAY','ship2pay');
open the file catalog/includes/classes/payment.php
Find the following line:
global $payment, $language, $PHP_SELF;
replace that single line with:
global $payment, $language, $PHP_SELF, $shipping;
Find the following line: (line nr 21)
$this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
replace that single line with:
require(DIR_WS_CLASSES . 'ship2pay.php');
$my_ship2pay = new ship2pay;
$arrship=explode('_',$shipping['id']);
$ship2pay_mods = $my_ship2pay->get_pay_modules($arrship[0]);
if (tep_not_null($ship2pay_mods)){
$this->modules = explode(';', $ship2pay_mods);
}else{
$this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
}
open the file admin/includes/boxes/modules.php
add the following at the end:
'<a href="' . tep_href_link(FILENAME_SHIP2PAY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIP2PAY . '</a>'
open the file admin/includes/database_tables.php and add:
define('TABLE_SHIP2PAY','ship2pay');
open the file admin/includes/filenames.php and add:
define('FILENAME_SHIP2PAY', 'ship2pay.php');
open the file admin/includes/languages/english.php
add the following lines
define('BOX_MODULES_SHIP2PAY', 'Ship 2 Pay');
define('TEXT_DISPLAY_NUMBER_OF_PAYMENTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> ship 2 pay)');
or for german language:
open the file admin/includes/languages/german.php
add the following lines
define('BOX_MODULES_SHIP2PAY', 'Ship 2 Pay');
define('TEXT_DISPLAY_NUMBER_OF_PAYMENTS', 'Angezeigt werden <b>%d</b> bis <b>%d</b> (von insgesamt <b>%d</b> Ship 2 Pay)');
ho fatto male??
grazie
tooshy