When exporting products in virtuemart using csvi and using the picture_url field the export will have https for all the image urls.
open up
administrator\components\com_csvimproved\models\productexport.php
do a quick search for "picture_url". it should be around like 443 (interesting considering http is 443).
Anyway here is the line to swap out https
if (substr($picture_url, 0, 5) == 'https') $picture_url = 'http'.substr($picture_url, 5);
place it just after 448, likea so...
447:if (substr($record->product_full_image, 0, 4) == 'http') $picture_url = $record->product_full_image;
else $picture_url = 448:JURI::root().'components/com_virtuemart/shop_image/product/'.$record->product_full_image;
if (substr($picture_url, 0, 5) == 'https') $picture_url = 'http'.substr($picture_url, 5);

0 comments:
Post a Comment