Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default jQuery Product Image Uploader

    Looking for a collaborator that is familiar with AJAX and Zen Cart;s image naming and matching structure:

    The idea is to allow shop owner to upload main image to directory and image name to database and all additional, _MED and _LRG images to directory only, maintaining Zen Cart stock image structure. Also allows shop owner to delete those images from directory all via the admin product info page.

    This is what I currently have:

    1.) Replaced stock image upload table with AJAX upload for Products Main Image:
    1.1) Select images from computer or drag and drop
    1.1) inserts image to images directory
    1.2) adds image directory/image name to database

    2.) Replaced stock image upload table with AJAX upload for Products Additional, _MED and _LRG Images:
    2.1) Select multiple images from computer or drag and drop multiple images
    2.1) inserts image to images directory

    Attachment 13551
    Attachment 13552

    Now this is done without any page reloads: when returning to edit product, a preview of the main image and additional, _MED and _LRG images appear.

    1.) Included a jQuery "Delete" button which removes image from image directory
    Attachment 13553

    Here is where I am having a little trouble:
    All image files get uploaded to correct directories.

    Only images in the images/ directory will appear in admin.

    But for the life of me can not get images uploaded in sub directories to return in admin.

    Anyone interested in taking a look?
    Last edited by rbarbour; 18 Dec 2013 at 03:56 AM.

  2. #2
    Join Date
    Sep 2008
    Posts
    210
    Plugin Contributions
    21

    Default Re: jQuery Product Image Uploader

    It looks very cool! Thank you!
    Our Site: http://zucando.com
    Marketing Plugins: Marketing Modules
    Free Response Templates: Responsive Templates

  3. #3
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: jQuery Product Image Uploader

    @rbarbour
    I'll take a look, is this on a github branch?
    also, not sure yet what upload library you are using, but have you looked into this one?
    https://github.com/blueimp/jQuery-File-Upload

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: jQuery Product Image Uploader

    Quote Originally Posted by niestudio View Post
    @rbarbour
    I'll take a look, is this on a github branch?
    also, not sure yet what upload library you are using, but have you looked into this one?
    https://github.com/blueimp/jQuery-File-Upload
    Not on github branch, I will pm you a download link if still interested. Most of which is hard coded.

    I did look at the blueimp plugin but I use a much simpler code

  5. #5
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: jQuery Product Image Uploader

    Quote Originally Posted by rbarbour View Post
    Not on github branch, I will pm you a download link if still interested. Most of which is hard coded.

    I did look at the blueimp plugin but I use a much simpler code
    Sure, I'll take a look

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: jQuery Product Image Uploader

    Some parts of what you are seeking may be found in the events manager files of Events Calendar v4 mod (http://www.zen-cart.com/downloads.php?do=file&id=521), in particular the parts that allow admin to upload, resize and delete images pertaining to a particular event.

    Hope this helps.

 

 

Similar Threads

  1. Image uploader option?
    By nickohorny in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jun 2011, 04:51 PM
  2. Additonal Image Uploader?
    By joyjoy in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 22 Oct 2010, 08:34 PM
  3. My product image uploader is broken
    By buxton1 in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2010, 05:37 PM
  4. Customer BULK Image Uploader
    By jmacdoug in forum General Questions
    Replies: 6
    Last Post: 26 Mar 2010, 06:34 PM
  5. image uploader
    By poosk in forum Customization from the Admin
    Replies: 3
    Last Post: 5 Jan 2008, 07:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR