emarket Posted June 2, 2022 Share Posted June 2, 2022 My hosting company limit no of files i hosted , if i delete products from backoffice it does not delete it in hosting, how i can delete the file of the products i delete in backoffice ? Link to comment Share on other sites More sharing options...
El Patron Posted June 2, 2022 Share Posted June 2, 2022 upgrade hosting, else you could get yourself into real trouble, you can look for 'clean' modules but recommend creating a test system to test first Link to comment Share on other sites More sharing options...
Nickz Posted June 2, 2022 Share Posted June 2, 2022 3 hours ago, emarket said: My hosting company limit no of files i hosted run away from hosters who like to limit resources. VPS at Contabo runs at €60 a year. Link to comment Share on other sites More sharing options...
Prestachamps Posted June 3, 2022 Share Posted June 3, 2022 @emarket Prestashop doesn't create physical files for products. The Products are using a single template and this file is used to generate each product by replacing the data's saved from the database. Enter into your cpanel and check the Disk usage section - this will show you the folders(s) which occupies most space and based on that concept it should normally hold most of the files (the image folders will be there). In case you're lucky it could lead you to the solution as well. however I tend to contemplate with Nikz remark - change host Link to comment Share on other sites More sharing options...
Tom Girou Posted June 3, 2022 Share Posted June 3, 2022 4 hours ago, Prestachamps said: @emarket Prestashop doesn't create physical files for products. The Products are using a single template and this file is used to generate each product by replacing the data's saved from the database. Enter into your cpanel and check the Disk usage section - this will show you the folders(s) which occupies most space and based on that concept it should normally hold most of the files (the image folders will be there). In case you're lucky it could lead you to the solution as well. however I tend to contemplate with Nikz remark - change host He means the image of the product, not the template. Link to comment Share on other sites More sharing options...
Prestachamps Posted June 3, 2022 Share Posted June 3, 2022 Hi @emarket, there is a script which can remove these orphan images: Please make a backup of your database and all files before testing it, and also this script needs modification of the root path of the shop in the variable $shop_root , this needs to be your server's path of the shop. Yu can find this by creating a findmypath.php in your root of your shop and add this in the code: <?php echo getcwd(); Then check the file by opening the URL : www.YOURDOMAIN.COM/findmypath.php The output of the file will be the root path to your shop. Set this into the remove script, and then delete this findmypath.php from the shop files. I hope that I could help. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now