FelixC Posted June 5, 2013 Share Posted June 5, 2013 (edited) Hello Community I'm writing a module for age verification via the passport of customers for products, which are not available under an age of 18 years. The most thing is done (verification, view for product site, configuration of the module, ...) but I'm stuck at one point: I need an attribute for each product which indicates if the product is available for customers under an age of 18 years or not. I would love to have a checkbox for it in the general product options. Please see the attached screenshot (sorry for german overview, but I thing you know which position I mean). My idea is to add a new boolean field in the product database table (or if existing in a custom attributes table for products). Then I would register a hook where I can serialize the value of my checkbox in this field. The important thing is: I need to solve this with modules, no customizing of core files! Is this possible or do I need to create an own product listing in the module configuration site? I hope you can help me! Please feel free to ask if you have any questions. Kind regards Felix Czylwik Edited June 5, 2013 by FelixC (see edit history) Link to comment Share on other sites More sharing options...
FelixC Posted June 5, 2013 Author Share Posted June 5, 2013 Hello, I have successfully solved my issue. The solution is described here: http://blog.belvg.com/how-to-create-a-custom-product-tab-in-prestashop.html The documentation doesn't list the displayAdminProductsExtra hook. But if you know that it is available, it is very simple. 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