Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Plugin Contributions
    0

    Default Cannot Upload Attribute Images

    I've been using ZenCart for quit a while now but recently I found I cannot upload attribute swatch images.

    I'm hoping someone out there has seen this difficulty and solved it. I am using ZC 1.3.8a. I have radio button attributes set up on a product. Everything works and displays great except the image.

    I select to edit the particular option from the Attributes Controller page and am taken to the option edit page where I am presented with a text box called Attributes Image Swatch where I can browse for the image file located on my computer to be uploaded to the attributes folder. I select the image and press UPDATE (the overwrite file option is set to yes even though there is no image in the directory). The process seems to complete as I get no error notifications from ZenCart or errors generated by my server. I am back at the Attributes Controller page for that product but see no indication in the list of an image associated with that option nor do I find a displayed image when I visit the website. Looking in the attributes folder there is no image file. It has not been uploaded.

    The Option Names configuration is set to: Attribute Images per Row: 1, Attribute Style for Radio Buttons/Checkbox: 1

    I've set permissions for every folder in the path to 777 just in case I missed something while testing the upload

    I can upload images with my FTP client fine. I've tried to just add the path manually after FTPing the file. I've tried every possible relative and absolute path to the file without it displaying. I've even tried using the URL. Still no dice.

    Now this may be related (I'm sure it is) but I cannot upload product images either. I used to be able to do this before 1.3.8a but not anymore. At least I can FTP the images and set the path from the add product page and it works.

    Has anyone seen this type of issue? I'm pretty sure it's not a permissions issue especially since I get no error or notification on either ZC or my server. Here is the server information:

    Operating system - Linux
    Apache version - 2.0.63
    PERL version - 5.8.8
    PHP version - 5.2.5 with Zend Optimizer 3.3.0
    MySQL version - 4.1.22

    Anything there jump out at anyone as having compatibility issues?

    Hoping for a miracle, thanks.

  2. #2
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cannot Upload Attribute Images

    I am having the same problem. I am trying to add images to some option valuse with radio buttons but the images are not showing up. I think it is uploading the images but they are just not showing up? Are they supposed to show up beside the radio buttons? If so, they are not.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cannot Upload Attribute Images

    Switch to the Classic Template ... do they show?

    If so, then your template has the images disabled and may be commented out in the template or otherwise has been removed ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cannot Upload Attribute Images

    Quote Originally Posted by Ajeh View Post
    Switch to the Classic Template ... do they show?

    If so, then your template has the images disabled and may be commented out in the template or otherwise has been removed ...
    I tried switching to classic template that did not help, if it was commented out in the template, where would that be and how could I fix that?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cannot Upload Attribute Images

    The images are collected in the module:
    /includes/modules/attributes.php

    PHP Code:
                      // collect attribute image if it exists and to be drawn in table below
                      
    if ($products_options_names->fields['products_options_images_style'] == '0' or ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == '0') ) {
                        if (
    $products_options->fields['attributes_image'] != '') {
                          
    $tmp_attributes_image_row++;

                          
    //              if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
                          
    if ($tmp_attributes_image_row $products_options_names->fields['products_options_images_per_row']) {
                            
    $tmp_attributes_image .= '<br class="clearBoth" />' "\n";
                            
    $tmp_attributes_image_row 1;
                          }

                          
    $tmp_attributes_image .= '<div class="attribImg">' zen_image(DIR_WS_IMAGES $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' '<br />' $products_options->fields['products_options_values_name'] : '') . '</div>' "\n";
                        }
                      } 
    then further down the file they are saved to:
    $options_attributes_image[]

    then ... that is displayed via:
    /includes/templates/template_default/tpl_modules_attributes.php
    -- or via your template override --
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cannot Upload Attribute Images

    then ... that is displayed via:
    /includes/templates/template_default/tpl_modules_attributes.php
    -- or via your template override --
    Everything looked good until I got to this part. I did find tp_modules_attributes.php in template_default/template/ is that where it should be located?

 

 

Similar Threads

  1. Cannot upload attribute images
    By golfador in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Sep 2011, 07:35 PM
  2. cannot upload images
    By socalstyles in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 4 Apr 2009, 12:46 AM
  3. cannot upload images
    By tenerifetom in forum General Questions
    Replies: 1
    Last Post: 8 Mar 2008, 05:19 PM
  4. I cannot upload my images
    By jrod31 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Nov 2007, 05:22 PM
  5. I cannot upload any images to the server
    By jungie_cg in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 27 Jul 2007, 07:38 AM

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