Jump to content

[SOLVED] importing Contribution .sql files to OSCommerce site


darkan9el

Recommended Posts

Hi all, I'm just learning about php and sql, I have been asked if its possible to enable multiple images for a product, i.e. 3-4 images per product. I have found you can do this but the web shop they are using; oscommerce, only caters for one image per product and in order to add more one has to add things called contributions or contribs for short.

 

The contribs usually consist of php files that you either use to replace the whole file with, effectively overwriting the original, or you just move the code you require to the original file, the latter is normally done if the original file already has modifications made to it.

 

In included in some of the contribs is an .sql file and the creator of the contrib instructs you to import the .sql to the database. This is fine but they tend to assume you already know how to do this. I have been reading and think i need a program called 'phpmyadmin' to import the .sql file but i'm unsure how to go about doing that.

 

The contrib I'm thinking of using is here:

http://www.oscommerce.com/community/contributions,1642/category,all/search,MoPics

 

Cheers Lee

Thanks for the reply...Ok lets dumb it down a tad...  :-\

 

what is a CLI and how would I use it.

 

This is the first level folder structure for my server:

 

/

+ - .cpaddons

+ - .cpanel

+ - .htpasswds

+ - .spamassassin

+ - .sqmaildata

+ - .etc

+ - .logs

+ - .mail

+ - .public_ftp

+ - .public_html

+ - .tmp

+ - .www

 

So what now?

 

Ok after a bit of reading I found that the server is using cpanel, so i went to the cpanel website and found out how to log in, once i was in cpanel the fog lifted and everything started to make sense, i could see myphpadmin etc.

 

I now have the extra images contrib installed its a bit clumsy but its better than none.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.