I
I
Ivan Rodichev2020-10-27 12:44:47
1C-Bitrix
Ivan Rodichev, 2020-10-27 12:44:47

How to set the default price?

How to set the default price in the trade catalog?

To always create records in b_catalog_product and in b_catalog_price, by default values, if the corresponding fields are not filled in

Even if the user has read-only access to the "Sales catalog" module

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Rodichev, 2021-02-28
@Nozdri

Problem solving is based on events:
- OnAfterIBlockElementAdd we catch the list of IDs of created products.
- OnBeforeLocalRedirect create entries if they do not exist according to the data received in OnAfterIBlockElementAdd.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question