v1.6-v1.7 Prestashop Cities Module

Choupy

Well-known member
Master
Diamond
Elite
Joined
Jun 19, 2019
Messages
1,152
Reaction score
1,450
Points
113
NullCash
264
Hi, Thank you my friend.
 

jmjm

Member
XNullUser
Joined
Jul 23, 2019
Messages
454
Reaction score
2
Points
18
NullCash
0
Super módulo. Muchas gracias
 

aaeq16

Active member
Elite
XNullUser
Joined
Feb 17, 2019
Messages
165
Reaction score
125
Points
43
NullCash
15
anyone knows if this works in 1.7.6.1?
Post automatically merged:

True, it uses a depreciated function:

View attachment 756

Grettings.


You should replace this: (in AdminController.php )

PHP:
protected function l($string, $class = null, $addslashes = false, $htmlentities = true)
    {
        $translated = $this->translator->trans($string);
        if ($translated !== $string) {
            return $translated;
        }

        if ($class === null || $class == 'AdminTab') {
            $class = substr(get_class($this), 0, -10);
        } elseif (strtolower(substr($class, -10)) == 'controller') {
            /* classname has changed, from AdminXXX to AdminXXXController, so we remove 10 characters and we keep same keys */
            $class = substr($class, 0, -10);
        }
        return Translate::getAdminTranslation($string, $class, $addslashes, $htmlentities);
    }


by this

PHP:
protected function l($string, $class = null, $addslashes = false, $htmlentities = true)
    {
        if ( _PS_VERSION_ >= '1.7') {
            return Context::getContext()->getTranslator()->trans($string);
        } else {
            return parent::l($string, $class, $addslashes, $htmlentities);
        }
    }
 
Last edited:

malmsteen

Active member
XNullUser
Joined
Oct 2, 2019
Messages
580
Reaction score
31
Points
28
NullCash
10
i have same for Romania - if anybody needs
Hello DsfStore, i will appreciate if you can share updated module. The one here is 1.0.4, not usable on Prestashop 1.7. Thanks a lot.
 

dsfstore

Member
XNullUser
Joined
Feb 28, 2019
Messages
365
Reaction score
22
Points
18
NullCash
2
Hello DsfStore, i will appreciate if you can share updated module. The one here is 1.0.4, not usable on Prestashop 1.7. Thanks a lot.
is a list from sameday courier which work with onepage checkout module - i'll send it later
 

chewieros

Member
XNullUser
Joined
Jul 24, 2019
Messages
287
Reaction score
4
Points
18
NullCash
3
With this module can you create some cities discount rules ?
 

scryba

Member
XNullUser
Joined
Feb 2, 2020
Messages
104
Reaction score
2
Points
18
NullCash
1
cities.jpg


Demo:https://www.jose-aguilar.com/modulos-prestashop/en/104-25-cities.html

Download
[Hidden content]

thank you, essential
 
Top