Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I have multiple pics for one product?


deedeedum

Recommended Posts

Posted
you can install the mopics contribution

 

 

I am trying to install mopics right now, and it says to:

 

"Import dynamic_mopics.sql into the database"

 

What does that mean and how do I go about importing it into the database?

 

Thanks a lot for your help.

 

Frank

Posted

use phpmyadmin. you should probably search for a tutorial on how to use phpmyadmin, trust me, it will be very much worth your while

Posted
use phpmyadmin.  you should probably search for a tutorial on how to use phpmyadmin, trust me, it will be very much worth your while

 

 

I figured out how to import it, but something is wrong. The following is the information inside the dyname_mopics.sql file:

 

INSERT INTO configuration_group VALUES (99, 'Dynamic MoPics', 'The options which configure Dynamic MoPics.', 99, 1);

INSERT INTO configuration VALUES ('', 'Big Images Directory', 'IN_IMAGE_BIGIMAGES', 'images_big/', 'The directory inside catalog/ images where your big images are stored.', 99, 1, NULL, NOW(), NULL, NULL);

INSERT INTO configuration VALUES ('', 'Thumbnail Images Directory', 'IN_IMAGE_THUMBS', 'thumbs/', 'The directory inside catalog/ images where you extra image thumbs are stored.', 99, 2, NULL, NOW(), NULL, NULL);

INSERT INTO configuration VALUES ('', 'Main Thumbnail In Thumb Directory', 'MAIN_THUMB_IN_SUBDIR', 'false', 'If you store your main thumb in the thumbnail directory set this true. If it is in the main image dir, set it false.', 99, 3, NULL, NOW(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration VALUES ('', 'Number of Pics per Row', 'THUMBS_PER_ROW', '4', 'How Many images to show per row.', 99, 4, NULL, NOW(), NULL, NULL);

INSERT INTO configuration VALUES ('', 'Mo Pics Extension', 'MORE_PICS_EXT', '_pic', 'The addition to your image name for the mopics', 99, 5, NULL, NOW(), NULL, NULL);

INSERT INTO configuration VALUES ('', 'Main Big Pic Extension', 'BIG_PIC_EXT', '', 'This is if you name your main big image like IMAGE_big.jpg, you would put <b>_big</b> here. Otherwise leave it blank', 99, 6, NULL, NOW(), NULL, NULL);

INSERT INTO configuration VALUES ('', 'Mo Pics Thumbnail Image Type', 'THUMB_IMAGE_TYPE', 'jpg', 'The file type of the mopic thumbnails', 99, 7, NULL, NOW(), NULL, 'tep_cfg_select_option(array(\'jpg\', \'gif\', \'png\', \'bmp\'),');

INSERT INTO configuration VALUES ('', 'Mo Pics Big Image Type', 'BIG_IMAGE_TYPE', 'jpg', 'The file type of the mopic big images', 99, 8, NULL, NOW(), NULL, 'tep_cfg_select_option(array(\'jpg\', \'gif\', \'png\', \'bmp\'),');

 

 

Then this is the error message I am getting:

 

SQL-query:

 

INSERT INTO configuration_group

VALUES ( 99, 'Dynamic MoPics', 'The options which configure Dynamic MoPics.', 99, 1 )

 

MySQL said:

 

#1062 - Duplicate entry '99' for key 1

 

 

Any ideas?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...