User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

White spider removes redundunt images from Virtuemart 1.1.xImportant! Some people report this approach kills additional images too, even the needed ones. So backup before using the script. If you have a solution, please post it. It will be a good help for others.

With the flow of time Virtuemart 1.1.x aqquires with many redundant images. To clean up unused images in components/com_virtuemart/shop_image/product and components/com_virtuemart/shop_image/product/resized follow the steps below:

  1. Backup your web-site or at least Virtuemart images

  2. Create file /templates/YOURTEMPLATE/somefile.php with the following content:

  3. Follow link http://yoursite.com?tmpl=somefile and see the result:

    Cleaning up Virtuemart 1.1.x images

Comments   

Oleg
# Oleg 2012-01-28 20:59
Спасибо! Снес таким образом почти все дополнительные файлы, т.к. при импорте через CSVI в таблицу #__{vm}_product_files писались файлы в виде /filename.jpg :lol:
Универсальней был бы поиск имени файла без учета пути
gruz
# gruz 2012-01-28 21:11
Не совсем понял.
Есть варианты решения - предлагай. Поправлю, всем будет.
Oleg
# Oleg 2012-01-29 14:22
Я про использование в запросе LIKE %...%, например.
gruz
# gruz 2012-01-29 14:30
Давай какое-то тестированное предложение по улучшению кода. Мне не до экспериментов с этим сейчас. К тому же проблемы я не понимаю.
Guest
+2 # Guest 2012-11-28 19:51
Thank you, this does the trick on my site! Helped me remove over 18k images leaving me with the 1k that were actually used. :D
Guest
# Guest 2013-02-01 20:01
Can this be used on VM2 with location changed: images/stories/virtuemart/product/
gruz
# gruz 2013-02-01 20:10
Nothing designed for VM1 can work with VM2

Please register to post comments.

Found a typo? Please select it and press Ctrl + Enter.
FaLang translation system by Faboba
Електронна бібліотека «Exlibris»: історичні дослідження, мемуаристика, публіцистика, художня література Українська етнографія: книги, курси лекцій, статті й матеріали, мапи, фотоальбоми, веб-ресурси Правителі України: портрети, життєписи, матеріали Твори Адріана Кащенка: романтика козацьких часів Народна війна 1917-1932

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • GJFields - sefl-reproducing Joomla JForm fields

    gruz gruz 31.05.2018 17:53
    Hi. Need to investigate at the live web-site. Joomla 3.6 is old, maybe that's why. Please, email ...

    Read more...

     
  • GJFields - sefl-reproducing Joomla JForm fields

    Micky70 Micky70 31.05.2018 17:50
    Hello, I am using Windows 8 and Firefox 60.0.1 on my PC. My website "https://www.franchcountryinfos.fr" ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 29.03.2018 13:06
    Yes. You can construct the mail body as you wish using almost any field. Or even using PHP snippets ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    shawnhy shawnhy 29.03.2018 12:49
    I am glad to find your extension. It is awesome. Is it possible to include custom fields modification ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 27.03.2018 11:19
    Hi. NA when being in backend generates a frontend link via ajax axess to frontent. In Joomla it's ...

    Read more...