View Issue Details

IDProjectCategoryView StatusLast Update
0000872OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:29
Reportertjungcl Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.1 revision 18442 
Fixed in Version4.1.2 revision 18998 
Summary0000872: precalculated fromPrices in articlelist do not reduce when switching to an no-vat-country like switzerland.
Descriptionto 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

TagsProducts
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

tjungcl

2009-05-08 11:29

reporter   ~0000882

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.

sarunas_valaskevicius

2009-05-11 16:34

reporter   ~0000904

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)