Jump to content

Create image's folders for products


Recommended Posts

Hello evryone

I'm using prestashop 1.6 I want to know how to create folders under /img/p in prestahop ;because i wanted to add a new product using sql queries .and i m looking for creating folder for each product'image using php or sql

I found the code in Image.php but i didn't know how to use it alone in a new php class

 

 

 

create_img_folder.png

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

merci pour votre réponse et je m'excuse pour utiliser l'anglais;

 

je souhaite utiliser cette classe séparée dans un autre fichier et non pas dans le répertoire de prestashop et par la suite

_PS_PROD_IMG_DIR_.$this

  ne sera pas reconnue.

 

je suis intéressé par une fonction similaire à mkdir en php

5 hours ago, doekia said:

IT IS COMPULSARY TO SPEAK FRENCH ON THIS SECTION OF THE FORUM !!!

 

the answer is right in front of your eyes !


_PS_PROD_IMG_DIR_.$this->getImgFolder()

 

 

 

Edited by smacss (see edit history)
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...