marv085 Posted August 25, 2015 Share Posted August 25, 2015 (edited) Hello, i try to use a picture from customer upload in a contentbox on the product page. Can somebody help me to get the path of the uploaded picture? I found the img src for the small preview in the product.tpl <img src="{$pic_dir}{$pictures.$key}_small" alt="" /> How would it be possible to get these variables in the contentbox to show the original uploadpicture there. Woul be nice if somebody could help! THX Edited August 25, 2015 by marv085 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 27, 2015 Share Posted August 27, 2015 okay, please let me know what is "contentbox" ? it's some unknow feature at the moment for me you use default tool to upload pictures or some other feature? Link to comment Share on other sites More sharing options...
marv085 Posted August 27, 2015 Author Share Posted August 27, 2015 Hello, contenbox is a free module. http://contentbox.org/ Yes i use the standard/default tool to upload picture on product site. Link to comment Share on other sites More sharing options...
marv085 Posted August 28, 2015 Author Share Posted August 28, 2015 Has nobody an idea? I think i only need to implement the vars for the upload data (&picdir) for the contenbox, but i don't know where. Would be realy great if somebody could help me. Link to comment Share on other sites More sharing options...
bretweb Posted September 1, 2015 Share Posted September 1, 2015 Hello when you upload the picture into your content box are you using editor or sample text ? may be more simple if you use editor to find your file .... I saw mine that images goes into file and url looks like this: wwww.mydomain.com/img/cms/my_image.jpg hope this help Link to comment Share on other sites More sharing options...
marv085 Posted September 1, 2015 Author Share Posted September 1, 2015 Hello bretweb, thank you for answering! No i use the standard upload for customized products on the product page. The files are saved with a number in the upload direktory. The link (filenumber) to the file is saved in the database. So what i need is the correct filename of the current uplaod file to show it in the contentbox. Link to comment Share on other sites More sharing options...
marv085 Posted September 4, 2015 Author Share Posted September 4, 2015 I think i have to implement the function to get the datafilename from data base, like it's done on the product site with the small preview of upload pictures. I have already implemented some javascripts in the contentbox to edit some pictures there and i know where the uploaded files are saved but i'm not shure where i get the code for the datafilename from the database. Has somebody done something similar? thx in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now