Timeline for How to add custom visibility option in visibility attribute in products in magento
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 5, 2016 at 6:07 | comment | added | CCK1979 | The logic to hide the product (which actually means not selecting it for a collection) is implemented in many places so you have to check all those places where product collections are created. Additionally, if you install new Extensions, those might disregard your value again so you have to implement the new value there as well. | |
| Sep 2, 2016 at 7:34 | comment | added | Janak Bhimani | No, the const have not same value for two different const, you need to give value 5 and write the logic like value 1. You need to customization for achieve this functionality. | |
| Sep 2, 2016 at 7:33 | comment | added | KA9 | Can you please specify, where can be that VISIBILITY_NOT_VISIBLE logic? | |
| Sep 2, 2016 at 7:31 | comment | added | KA9 | You mean I should give value 1 to my custom const? | |
| Sep 2, 2016 at 7:27 | history | edited | Janak Bhimani | CC BY-SA 3.0 | deleted 4 characters in body |
| Sep 2, 2016 at 7:25 | comment | added | Janak Bhimani | If you want to hide the product if the option is VISIBILITY_PENDING, you can follow the same logic of VISIBILITY_NOT_VISIBLE , you can hide the product like that way. | |
| Sep 2, 2016 at 7:18 | comment | added | KA9 | Hi Janak, Thank you for giving solution :) now I have already gone through this file & thought the same that I should add here one more option using const keyword but I think this only will not work because all const are having their individual values like 1,2,3,4 there must be a logic to hide the product. Suppose I add here const VISIBILITY_PENDING it will be added but where would I write the logic to hide the product? :) That's the thing. | |
| Sep 2, 2016 at 6:42 | history | answered | Janak Bhimani | CC BY-SA 3.0 |