Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Product Images (without uploading)

product images images uploading images server images

3 replies to this topic

#1 jaymz1977

  • Community Member
  • 2 posts
  • Real Name:James S.

Posted 10 February 2012, 19:22

Looking for HELP! (w00t)

I maintain a OSC site and want to implement a new idea regarding images when a new product is created. I use OPI 2.0 but find cross browser support issues and since I don't add products, this has become an issue.

I would like when adding a new product, the image field is automatically populated with an image name, which so happens to be the product UPC. I take all the product images and store them on the server directly when they are taken and want to eliminate the process of browsing for the image when adding new products.

Any thoughts?

Thanks!

James

#2 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 10 February 2012, 20:36

@jaymz1977

You can either upload the image during the product creation process, or use Easy Populate to populate the database fields directly.




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

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 jaymz1977

  • Community Member
  • 2 posts
  • Real Name:James S.

Posted 11 February 2012, 00:56

View PostDunWeb, on 10 February 2012, 20:36, said:

@jaymz1977

You can either upload the image during the product creation process, or use Easy Populate to populate the database fields directly.




Chris

Thanks Chris for the fast reply.

I guess I should have explained better. I take the photos, put them on the server named, [SKU#].jpg and another employee adds the product via admin. I was hoping to skip the photos upload process and have the db table auto populated with the [SKU#].jpg

Hoping to simplify things.

Appriciate the help.

James

#4 burt

  • Community Sponsor
  • 6,975 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 12 February 2012, 22:50

Amend categories to rip out the image uploading stuff.
Amend same file to insert name of file based on product model (aka SKU).



$image_to_use = tep_db_prepare_input($HTTP_POST_VARS['products_model']);
$sql_data_array['products_image'] = $image_to_use . '.jpg';

Something like that.
The Dirty Little Secrets that no osCommerce template sellers want you to know...revealed...

Support is commercially available. The question is whether you value your business
highly enough to spend money on it.

For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/