Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'm wanting my product images to be in a subdirectory in the images folder like this: catalog/images/products

 

I have looked at a couple of addons but I can't seem to get them to work because I'm using Ultrapics. Does anyone know how I can have my product images uploading into catalog/images/products while using Ultrapics?

 

Any help would be greatly appreciated!

Posted

...hi, if i understad you correctly you can use this:

 

$products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_sm_3, p.products_image_lrg, p.products_image_xl_1, p.products_image_xl_2, p.products_image_xl_3, p.products_image_xl_4, p.products_image_xl_5, p.products_image_xl_6 from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");


DIR_WS_IMAGES . $products['products_name'] . '/' . $products['products_image_sm_3']

 

Now you have to put the images (e.g. ..sm_3) in the folder named like your product.

 

If you want it automatically with upload in the admin you have to set the folder in the admin too...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...