Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: php for no image, if image is not present

  1. #11
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    Whoops, I forgot to wrap <?php and ?> around the code. Try this:
    PHP Code:
    <?php print "File: ".$this->image_category_path.$category->category_image?>
    - Josh

  2. #12
    Join Date
    Aug 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    It printed:

    (for the image present)
    File: website url here.../components/com_jshopping/files/img_categories89f8a4e11d4f13feb7bd01d0f27763c4.jpg[/url]

    (for no image present)
    File: website url here.../components/com_jshopping/files/img_categories[/url]

  3. #13
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    Go to: (website url here)/components/com_jshopping/files/img_categories89f8a4e11d4f13feb7bd01d0f27763c4.jpg

    Does it exist?
    - Josh

  4. #14
    Join Date
    Aug 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    No, it doesn't exist. Oh well. Maybe I should just accept the ugly "no image" until we have enough images to fill some of the spaces. Thank you for your help! You have been extremely helpful and patient. This system is interesting indeed. Oh well, it's free and you pay for what you get.

  5. #15
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    If it doesn't exist, then it is a problem with Joomcart/your file system. Maybe there is a setting in Joomcart for the directory for images? Maybe check if the folders exist?
    - Josh

  6. #16
    Join Date
    Aug 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    The image is visible on the page and when clicked it is linked to it's respective product page. It just doesn't exist as a stand-alone URL. I suppose because it's temporary? When I added the code it removed all of them for whatever reason. I guess the coding for this is far more complicated (or bizarre) than I thought. Oh well, some things should be left alone I suppose. Thanks again!

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
  •