[{$smarty.block.parent}]
[{d3modcfgcheck modid="d3oqm"}][{/d3modcfgcheck}]
[{if $mod_d3oqm}]
[{assign var='d3MappedThemeId' value=$oViewConf->getD3MappedThemeId()}]
[{if $d3MappedThemeId === 'flow'}]
[{assign var="aD3OQMDrifts" value=$oxcmp_basket->getD3OQMDrifts()}]
[{if $aD3OQMDrifts && $oView->getNewBasketItemMsgType() == 2}][{strip}]
[{foreach from=$aD3OQMDrifts item="aDrift" key="basketItemId" name="d3OQMDrifts"}]
[{if $aDrift.isChanged}]
[{else}]
[{/if}]
[{capture name="CaptureUnitName"}]
[{*this capute is necessary to supress multilangassign not found*}]
[{oxmultilang ident=$aDrift.unitName noerror="1"}]
[{/capture}]
[{assign var='sUnitName' value=$smarty.capture.CaptureUnitName}]
[{oxmultilang ident="D3OQM_PRE_MSG"}]
[{$aDrift.wantedAmount}][{$sUnitName}]
[{oxmultilang ident="D3OQM_PRE_MSG_END"}]
[{if $aDrift.isChanged}]
[{oxmultilang ident="D3OQM_CHANGE_MSG"}]
[{$aDrift.addedAmount}][{$sUnitName}]
[{oxmultilang ident="D3OQM_CHANGE_MSG_END"}]
[{$aDrift.totalAmount}][{$sUnitName}]
[{elseif $aDrift.error}]
[{oxmultilang ident=$aDrift.error}]
[{else}]
[{oxmultilang ident="D3OQM_ERROR_MSG"}]
[{/if}]
[{if $aDrift.type|count > 0}]
[{assign var="sDriftTitle" value="D3OQM_DRIFT_DESC1"|oxmultilangassign}]
[{$sDriftTitle|replace:'%1':$aDrift.title|replace:'%2':$aDrift.artnum}]
[{foreach from=$aDrift.type item="typeValue" key="typeName"}]
-
[{assign var=type value=$typeName|strtoupper}]
[{assign var="sDriftDesc" value="`$type`_DESC"|oxmultilangassign}]
[{$sDriftDesc|replace:'%1':"`$typeValue``$sUnitName`"}]
[{/foreach}]
[{/if}]
|
[{/foreach}]
[{oxscript add="\$('#d3OQMModal').modal('show');"}]
[{if false == $oxcmp_basket->isNewItemAdded()}]
[{oxscript add='$(\'#basketModal\').on(\'shown.bs.modal\', function (e) {$(this).modal(\'hide\')});'}]
[{/if}]
[{$oxcmp_basket->resetD3OQMDrifts()}]
[{/strip}][{/if}]
[{/if}]
[{/if}]