View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000872 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2009-05-08 09:04 | 2012-12-07 14:29 |
Reporter | tjungcl | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.1.1 revision 18442 | ||||
Fixed in Version | 4.1.2 revision 18998 | ||||
Summary | 0000872: precalculated fromPrices in articlelist do not reduce when switching to an no-vat-country like switzerland. | ||||
Description | to reproduce you have to - switch off "Varianten in Artikellisten laden" - switch off "Länderspezifische Mehrwertsteuer nur im Warenkorb und im Bestellprozess berechnen" - put something in the basket, check-out, choose option 1 (no registration), enter some data and country without vat (sitzerland), click next step - go back to the shop and open an article-list with variants (lamps for example). => normal articles show the vat-free netto-price, but fromPrices are still brutto | ||||
Tags | Products | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
in oxarticle.php in the method getPrice there is this code: // return cached result, since oPrice is created ONLY in this function [or function of EQUAL level] if ( $this->_oPrice ) { return $this->_oPrice; } i'm currently writing a module which lets the user switch countries without being logged in and noticed that : - the fromPrice in article-lists is ONLY shown, when that caching-line above is active (so commenting the return out, results in always 0,00 € fromPrice) - changes in the vatselector-class through a vat-selector module have problems with that price-caching, too: switching the country in the session (i do that with an own component) works fine, but the new price always shows a second page-reload later. That problem does not occure, wenn i comment the cache-code out. - the price-caching doesnt bring any obvious performance: loading an article with 200 variants takes the same amount of time with or without that price-caching. => i would comment that return-line out - but then no fromPrices are shown. |
|
the problem was in oxSimpleVariant class - it did not check user VAT. Solution for it - use main article VAT for oxSimpleVariant. Otherwise - full article list should be used for full VAT handling (e.g. different VAT per variant) |