Lost password?    Lost username?    Create an account
OverviewDownloadsForumSupport
CSV Improved

CSV Improved

  • Free upgrades for 1 year
  • Extended replacement rules
  • Advanced XML support
  • Multiple component support
  • Automatic import/export
  • Advanced import/export features
  • Forum access for 1 year
  • Forum access for 10 days
Welcome, Guest
Username: Password: Remember me
Looking for a useful answer?

Read this first and make sure you checked all steps: www.csvimproved.com/frequently-asked-questions/635-troubleshooting-import-errors

Don't just say it doesn't work but describe in detail what is happening and add the following information:
* VirtueMart version
* CSVI version (Latest is not a version number)
* Sample of the file being imported
* Collected debug information

Without this information you won't get a useful answer. If no debug log is attached, you will get a request to post it.

Where to get the debug information?

A tutorial (www.csvimproved.com/frequently-asked-questions/390-how-to-collect-debug-information) has been written to help you collect your debug information. For CSVI 3, there is a video available (www.csvimproved.com/downloads/file/18-collect-debug-information)

TOPIC: Thumbnails for additional pictures and path for it

Thumbnails for additional pictures and path for it 1 year 2 weeks ago #28125

  • MicroDiP
  • MicroDiP's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 2
  • Karma: 0
Hello.

In fact I have two questions:

1. What if I want to create thumbnails for additional files (pictures) myself (not automatically) ? How can I feed them to CSVI and Virtuemart ?

2. Is there some ways for creating my own path for these thumbnails ?
For example I want to put these thumbnails to:
\components\com_virtuemart\shop_image\product\resized\my_category\products\image_thumb.png ...

I mean is there any ways to do it without hacking ?

Thanks in advance.
Last Edit: 1 year 2 weeks ago by MicroDiP.
The administrator has disabled public write access.

Re: Thumbnails for additional pictures and path for it 1 year 2 weeks ago #28127

  • MicroDiP
  • MicroDiP's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 2
  • Karma: 0
I've done... Not without hacking.

product_files_file_name - for Flypage is the thumbnail link;
product_files_file_url - for Flypage is the big_picture link;

For correct display of Thumbnails pictures on the Flypage the thumbnail link (product_files_file_name) must look like: resized/your_category_1/your_category_2/image_thumb.jpg

And for correct display of big_picture on the Flypage the big_picture link (product_files_file_url) must look like: http://www.your_website.com/components/com_virtuemart/shop_image/product/your_category_1/your_category_2/your_category_N/image.jpg

But CSVI make like this:
if you will write in CSV file for product_files_file_name: resized/your_category_1/your_category_2/image_thumb.jpg you will get in database: component/com_virtuemart/shop_image/product/resized/your_category_1/your_category_2/image_thumb.jpg

And if you will write in CSV file for product_files_file_url: http://www.your_website.com/components/com_virtuemart/shop_image/product/your_category_1/your_category_2/your_category_N/image.jpg you will get in database: http://www.your_website.com/component/com_virtuemart/shop_image/product/resized/your_category_1/your_category_2/image_thumb.jpg... In other words you will get: http://www.your_website.com + contents of product_files_file_name

I made two changes in administrator/components/com_csvimproved/models/productfilesimport.php:

Line 199:
$this->file_name = str_replace($find, $replace, $template->file_location_product_images.'/'.$file_details['clean_file_name_original']);
change to:
$this->file_name = str_replace($find, $replace, /*$template->file_location_product_images.*/'/'.$file_details['clean_file_name_original']);
(comment one variable)

Line 235:
$this->file_url = JURI::root().$this->file_name;
delete this line or comment it.
Last Edit: 1 year 2 weeks ago by MicroDiP.
The administrator has disabled public write access.
The following user(s) said Thank You: exabytemx

Re: Thumbnails for additional pictures and path for it 1 year 2 weeks ago #28133

  • MicroDiP
  • MicroDiP's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 2
  • Karma: 0
MicroDiP wrote:
Line 235:
$this->file_url = JURI::root().$this->file_name;
delete this line or comment it.

A little bit wrong. Don't need delete or comment. Just like this:
$this->file_url = JURI::root().$this->file_url;
Meanwhile the record in CSV file must begin from components/com_virtuemart/.....
The administrator has disabled public write access.
The following user(s) said Thank You: rolandd
Moderators: rolandd
Time to create page: 1.073 seconds
Powered by Kunena Forum

TESTIMONIAL

CSVI Pro is excellent extension
5 stars
2012-11-19
CSVI Pro is excellent extension, the best support I have ever seen. I highly recommend this extension Pro is well worth the money!

Best wishes for developers...
Samir

STAY INFORMED


Stay informed with the CSVI newsletter.