Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <div class="js_price_wrapper price">
  2. <?if($arCurrentSKU):?>
  3. <?
  4. $item_id = $arCurrentSKU["ID"];
  5. $arCurrentSKU['PRICE_MATRIX'] = $arCurrentSKU['PRICE_MATRIX_RAW'];
  6. $arCurrentSKU['CATALOG_MEASURE_NAME'] = $arCurrentSKU['MEASURE'];
  7. if(isset($arCurrentSKU['PRICE_MATRIX']) && $arCurrentSKU['PRICE_MATRIX']) // USE_PRICE_COUNT
  8. {?>
  9. <?if($arCurrentSKU['ITEM_PRICE_MODE'] == 'Q' && count($arCurrentSKU['PRICE_MATRIX']['ROWS']) > 1):?>
  10. <?=CNext::showPriceRangeTop($arCurrentSKU, $arParams, GetMessage("CATALOG_ECONOMY"));?>
  11. <?endif;?>
  12. <?=CNext::showPriceMatrix($arCurrentSKU, $arParams, $strMeasure, $arAddToBasketData);?>
  13. <?$arMatrixKey = array_keys($arCurrentSKU['PRICE_MATRIX']['MATRIX']);
  14. $min_price_id=current($arMatrixKey);?>
  15. <?
  16. }
  17. else
  18. {
  19. $arCountPricesCanAccess = 0;
  20. $min_price_id=0;?>
  21. <?\Aspro\Functions\CAsproItem::showItemPrices($arParams, $arCurrentSKU["PRICES"], $strMeasure, $min_price_id, ($arParams["SHOW_DISCOUNT_PERCENT_NUMBER"] == "Y" ? "N" : "Y"));?>
  22. <?}?>
  23. <?else:?>
  24. <?\Aspro\Functions\CAsproSku::showItemPrices($arParams, $arItem, $item_id, $min_price_id, $arItemIDs, ($arParams["SHOW_DISCOUNT_PERCENT_NUMBER"] == "Y" ? "N" : "Y"));?>
  25. <?endif;?>
  26. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement