{"action":"created","issue":{"url":"https://api.github.com/repos/user50/description-modifier/issues/1","labels_url":"https://api.github.com/repos/user50/description-modifier/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/user50/description-modifier/issues/1/comments","events_url":"https://api.github.com/repos/user50/description-modifier/issues/1/events","html_url":"https://github.com/user50/description-modifier/issues/1","id":115662644,"number":1,"title":"Обработка тега deleted_offer","user":{"login":"user50","id":2991436,"avatar_url":"https://avatars.githubusercontent.com/u/2991436?v=3","gravatar_id":"","url":"https://api.github.com/users/user50","html_url":"https://github.com/user50","followers_url":"https://api.github.com/users/user50/followers","following_url":"https://api.github.com/users/user50/following{/other_user}","gists_url":"https://api.github.com/users/user50/gists{/gist_id}","starred_url":"https://api.github.com/users/user50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user50/subscriptions","organizations_url":"https://api.github.com/users/user50/orgs","repos_url":"https://api.github.com/users/user50/repos","events_url":"https://api.github.com/users/user50/events{/privacy}","received_events_url":"https://api.github.com/users/user50/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/user50/description-modifier/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"user50","id":2991436,"avatar_url":"https://avatars.githubusercontent.com/u/2991436?v=3","gravatar_id":"","url":"https://api.github.com/users/user50","html_url":"https://github.com/user50","followers_url":"https://api.github.com/users/user50/followers","following_url":"https://api.github.com/users/user50/following{/other_user}","gists_url":"https://api.github.com/users/user50/gists{/gist_id}","starred_url":"https://api.github.com/users/user50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user50/subscriptions","organizations_url":"https://api.github.com/users/user50/orgs","repos_url":"https://api.github.com/users/user50/repos","events_url":"https://api.github.com/users/user50/events{/privacy}","received_events_url":"https://api.github.com/users/user50/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-11-07T12:23:41Z","updated_at":"2015-12-17T20:49:42Z","closed_at":null,"body":"Сделать так чтобы офферы типа delited скрипт обрабатывал.\r\nвот какие данные в таких офферах должны быть обязательно:\r\n```html\r\n<categoryId>0</categoryId><currencyId>RUR</currencyId><description></description><name>Удалено</name><model>Удалено</model><price>10000</price><url>http://kupi-na-dom.ru</url><vendor></vendor></offer>\r\n```\r\nв том варианте, где оффер удаленный в прайсе представлен в виде:\r\n```html\r\n<offer deleted=\"true\" id=\"161723\"/>\r\n```\r\n\r\nя вначале меняю offer deleted=\"true\" на offer available=\"\", \r\nпотом /> заменяю на >\r\n```html\r\n<categoryId>0</categoryId><currencyId>RUR</currencyId><description></description><name>Удалено</name><model>Удалено</model><price>10000</price><url>http://kupi-na-dom.ru</url><vendor></vendor></offer>\r\n```\r\nДелаю все это до запуска скрипта, чтобы потом к ID офферов добавились модификаторы.\r\n\r\nтам, где оффер представлен в виде:\r\n```html\r\n<deleted_offers>\r\n<offer id=\"1961051\" />\r\n</deleted_offers>\r\n```\r\nвначале удаляю <deleted_offers> и </deleted_offers>\r\nпотом добавляю available=\"\"\r\nпотом, как и в предыдущем случае, меняю /> на нужные нам параметры.\r\n\r\n так же в следующую версию модификатора прошу добавить автозамену available=\"false\" на available=\"\" и <price>0</price> на <price>10000</price> , а так же удаление слов опт и оптом в любом регистре\r\n\r\nЗадача не сложная вроде? сколько накинуть за нее нужно?"},"comment":{"url":"https://api.github.com/repos/user50/description-modifier/issues/comments/165578317","html_url":"https://github.com/user50/description-modifier/issues/1#issuecomment-165578317","issue_url":"https://api.github.com/repos/user50/description-modifier/issues/1","id":165578317,"user":{"login":"proyuri","id":15691312,"avatar_url":"https://avatars.githubusercontent.com/u/15691312?v=3","gravatar_id":"","url":"https://api.github.com/users/proyuri","html_url":"https://github.com/proyuri","followers_url":"https://api.github.com/users/proyuri/followers","following_url":"https://api.github.com/users/proyuri/following{/other_user}","gists_url":"https://api.github.com/users/proyuri/gists{/gist_id}","starred_url":"https://api.github.com/users/proyuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proyuri/subscriptions","organizations_url":"https://api.github.com/users/proyuri/orgs","repos_url":"https://api.github.com/users/proyuri/repos","events_url":"https://api.github.com/users/proyuri/events{/privacy}","received_events_url":"https://api.github.com/users/proyuri/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T20:49:41Z","updated_at":"2015-12-17T20:49:41Z","body":"вот в этом коде: \r\n`<categoryId>0</categoryId><currencyId>RUR</currencyId><description></description><name>Удалено</name><model>Удалено</model><price>10000</price><url>http://kupi-na-dom.ru</url><vendor></vendor></offer>`\r\nкоторый мы вставляем в офферы delited, нужно вынести значение тега categoryId в конфиг. Где-то я писал об этом.\r\n\r\nСмысл в том, что определяется отдельная папка на сайте под удаленные офферы, здесь задается id папки, он может быть разный."}}