Jump to content

Select a date in BO for use as a dynamic field/tag in webshop/html


jkousholt

Recommended Posts

Hi Prestashoppers!

 

I'm looking for a module where I can select/type a date and time in BO, and then I can insert a tag anywhere in my shop and it will show the date selected.

Perhaps a feature with long/short date would be nice.

 

It would be awesome if this tag could be inserted in this description

post-408579-0-43208900-1371308898_thumb.png

 

I want to inform my customers the next date/time I order from my supplier, så they can make an order on non-stock products.

 

Does anyone know if such module exists?

Link to comment
Share on other sites

So you're looking for some kind of shortcode method like wordpress?

To add new fields in the back office you can use my tut here:

 

http://nemops.com/extending-prestashop-objects/

 

Then, in the front office I'd go for a javascript solution, otherwise you'd need to edit ProductController and filter theavailable_later text, parse it with a regex to replace the current shortcode syntax with the proper date. WIth js it's done with regex as well, or a simple .replace, but at least it doesn't require a core modification (...well a further one)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...