Z
Z
zahar_922020-08-17 13:48:38
1C-Bitrix
zahar_92, 2020-08-17 13:48:38

How to link a warehouse to a Bitrix region?

Hello!
There are 2 warehouses and 2 regions. For Region-1, only Warehouse-1 is available, and for Region-2, Warehouse-1, Warehouse-2 are available. I can't figure out how to disable an order for Region-1 from Warehouse-2?
I saw ready-made multiregionality modules, but it seems to me that this can be solved without buying such a module.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
constlapkin, 2020-08-20
@constlapkin

Determine in which variable the city is stored, and then, depending on it, filter the Warehouse Directory component https://dev.1c-bitrix.ru/support/forum/forum6/topi...
">CATALOG_STORE_AMOUNT_IDсклада" => 0

G
GreatRash, 2015-04-28
@Faksi

$('button').on('click', function(e) {
  $(dropUp).toggleClass('ops');
  e.stopPropagation();
});

$(document).on('click', function() {
  $(dropUp).removeClass('ops');
});

S
spamerbo, 2015-04-28
@spamerbo

Well, apparently because when you click on the button, the event fires on the button and on the document, the class is added and immediately removed. Read about event bubbling in js. Well, it would be nice to see the HTML code as well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question