Polskie wsparcie PrestaShop
Plikownia => Moduły => Wątek zaczęty przez: west w Czerwiec 18, 2014, 05:58:06 pm
-
http://addonspresta.com/en/free-modules/48-ship-to-pay.html (http://addonspresta.com/en/free-modules/48-ship-to-pay.html)
-
Działa.
-
a ma ktoś wersje dla 1.6? ta nie działa.
-
do ver 1.6.0.5 dziala porpawnie powyzej nalezy wprowadzic zmiany w Hook:
I don't have enough time to test it, but it appears that module uses deprecated method in shiptopay/Hook.php. That function Module::getPaypalIgnore() was used to restrict countries for PayPal module. Removing line with call to it should fix error.
So delete line #44 in modules/shiptopay/Hook.php (marked red colour):
if ($frontend) { $sql->leftJoin('module_group', 'mg', 'mg.`id_module` = m.`id_module`'); $sql->where('mg.`id_group` IN (' . implode(', ', $groups) . ')'); $sql->where(Module::getPaypalIgnore()); $sql->groupBy('hm.id_hook, hm.id_module'); }
If you do not want to reinstall module make this change to two files:
- modules/shiptopay/Hook.php
- and override/classes/Hook.php (<- when module is installed Hook.php is copied to this path).
And remember. Before making any changes backup files and db!
ewentulanie nowsza wersa modulu: Payment2Carriers TUTAJ (http://www.prestashop.com/forums/topic/326247-prestacenter-payments2carriers-free-for-ps-15-and-16/) - ale ta ma jeszcze kupe bugow.