{"action":"opened","issue":{"url":"https://api.github.com/repos/doofinder/doofinder-prestashop/issues/5","repository_url":"https://api.github.com/repos/doofinder/doofinder-prestashop","labels_url":"https://api.github.com/repos/doofinder/doofinder-prestashop/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/doofinder/doofinder-prestashop/issues/5/comments","events_url":"https://api.github.com/repos/doofinder/doofinder-prestashop/issues/5/events","html_url":"https://github.com/doofinder/doofinder-prestashop/issues/5","id":452504943,"node_id":"MDU6SXNzdWU0NTI1MDQ5NDM=","number":5,"title":"Bug on available_for_order attribute when Multishop","user":{"login":"LittleSnake42","id":24939197,"node_id":"MDQ6VXNlcjI0OTM5MTk3","avatar_url":"https://avatars1.githubusercontent.com/u/24939197?v=4","gravatar_id":"","url":"https://api.github.com/users/LittleSnake42","html_url":"https://github.com/LittleSnake42","followers_url":"https://api.github.com/users/LittleSnake42/followers","following_url":"https://api.github.com/users/LittleSnake42/following{/other_user}","gists_url":"https://api.github.com/users/LittleSnake42/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleSnake42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleSnake42/subscriptions","organizations_url":"https://api.github.com/users/LittleSnake42/orgs","repos_url":"https://api.github.com/users/LittleSnake42/repos","events_url":"https://api.github.com/users/LittleSnake42/events{/privacy}","received_events_url":"https://api.github.com/users/LittleSnake42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-05T13:35:05Z","updated_at":"2019-06-05T13:35:05Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\n\r\nIn **dfTools.class.php** , on line 372 & 421, you get the value of *'available_for_order'* from DB table **product** . Prestashop core does it from table **product_shop**. So if a product is not available before you become multishop, the value in **product** will be 0. Then you add shops, and Prestashop always get / update the value from table **product_shop**.\r\n\r\nYour product is available on your shop, but Doofinder thinks it's not. \r\n\r\nPrestashop 1.6.1.17 /  Doofinder 3.0.9 (was also present on 2.3.4)"}}
{"actor":{"display_login":"LittleSnake42"}}