View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002539 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2011-02-18 17:54 | 2012-12-07 15:19 |
| Reporter | Assigned To | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 4.4.6 revision 32697 | ||||
| Summary | 0002539: Extension 'Country Specific VAT' doesn't work | ||||
| Description | I 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 Reproduce | 1. 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 Information | I use to run OXID CE under OS X 10.6.6 with XAMPP 1.7.3 | ||||
| Tags | VAT | ||||
| Theme | |||||
| Browser | All | ||||
| PHP Version | 5.3 | ||||
| Database Version | 5.1 | ||||
|
|
I was wrong. The function getArticleVat must be altered for proper function with use of aCountryVat. |
|
|
Reminder sent to: 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, |