Jump to content

Added new cfg option. how to set default value at install?


PhpMadman
 Share

Recommended Posts

Hi.

 

I'm working on a new feature to add to prestashop @ GitHub.

And I added an text option in BO, similar to Number of days for which the product is considered 'new'.

Now that option comes with an default 20 days. How do I make the same thing for my option.

 

I searched the files, and if i'm guessing right it's the install/-devdata/theme.sql file with the line UPDATE `PREFIX_configuration` SET value = '20' WHERE name = 'PS_NB_DAYS_NEW_PRODUCT'; that sets the default value.

 

Is my guess correct?

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More