Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Статус продукта теперь передаётся в $wc1c_product #60

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

Lomerill
Copy link
Contributor

В wc1c_replace_product проверяется статус продукта,
$is_deleted = @$product['Статус'] == 'Удален';
$is_draft = @$product['Статус'] == 'Черновик';
Но это было бесполезно, поскольку в wc1c_import_start_element_handler статус не устанавливался.

В wc1c_replace_product проверяется статус продукта,
    $is_deleted = @$product['Статус'] == 'Удален';
    $is_draft = @$product['Статус'] == 'Черновик';
Но это было бесполезно, поскольку в wc1c_import_start_element_handler статус не устанавливался.
@sgtpep
Copy link
Owner

sgtpep commented Oct 22, 2020

@Lomerill Большое спасибо за правку!

@sgtpep
Copy link
Owner

sgtpep commented Oct 22, 2020

@lufton Вроде ничего не должно поломать. Как считаешь, Максим?

Copy link
Contributor

@lufton lufton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Судя по описанию CML у узла Товар может быть установлен атрибут Статус, так что похоже, что всё правильно.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants