3
I need to create a module for Prestashop where in the product registration you have to have a new field date (Expiration date). This validity will be used for products that are perishable.
Actually, someone knows how to put a field date in the product register?
Imagery:
Any instruction will be most welcome.
Got it, knows whether the attribute is visible only in Admin?
– Tiago
They are visible in the store as well. When you see a specific product, the product attributes will appear.
– Anderson Brunel Modolon
The need for it is the creation of a date field in the product registration and this can be done through the registration of a referent attribute.
– Anderson Brunel Modolon
Responding more directly, the attribute is not visible only in Admin.
– Anderson Brunel Modolon
There is no text field and no date in the "Attribute" options of the Prestashop. Image http://i.imgur.com/isqBvH7.png
– Tiago
You must register the attribute, after registration return to the list, click on it in order to "enter" it and then register a new value for it (I edited the answer in order to show image).
– Anderson Brunel Modolon
Any doubt I can leave a little more clarified.
– Anderson Brunel Modolon
This does not work for me. When registering the product you have to have the field. See this image of how I need http://i.imgur.com/caIYqHJ.png
– Tiago
The customer when viewing I believe it would be indifferent, but if you want the field to be native to the Store (which I think is unnecessary, because the attributes came to meet this need), at first you should add manually to the structure of the Store this field (programming + database). In the override folder it is specific for you to extend classes, where it would be indicated for this case. You should add both the admin part and the front and the corresponding tpl’s.
– Anderson Brunel Modolon