{"action":"created","issue":{"url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/23","repository_url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise","labels_url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/23/comments","events_url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/23/events","html_url":"https://github.com/EmicoEcommerce/Magento2Tweakwise/issues/23","id":276435133,"number":23,"title":"Upsell and Crossell blocks not displayed after product save","user":{"login":"VesnaS","id":33281361,"avatar_url":"https://avatars2.githubusercontent.com/u/33281361?v=4","gravatar_id":"","url":"https://api.github.com/users/VesnaS","html_url":"https://github.com/VesnaS","followers_url":"https://api.github.com/users/VesnaS/followers","following_url":"https://api.github.com/users/VesnaS/following{/other_user}","gists_url":"https://api.github.com/users/VesnaS/gists{/gist_id}","starred_url":"https://api.github.com/users/VesnaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VesnaS/subscriptions","organizations_url":"https://api.github.com/users/VesnaS/orgs","repos_url":"https://api.github.com/users/VesnaS/repos","events_url":"https://api.github.com/users/VesnaS/events{/privacy}","received_events_url":"https://api.github.com/users/VesnaS/received_events","type":"User","site_admin":false},"labels":[{"id":573730357,"url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-23T16:53:00Z","updated_at":"2017-12-14T02:33:02Z","closed_at":"2017-12-14T02:32:45Z","author_association":"NONE","body":"Hello,\r\n\r\nWe have one issue with the latest version of the extension.\r\nAs I understood, upsell and crosssell templates can be configured in 3 places:\r\n- general configuration: M2 -> Admin -> Stores -> Configuration -> CATALOG -> Tweakwise -> Recommendations\r\n- product configuration: M2 -> Admin -> Products -> Catalog -> Tweakwise\r\n- category configuration: M2 -> Admin -> Products -> Categories -> Tweakwise\r\n\r\nWhen displaying upsell and crosssell on product view page, if Tweakwise templates aren't configured on the product level, extension tries to load them from the category that the product belongs to.\r\nIf category doesn't have associated templates, then the ones configured in the general configuration are used.\r\nIn this case, upsell and crosssell blocks are displayed correctly.\r\nBut, if someone than saves product in admin, without changing anything related to Tweakwise templates, upsell and crosssell products are not displayed on frontend anymore.\r\n\r\n**Steps to reproduce**\r\n\r\n- Configure upsell and crosssell templates in general configuration, without setting templates on product or category level\r\n- Upsell and crosssell blocks are displayed on frontend product view page\r\n- If you than save product in admin, without changing anything related to Tweakwise, \"tweakwise_upsell_template\" and \"tweakwise_crosssell_template\" get value \"-1\" saved in database (this shouldn't happen), as this is the first value in dropdown list. This indicates to the extension that it shouldn't use \"template id\", but \"template code\" which in this case should have value set. As that is not the case, it ties to load non-existing template, and crosssell and upsell products aren't displayed on frontend.\r\n\r\n**Environment**\r\n\r\nMagneto 2.1.6\r\nLatest version of the extension\r\nPHP 7"},"comment":{"url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/comments/351590304","html_url":"https://github.com/EmicoEcommerce/Magento2Tweakwise/issues/23#issuecomment-351590304","issue_url":"https://api.github.com/repos/EmicoEcommerce/Magento2Tweakwise/issues/23","id":351590304,"user":{"login":"Fgruntjes","id":984466,"avatar_url":"https://avatars1.githubusercontent.com/u/984466?v=4","gravatar_id":"","url":"https://api.github.com/users/Fgruntjes","html_url":"https://github.com/Fgruntjes","followers_url":"https://api.github.com/users/Fgruntjes/followers","following_url":"https://api.github.com/users/Fgruntjes/following{/other_user}","gists_url":"https://api.github.com/users/Fgruntjes/gists{/gist_id}","starred_url":"https://api.github.com/users/Fgruntjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fgruntjes/subscriptions","organizations_url":"https://api.github.com/users/Fgruntjes/orgs","repos_url":"https://api.github.com/users/Fgruntjes/repos","events_url":"https://api.github.com/users/Fgruntjes/events{/privacy}","received_events_url":"https://api.github.com/users/Fgruntjes/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T02:33:02Z","updated_at":"2017-12-14T02:33:02Z","author_association":"CONTRIBUTOR","body":"Thank you for the issue report, we have managed to found and fix the bug."}}
{"actor":{"display_login":"Fgruntjes"}}