Magento Forum

Embedding PHP into product page, can it be done? 
 
ashleyward
Jr. Member
 
Total Posts:  9
Joined:  2008-03-21
 

Joined:  2008-03-21

OK,

I’ve written a small piece of code in PHP, which allows a user to upload an image, then it downsizes the image size and displays the small image in the browser window, the orginal image is posted to a folder on the server.

I’ve attached the code below (if you want to trial it, create a folder called “images” in the root folder where the images will be stored....

So, this on the way to creating the app which I need:

As I mentioned before I am hoping to create a T-shirt design application, so this app, should sit in the product window (in magento) and the small image which is generated should sit on top of the existing product image (of a tshirt) which will be stored in the magento folder on the server.

Can any one help me make this a reality?

Thanks so much

Ashley

File Attachments
imageresize.php  (File Size: 3KB - Downloads: 43)
 
Magento Community Magento Community
Magento Community
Magento Community
 
alistek
Sr. Member
 
Total Posts:  293
Joined:  2008-04-02
Normal, IL
 

I would think this wouldn’t be a problem, you just have to do it on the template file.  That takes PHP no problem.

-Adam

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top