Hi everyone,
I have the array blues.. I've been staring at my screen all day.. trying to figure out how the best way to achieve this task, and it seems the more I think about it the more confused I am getting.. So I thought it was time to seek some advice.
Ok.. The goal:
A clothing page.. A jacket that is available in multiple colors.. An image that displays the jacket, a description, swatches showing the colors, and a gallery of thumbnails of images of the jacket in that particular color. Clicking on the thumbnails of the jacket, update the main image... clicking on the swatches change the thumbnails to the appropriate thumbnail images of that color.
...
So as of now, I am not able to access the images.. and I am wondering, is my whole way of thinking wrong?? can anyone please give me some insight on how I might better program this function?
So let me give an example of my "data":
$product[] = array (
'type' => 'jackets',
'amount' => '55.00',
'item_number' => '023',
'description' => array ('Solid black with white trim, the front has the Budokon symbol appearing in white on the left side, and kanji on the right. The back consists of the Budokon Logo in white.','Solid brown with white trim, the front has the Budokon symbol appearing in gold on the left side, and kanji on the right. The back consists of the Budokon Logo in gold.','Solid yellow with white trim, the front has the Budokon symbol appearing in black on the left side, and kanji on the right. The back consists of the Budokon Logo in black.','Solid gray with white trim, the front has the Budokon symbol appearing in black on the left side, and kanji on the right. The back consists of the Budokon Logo in red and black.'),
'description2' => 'Available in extra-small, medium, large, and extra-large. 100% cotton',
'images' => array (array('blackjacketfront','blackjacketback'),array('brownjacketfront','brownjacketback'),array('yellowjacketfront','yellowjacketback'),array('grayjacketfront','grayjacketback')),
'imagetype' => '.jpg',
'imagepath' => 'images/clothing/',
'thumbpath' => 'images/clothing/thumbnails',
'thumbtype' => 'thumb.jpg',
'w' => '183',
'h' => '274',
'wthumb' => '46',
'hthumb' => '69',
'title' => 'Jacket',
'swatchtype' => 'image',
'swatches' => array ('black|jacketswatchblack.jpg','chocolate|jacketswatchchocolate.jpg','yellow|jacketswatchyellow.jpg','gray|jacketswatchgray.jpg'),
'sizes' => array ('X-Small','Small','Medium','Large','X-Large')
);
ok, and so here is my actual clothing php/html:
And my php code can be viewed here:
http://collinatorstudios.com/www/store.txt
Thank you very much...
-Patrick