Answer the question
In order to leave comments, you need to log in
How to make two prices for a product?
Hello!
Subject. What I found does not work(
I create a price type, specify it in the catalog component.
1: Where to write a new price?
2: How to display it in the catalog?
Answer the question
In order to leave comments, you need to log in
To make two prices for one product, you need to use "Trading offers". If you want to use different types of prices (not to be confused with the price), then you must select these types of prices for display in the component settings and in the administrative section of the site, in the "Price Type" settings (where you created it), select for which users, what type will be displayed.
Price type
Trade offers
1) Copy the component template
2) Open template.php
3) If the project is working and users are already using the resource, display $arResult or $arItem under the admin (depending on which component you have). It's done like this
<?global $USER;
if ($USER->IsAdmin()){?>
<pre><?print_r($arResult)?></pre>
<?}?>
<?echo $arResult["PRICE"]["PRICE_1"]["VALUE"]?>
<?echo $arResult["PRICE"]["PRICE_2"]["VALUE"]?> // у вас пути до значения и названия типа цен могут отличаться
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question