Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In the standard catalog complex component template, such a URL is not supported, but can be done via the get parameter.
In the IB settings of trade offers, you can write the following:
URL of the detailed view page: #PRODUCT_URL#?oid=#ELEMENT_ID#, and add processing in the catalog.element component template
$oid = intval($_REQUEST["oid"]);
if ($oid > 0) {
foreach ($arResult['JS_OFFERS'] as $key => $jsOffer) {
if ($jsOffer["ID"] == $oid) {
$arResult['OFFERS_SELECTED'] = $key;
break;
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question