Jump to content

Predetermine options CSV Import screen [SOLVED]


Recommended Posts

You can do what you ask by editing this file:

 

 

/PRESTASHOP_DIR/ADMIN_DIR/themes/default/template/controllers/import/helpers/form/form.tpl
 

FIRST, MAKE A BACKUP OF THIS FILE!

 

Then, you should change the "value" attribute of the HTML elements with the following IDs:

 

 

<input id="separator" ... />
...
<input id="multiple_value_separator" ... />
 

 

Also, for the Force ID option, you can change the following line:

 

 

<input id="forceIDs" name="forceIDs" type="checkbox" />
 

to:

 

<input id="forceIDs" name="forceIDs" type="checkbox" checked/>
Edited by parsifal (see edit history)
Link to comment
Share on other sites

Of course it is possible:

 

/PRESTASHOP_DIR/ADMIN_DIR/themes/default/template/controllers/import/helpers/view/view.tpl
Find the following line:

 

<input class="fixed-width-sm" type="text" name="skip" id="skip" value="1" />
As expected, you simply change the value attribute to 0.

 

And always, ALWAYS, make a backup of the file in question, before editing!

Edited by parsifal (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...