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? |
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). |
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:
|
Re: No city masks in zone.
You need to decorate the \XLite\View\Tabs\Countries class instead of \XLite\View\Tabs\ATabs.
|
Re: No city masks in zone.
Thanks,
I must have missed that. |
All times are GMT -8. The time now is 06:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.