| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
No city masks in zone. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
No city masks in zone.
I was trying to migrate tax rates from XC4 to XC5 and discovered that I could not create zones that resolve down to city level. The option was just not there on the Zone Page.
I discovered this in Countries.php PHP Code:
And I wonder why anyone would code this. As it was protected I could not override it with a custom module so I just decided to override the field.city.tpl in our module. with this: PHP Code:
Removing the 'isCityMasksEditEnabled()' IF statement. At least now I can add cities back to zones. Does anyone know a better way to re-activate cities in zones?
__________________
X-Cart: 5.2.6 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: No city masks in zone.
You can override protected methods in your modules.
Private methods are the thing which you can't override (and that's why there is no private methods in XC5).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: No city masks in zone.
Strange - when I overwrote this protected method I got really strange results and my whole Admin interface was whacked.
Here is the excerpt from my php file PHP Code:
__________________
X-Cart: 5.2.6 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: No city masks in zone.
You need to decorate the \XLite\View\Tabs\Countries class instead of \XLite\View\Tabs\ATabs.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: No city masks in zone.
Thanks,
I must have missed that.
__________________
X-Cart: 5.2.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|