Jump to content
ce7

product image

Recommended Posts

hi,

have CE1070 version

try many different ways to change the product image path and name, but don't understand why not working.
here is one of the code:

echo tep_draw_input_field('image_subdirectory', $image_subdirectory) ;
if ($products_image->parse() && $products_image->save() && $image_subdirectory)
tep_db_query("update products set products_image = '" . $image_subdirectory."' where products_id = '" . (int)$products_id . "'");


it is just let the product_image became ' '

another question is how to integrate the code below for  imgFileName + "browse" using <iframe> to call filebrowser?

              

 echo tep_draw_input_field('products_image', '', 'id="pImg"', 'file', null, 'class="form-control-input"');
                echo '<label class="custom-file-label" for="pImg">' . $pInfo->products_image . '</label>';


 

any help or suggetion is appreciated, thanks!  Lyn

 

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

×