Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question