How to put date field in the registration of a product?

Asked

Viewed 356 times

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:

Image with better quality

Any instruction will be most welcome.

1 answer

3

A solution would be for you to register the attribute group "Expiration date" with these values and then add the attribute corresponding to each product where it becomes necessary.


You must register the attribute, after registration return to the listing, click on it in order to "enter" it and then register a new value for it.

inserir a descrição da imagem aqui

  • Got it, knows whether the attribute is visible only in Admin?

  • They are visible in the store as well. When you see a specific product, the product attributes will appear.

  • 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.

  • Responding more directly, the attribute is not visible only in Admin.

  • There is no text field and no date in the "Attribute" options of the Prestashop. Image http://i.imgur.com/isqBvH7.png

  • 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).

  • Any doubt I can leave a little more clarified.

  • 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

  • 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.

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.