View Issue Details

IDProjectCategoryView StatusLast Update
0002539OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2012-12-07 15:19
Reporteruser503Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version4.4.6 revision 32697 
Summary0002539: Extension 'Country Specific VAT' doesn't work
DescriptionI have downloaded and installed the extension 'Country Specific VAT' and modified the config.inc.php like directed in README, but it doesn't work like stated in its description. It doesn't matter which country a customer is located to, OXID always uses the default VAT configured at Admin > Master Settings > Core Settings> Settings > VAT. What am I doing wrong?
For me it looks like that the function getUserVat in file modules/modvatselector.php will not be executed at any time. I than modified the function getUserVat in file /core/oxvatselector.php like this:

$aCountryVat = $this->getConfig()->getConfigParam( 'aCountryVat' );
if ($aCountryVat[$sCountryId] !== NULL) {
$ret = $aCountryVat[$sCountryId];
}
else {
$ret = $this->getConfig()->getConfigParam( 'dDefaultVAT' );
}

Now, it works like it should be, but this isn't really a good way, because it's a stupid workaround and it only works for standard products. Additionally it will be overwritten with oncoming updates from OXID. Does anyone have a clue how to get the extension working?
Steps To Reproduce1. Create a couple of customer accounts with different country locations each account.
2. Drop a product in the basket and go to the basket.
3. The VAT will be calculated like configured at Admin > Master Settings > Core Settings> Settings > VAT.
Additional InformationI use to run OXID CE under OS X 10.6.6 with XAMPP 1.7.3
TagsVAT
Theme
BrowserAll
PHP Version5.3
Database Version5.1

Activities

user503

2011-02-20 09:38

  ~0004144

I was wrong. The function getArticleVat must be altered for proper function with use of aCountryVat.

birute_meilutyte

2011-05-16 10:01

reporter   ~0004579

Reminder sent to: user503

Hello,

This Module was published by oxidlab and is not supported since then. there is also no warranty as it is under GPL. You can find more info or report this problem at https://projects.oxidforge.org/projects/countryvat/
therefore this bug entry here is closed.


greetings,