N
N
newProgrammer20172018-07-25 13:45:08
1C-Bitrix
newProgrammer2017, 2018-07-25 13:45:08

How to make another type of price in Small Business?

Hello! Please give some smart ideas on how to implement such functionality. There is an edition of Small Business 17.5, it is possible to make only one type of prices in it. But you need to add one more for a specific user group. It turns out that when displaying prices by the components of the catalog, shopping cart, placing an order for this group, it is necessary to display its own price. And also to be able to buy for this group at this price. I made a property for the price in the infoblock of the product catalog. I thought that it would be possible to change the price during the OnGetOptimalPrice event. But this event works only on the product detail page. For some reason, when catalog.section is running, the handler for this event is not fired. I started looking at the component code, there is a class.php and component.php file. Of these, only class.php seems to launch (if you add var_dump to them, then only var_dump from class.php is displayed). It is not clear where to look, which method selects prices and generates events.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question