View Issue Details

IDProjectCategoryView StatusLast Update
0006761OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2018-01-05 11:56
Reportervanilla thunder 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version6.0.0 
Target VersionFixed in Version6.0.1 
Summary0006761: oxVariantHandler always uses brutto price for MD Variants
Descriptionregardless configured netto / brutto price mode, oxvarianthandler always uses brutto price for building md variants
https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Application/Model/VariantHandler.php#L70

found originally in 4.10 but also appears in 6.0
Steps To Reproduce1) enable at least "Show net prices in frontend (B2B)" ( master settings -> core settings -> settings -> VAT )
2) insert my code from "additional information" into productmain.tpl line ~ 151
3) open Kuyichi Jeans ANNA

product price says "from 78,07 €" and you see "plus tax" in footer
but my table with md variants array shows brutto prices
Additional Information<table class="table table-striped table-bordered">
    <tr>
        [{foreach from=$aVariantSelections.selections item=oList key=iKey}]
            <td>[{$oList->getLabel()}]</td>
        [{/foreach}]
        <td>[{oxmultilang ident="PRICE"}]</td>
    </tr>
    [{foreach from=$oDetailsProduct->getMdSubvariants() item=_mdVar key=iKey}]
        [{foreach from=$_mdVar->getMdSubvariants() item=_mdSubVar key=iSubKey name="mdsubvariants"}]
            <tr>
                [{if $smarty.foreach.mdsubvariants.first}]
                    <td valign="middle" style="vertical-align:middle;" rowspan="[{$_mdVar->getMdSubvariants()|@count}]">[{$_mdVar->getName()}]</td>
                [{/if}]
                <td>[{$_mdSubVar->getName()}]</td>
                <td>[{oxprice price=$_mdSubVar->getDPrice()}]</td>
            </tr>
        [{/foreach}]
    [{/foreach}]
</table>
TagsSolution Provided, Variants, VAT
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

vanilla thunder

2017-12-27 00:43

reporter   ~0012329

PR with suggested fix:
https://github.com/OXID-eSales/oxideshop_ce/pull/618

anton.fedurtsya

2018-01-05 11:56

administrator   ~0012345

Thanks, pull request had been merged recently to b-6.x