ZiedDams Posted August 5, 2022 Share Posted August 5, 2022 How access 'active' attribute in the product template page // like this $product.active Link to comment Share on other sites More sharing options...
Mediacom87 Posted August 5, 2022 Share Posted August 5, 2022 Hi, The inactive product page will not display so I don't know what you are trying to do. Link to comment Share on other sites More sharing options...
Ress Posted August 5, 2022 Share Posted August 5, 2022 The check is done in the init method, from the Product controller. If you want to make certain changes, there should, normally, an inactive product you can only see it in preview mode, where you have the preview parameter in the url. Link to comment Share on other sites More sharing options...
ZiedDams Posted August 5, 2022 Author Share Posted August 5, 2022 4 hours ago, Mediacom87 said: Hi, The inactive product page will not display so I don't know what you are trying to do. Im actually creating a module that add new status to the product in a way that the active field has more then 0 and 1 values for example my module set the value of 2 if the product is on demande and the value of 3 is it's on arriving (not yet in the store) and I want to add a new condition in the product page so if it's on arriving I display ' arriving' not in stock and so on . I hope you get it , thanks for your replay and time. Link to comment Share on other sites More sharing options...
ZiedDams Posted August 5, 2022 Author Share Posted August 5, 2022 59 minutes ago, Ress said: The check is done in the init method, from the Product controller. If you want to make certain changes, there should, normally, an inactive product you can only see it in preview mode, where you have the preview parameter in the url. Yes after I looked a while I found a function in the product controller so I did an override but still need to find a way to added in the product quick view and product card listing. Thank you for replay and time 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now