Answer the question
In order to leave comments, you need to log in
What should I do to ensure that the balances are correctly uploaded to Bitrix from 1C?
Guys, help!!!
Bitrix incorrectly shows the rest of the goods !!
Number of accounting disabled, but!!! In 1s, the product is out of stock for a long time, but in Bitrix it is displayed in the general list !! In the settings it is necessary that products not in stock are not displayed!
Through the trade catalog, I cleared the quantity, reserve, etc., it seemed to help for a while .. the checkmark "Out of stock" appeared in the product card, but .. FOR SOME SOMETHING through the search it was still found and added to the cart (((
After several synchronizations with 1C again, the "OUT OF STOCK" checkbox disappeared and the product appeared in the general list and, of course, is searched through the search ...
Please help in 2 questions:
1. How to make sure that the rest of the goods are always unloaded correctly??? without constant dumping of balances, etc. in Bitrix ...
2. How to make sure that a product that is not available is not searched even through a search ???
I really hope for your help!
Answer the question
In order to leave comments, you need to log in
Regular components use filtering by availability using the CATALOG_AVAILABLE flag, which is calculated if quantity accounting is enabled for the item.
Accordingly, it doesn’t matter what balances 1s returns, zero or even negative products you have will always be available on the site. All your manipulations temporarily help only because this flag is calculated again during the exchange and reset again to "in stock".
Therefore, enable it for all products, and re-index the availability of products in the shopping catalog settings.
If you do not want to use the option, but need to filter, then disable the option not to show missing products in the component and prescribe your filter everywhere before calling the components.
There you use another field for filtering, namely
$arrFilter = [
'>CATALOG_QUANTITY' => 0
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question