We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / Setting Up Categories, Products, Attributes / Adding files and extra images to product pages (how to?)

Adding files and extra images to product pages (how to?)

Locked

Started by keeping on 15 Jan 2008, 3:54 PM · Views: 2,684

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
15 Jan 2008, 3:54 PM
#1
keeping avatar

keeping

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Adding files and extra images to product pages (how to?)

I need to know how to add extra images to product pages--and also where/how those images will be displayed.

Also, how can I add files (such as .pdf) to product pages? I know I can add links in the product description, but is there a better and handier way?

Thank you!

Currently using version 1.3.9d

27 Dec 2008, 9:26 AM
#3
jmeca avatar

jmeca

New Zenner

Join Date:
Nov 2006
Location:
Sapin
Posts:
44
Plugin Contributions:
0

Re: Adding files and extra images to product pages (how to?)

Hello: Forget that, if you want to add extra images dwonload and install Image Hanledr o Image swapper is more useful and better for images.

For Pdf's i still waiting, because i install "product extra description" but i don't kownk how it works and i don't find any help or support.

Regards

8 Feb 2009, 6:38 AM
#4
sputnik77 avatar

sputnik77

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

Re: Adding files and extra images to product pages (how to?)

Did you ever get Product Extra Description figured out?

18 Feb 2009, 6:30 AM
#5
scarpine avatar

scarpine

New Zenner

Join Date:
Jan 2009
Location:
WA
Posts:
18
Plugin Contributions:
0

Re: Adding files and extra images to product pages (how to?)

Thanks for the recommendation of "Image Handler". I've been struggling with all aspects of image management due to the sheer amount of images I have to deal with. Hopefully this will make it more manageable to work with images.

1 Mar 2009, 12:12 AM
#6
xasidesigns avatar

xasidesigns

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: Adding files and extra images to product pages (how to?)

I created this script to scan a folder of images and output the EasyPopulate EP File. There may be an extra linefeed at the end of the file.

The script checks for the existance of an underscore "_" in the filename and skips those files in the Zen Cart extra images model.

URL Parameters are:
folder= folder on server to images
category= category name in ZenCart to add them to.

importer.php?folder=/store/images/jewelry&category=Jewelry

Here is the script:

<? $sFolder = $_SERVER['DOCUMENT_ROOT'].$_REQUEST['folder']; $sImagePath = str_replace("/store/images/", "", $_REQUEST['folder']); $arFields = array( "v_products_model" => 0, "v_products_image" => 0, "v_products_name_1" => 0, "v_categories_name_1" => $_REQUEST['category'], "v_products_description_1" => 'Products Description', "v_products_url_1" => 0, "v_specials_price" => 0, "v_specials_date_avail" => 0, "v_specials_expires_date" => 0, "v_products_price" => 0, "v_products_weight" => 0, "v_date_avail" => 0, "v_date_added" => 0, "v_products_quantity" => 1, "v_manufacturers_name" => 0, "v_tax_class_title" => 'Taxable Goods', "v_status" => 1, "EOREOR" => 0); $arProducts = array(); $strEcho = ''; foreach($arFields as $key => $value) $strEcho .= "$key\t"; echo(substr($strEcho,0,strlen($strEcho) - 1)."\n"); $imageNumber = 1; $rootDir = opendir($sFolder); while (false !== ($filename = readdir($rootDir))) { if(strlen($filename) > 2) { if(strpos($filename, "_") == 0) { $arFields["v_products_model"] = $_REQUEST["category"].$imageNumber; $arFields["v_products_image"] = $sImagePath .'/'. $filename; $arFields["v_products_name_1"] = str_replace("_", " ", substr($filename, 0, strlen($filename) - 4)); $arFields["v_specials_price"] = 30; $strEcho = ''; foreach($arFields as $key => $value) $strEcho .= "$value\t"; echo($strEcho."EOREOR\n"); $imageNumber += 1; } } } ?>