S
S
Svetlana Shcherbakov2020-02-08 20:48:21
1C-Bitrix
Svetlana Shcherbakov, 2020-02-08 20:48:21

Learnpress doesn't save course settings, how can I fix this?

Course settings, payments, price, number of students are not saved

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Gritsuk, 2019-05-27
@winer

The code in your question is a template, you need to look at the call code of the component that uses this template.
For example, now the path to the template file is:
/local/templates/site_template_name/bitrix/ component_name /component_template_name/template.php
component_name - most likely catalog.section or news.list .
You need to look at how the passing of parameters to the component call is implemented. Look at the ELEMENT_SORT_FIELD or SORT_BY1 options.
Your price can be a Price from the Trade Catalog or an IB property.
In the first case, sorting by price will be catalog_PRICE_ 1 , where 1 is the ID of the price you are sorting by.
In the second case, sorting by property will be PROPERTY_ PRICE , where PRICE is the character code of the property.
You can read more about sorting in the API of the CIblockElement::GetList method

E
ElenaGutnik, 2020-12-28
@ElenaGutnik

Maybe someone will come in handy. Faced a similar problem (any course settings were not saved).
The problem was in the Power Builder Integrator plugin. Deactivation helped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question