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

  • MVC Override - change joomla extensions behaviour without changing core files

    gruz gruz 12.11.2018 21:01
    Hi. It was not working for the filter_tags.xml Try the latest RC ...

    Read more...

     
  • MVC Override - change joomla extensions behaviour without changing core files

    rogerco rogerco 12.11.2018 17:18
    Hi, Having difficulty seeing how to override an XML form file on the admin site. Trying to replace ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    ferry ferry 08.11.2018 01:12
    Helo, Sorry for late response. I reinstalled the phocagallery component (uninstall and then reinstall ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    gruz gruz 06.11.2018 05:45
    Hi. The module was developed 2 years ago for a project, which is dead now. It seems you are the only ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    ferry ferry 06.11.2018 05:37
    Hi, I've installed this module, but the gallery didn't showup. I activated the debug, but can not ...

    Read more...