Guest Posted April 21, 2009 Posted April 21, 2009 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! Quote
rusky Posted April 22, 2009 Posted April 22, 2009 ...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... Quote
Recommended Posts
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.