yabarush Posted January 25, 2014 Share Posted January 25, 2014 Hi, I would like to create a script to get all the product images. I understand it is not possible from the DB as the products are stored in a server folder (img\p). What is the easiest way to do this? Do I have to generate a script? If so, who do I run it (i.e. I can add code to some php or tlb file but then I don't want it to run when I go to the page, I would like to run it not from the website). So, in a nutshell, I would like the easiest way to generate a txt file with product name, image path. Can anyone help? Thanks!!! Link to comment Share on other sites More sharing options...
vekia Posted January 25, 2014 Share Posted January 25, 2014 $product = new Product(ID, $id_lang) $images = $product->getImages($id_lang); now you can use $product->name and in $images variable you've got list of all product images Link to comment Share on other sites More sharing options...
yabarush Posted January 25, 2014 Author Share Posted January 25, 2014 Hi Vekia thanks a lot for your reply and sorry for my basic question...but what exactly do I have to do to run this code? i.e., where do I place this code (which file) and how do I run it? Also, I assume ID is the id of my products but what is $id_lang? Thanks! Lorenzo Link to comment Share on other sites More sharing options...
Recommended Posts