- izaias silva
- Mensagens : 105
Data de inscrição : 12/05/2020
Magento , Nao atualiza o salable ( cataloginventory_stock_status )
Qui Set 21, 2023 4:43 pm
para sanar esta situação, foi necessario incluir este codigo na trigger do magento
conforme imagem abaixo, na tabela cataloginventory_stock_item
incluir o codigo
if (new.qty > 0) then
update cataloginventory_stock_status set qty = new.qty, stock_status = 1
where product_id = new.product_id;
end if;
if (new.qty <= 0) then
update cataloginventory_stock_status set qty = new.qty, stock_status = 0
where product_id = new.product_id;
end if;
conforme imagem abaixo, na tabela cataloginventory_stock_item
incluir o codigo
if (new.qty > 0) then
update cataloginventory_stock_status set qty = new.qty, stock_status = 1
where product_id = new.product_id;
end if;
if (new.qty <= 0) then
update cataloginventory_stock_status set qty = new.qty, stock_status = 0
where product_id = new.product_id;
end if;
Permissões neste sub-fórum
Não podes responder a tópicos
|
|