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

У меня экипировка с размерами, и в итоге 500 ошибка #13

Open
overtheground opened this issue May 13, 2020 · 0 comments

Comments

@overtheground
Copy link

overtheground commented May 13, 2020

Плагин Яндекс.Маркета сделал XML, в котором offer_id=*id товара * . "s" . *id значения опции *.
Например перчатки id = 61, размера 11 с id = 53.
Offer_id = 61s53.
"61s53" улетает в ваш плагин как product_id и я ловлю ошибку 500.

Я написал проверку наличия размера, добавил в модель функцию возвращающую нужные данные в массив $option, проверку на наличие значения опции.

Всё работает.
P.S. Код с изменениями под модуль simple
install_overtheground.txt

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

No branches or pull requests

1 participant