Jump to content
Sign in to follow this  
prbhasson

Adding images to my site

Recommended Posts

Hello,

 

All my images from my supplier come in csv format but I have one problem. The images are listed like this: hxxp://www.2buypcs.com/mmPCSNEW/Images/100x100/SNN5836.gif.

 

Is there a way to use these in osc or do I have to remove all the information before SNN5836.gif to get them to show up in osc? There has to be an easier way than manually removing as I have thousands of images to load.

 

Any help is appreciated!!!!

 

Thanks

Share this post


Link to post
Share on other sites

Randy,

 

Normally you would load each image as you create the product. However, you could use Easy Populate to upload product information in Bulk.

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

Hello,

 

Thanks Chris. I do use easy populate. I guess you don't understand my question.

 

when I get the picture file from my supplier it has the full URL link. When I upload that the

 

pictures do not show up in my store. If I remove the url and leave just the image name they show up. This is a tedious task

when you have thousands of products. Is there another way to do this?

 

Thanks

Share this post


Link to post
Share on other sites

Hi Randy,

 

No, I did not understand exactly what you are saying. That does pose a problem and unfortunately I don't know of any contribution that would strip the URL from the image name.

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

All my images from my supplier come in csv format but I have one problem. The images are listed like this: hxxp://www.2buypcs.com/mmPCSNEW/Images/100x100/SNN5836.gif.

 

If the format is ALWAYS like this you could try around with "explode" or something like this, to create a function to get the right image name. You can read about here

Share this post


Link to post
Share on other sites

If you're on a Windowz platform I'm fairly certain I could write a program (.EXE) that would strip the URL from the CSV file for you.

 

And it shouldn't take very long to contrive.

 

A few hours maybe.


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

If you're on a Windowz platform I'm fairly certain I could write a program (.EXE) that would strip the URL from the CSV file for you.

 

And it shouldn't take very long to contrive.

 

A few hours maybe.

 

 

Thanks for the offer. I have resolved the problem though. I contacted my supplier and they were able to get me a zip file with all their images.

Share this post


Link to post
Share on other sites

Within easypoplate.php you could strip off the prefix.

 

Say the value hxxp://www.2buypcs.com/mmPCSNEW/Images/100x100/SNN5836.gif is in $image

 

$img_name = csv_explode('/', $image);
$image = $items[6]

 

The only problem is if the supplier starts messing about with the depth of the directory structure.

 

You could adapt this ( straight from php.com )

 

<?php
$path = "/home/httpd/html/index.php";
$file = basename($path);         // $file is set to "index.php"
?>

 

So much quicker than a windows exe.

 

HTH

 

G


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×