Wednesday, June 23, 2010

CSVI virtuemart image export - remove HTTPS

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);


Stumble Upon CodePyro

1 comment:

Anonymous said...

The very first query they'll request on their own is actually, "have all of us provided back-colored rolex replica sale previously. inch When the solution is actually "no, inch they may rolex replica uk ahead. Obviously, it's possible to retort along with the truth that previously there have been absolutely no especially great methods for durably layer steel cartier replica sale within dark or even additional colours. PVD-coating along with other methods tend to be fairly tag heuer replica. Therefore provided these types of brand new systems, will Rolex possess a great motivation to provide replica watches sale. Obviously the solution is determined by whether Rolex can perform this "differently, inch in an exceedingly top quality as well as unique method. The most crucial concern in order to replica watches is actually they can happen in order to merely end up being following a pattern arranged through businesses they don't on their own authorize.

Post a Comment