Есть задача - убрать автоматический переход в корзину, разработчики сказали надо поменять параметр action в файле /bitrix/templates/shop/components/bitrix/catalog/catalog/bit rix/catalog.element/.default/template.php.
Для меня это просто тёмный лес, php только начинаю изучать. Помогите кто знает, что на что поменять. ПОЖАЛУЙСТА.
Второй день ломаю голову. Код ниже.
Для меня это просто тёмный лес, php только начинаю изучать. Помогите кто знает, что на что поменять. ПОЖАЛУЙСТА.
Второй день ломаю голову. Код ниже.
Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <div class="pm-item-detail pm-group"> <div class="pm-item-pict-wrap"> <?if(is_array($arResult["PREVIEW_PICTURE"]) || is_array($arResult["DETAIL_PICTURE"])):?> <figure class="pm-item-pict"> <?if(is_array($arResult["DETAIL_PICTURE"])):?> <a href="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" id="zoom1" class="cloud-zoom" rel="position: 'inside', showTitle: false"><img src="<?=$arResult["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arResult["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arResult["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>"></a> <?elseif(is_array($arResult["PREVIEW_PICTURE"])):?> <a href="<?=$arResult["PREVIEW_PICTURE"]["SRC"]?>" id="zoom1" class="cloud-zoom" rel="position: 'inside', showTitle: false"><img src="<?=$arResult["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arResult["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arResult["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>"></a> <?endif?> </figure> <?if(count($arResult["MORE_PHOTO"])>0):?> <ul class="pm-item-gallery row"> <?foreach($arResult["MORE_PHOTO"] as $key => $PHOTO):?> <li class="col_3<?if ($key%3==0) echo ' odd'?>"><a class="cloud-zoom-gallery" href="<?=$PHOTO["SRC"]?>" rel="useZoom: 'zoom1', smallImage: '<?=$PHOTO["SRC"]?>'"><img src="<?=$PHOTO["PREVIEW"]["SRC"]?>" width="<?=$PHOTO["PREVIEW"]["WIDTH"]?>" height="<?=$PHOTO["PREVIEW"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>"></a></li> <?endforeach?> </ul> <?endif;?> <?endif;?> </div> <section class="pm-item-info-wrap"> <h1><?=$arResult["NAME"]?></h1> <?if (!empty($arResult["DISPLAY_PROPERTIES"])):?> <div class="pm-item-prop-wrap"> <?if (count($arResult["SIZE"]) > 0 || count($arResult["COLOR_LABEL"]) > 0):?> <?if (count($arResult["COLOR_LABEL"]) > 0):?> Цвета: <?=implode(', ', $arResult["COLOR_LABEL"])?><br> <?endif?> <?if (count($arResult["SIZE"]) > 0):?> Размеры: <?=implode(', ', $arResult["SIZE"])?> <?endif?> <br> <?endif?> <?foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?> <?=$arProperty["NAME"]?>: <? if(is_array($arProperty["DISPLAY_VALUE"])): echo implode(" / ", $arProperty["DISPLAY_VALUE"]); elseif($pid=="MANUAL"): ?><a href="<?=$arProperty["VALUE"]?>"><?=GetMessage("CATALOG_DOWNLOAD")?></a><? else: echo $arProperty["DISPLAY_VALUE"];?> <?endif?><br /> <?endforeach?> </div> <?endif?> <div class="pm-tabs-wrap"> <ul class="pm-item-tabs pm-group"> <li class="pm-current">Описание</li> <li>Доставка</li> <li>Возврат</li> <li class="pm-tabs-line"> </li> </ul> <div class="pm-tab-box pm-tab-box__active"> <?if (!empty($arResult["PROPERTIES"]["SOSTAV"]["VALUE"])):?> <p><?=$arResult["PROPERTIES"]["SOSTAV"]["VALUE"]?></p> <?endif?> <?if($arResult["DETAIL_TEXT"]):?> <p><?=$arResult["DETAIL_TEXT"]?></p> <?/*elseif($arResult["PREVIEW_TEXT"]):?> <p><?=$arResult["PREVIEW_TEXT"]?></p> <?*/endif;?> </div> <div class="pm-tab-box"> #INC_DELIVERY# </div> <div class="pm-tab-box"> #INC_BACK# </div> </div> <form action="<?=POST_FORM_ACTION_URI?>" method="post" enctype="multipart/form-data"> <?if (count($arResult["COLOR"]) > 0):?> <section class="pm-item-buy-prop pm-item__color"> <header>Цвет</header> <?foreach ($arResult["COLOR"] as $url => $color): list($src, $alt) = $color; if (strlen($url) > 5): ?> <a href="<?=$url?>" title="<?=$alt?>"><img src="<?=$src?>" alt="<?=$alt?>"></a> <?else:?> <span class="pm-checked" title="<?=$alt?>"><img src="<?=$src?>" alt="<?=$alt?>"></span> <?endif?> <?endforeach?> </section> <?endif?> <?if (count($arResult["SIZE"]) > 0):?> <section class="pm-item-buy-prop pm-item__size"> <header>Размер</header> <?foreach ($arResult["SIZE"] as $id => $value):?> <input id="size<?=$id?>" type="radio" name="<?echo $arParams["PRODUCT_ID_VARIABLE"]?>" value="<?=$id?>"><label for="size<?=$id?>"><?=$value?></label> <?endforeach?> <span class="pm-size-link"><a href="/pokupatelyam/razmery.php">Таблица размеров</a></span> </section> <?endif?> <section class="pm-item-buy-prop pm-item__quantity"> <header>Количество</header> <span class="pm-spinner-left"></span> <input id="pm-item_q" type="text" size="10" name="<?echo $arParams["PRODUCT_QUANTITY_VARIABLE"]?>" value="1"> <span class="pm-spinner-right"></span> </section> <?if (!empty($arResult["PROPERTIES"]["TSENA"]["VALUE"])):?> <section class="pm-item__price"> <input type="hidden" name="<?echo $arParams["ACTION_VARIABLE"]?>" value="BUY"> <div class="catalog-price"><?=CurrencyFormat(preg_replace('/[^0-9]*/', '', $arResult["PROPERTIES"]["TSENA"]["VALUE"]), 'RUB')?></div> <input type="submit" name="<?echo $arParams["ACTION_VARIABLE"]."BUY"?>" value="Купить"> </section> <?endif?> </form> <?if(is_array($arResult["SECTION"])):?> <p class="pm-link-back-wrap"><a href="<?=$arResult["SECTION"]["SECTION_PAGE_URL"]?>"><?=GetMessage("CATALOG_BACK")?></a></p> <?endif?> </section> </div> |