Additional_Images.php File Help
During a moment of madness I misunderstood the method to remove the word LARGER IMAGE on the additional images and main image in the product listing. So I now have no additional product images on for instance this product ...
http://www.shop.heathers-simplyvinta...roducts_id=169
Is there any chance someone could paste there code here for me to compare to see what I have done wrong or point me in the right direction.
IU am using the Bask Black template and the file I altered is in ...
Includes/Modules/Bask_Black
I have looked in the downloaded template and this file does not exist so I`m not sure where it originally came from ??
Many thanks in advance and sorry for being a plonker and not backing the file up first, a moment of utter madness I`m afraid.
Re: Additional_Images.php File Help
If the file modified (and you know which specific file) was not in the original template package, then it would have been in the default files, which would be: includes/modules
Therefore, if you temporarily renamed the file you modified to have an extension other than .php such as .php_OLDtodaysdate then it would no longer be loaded and instead the default file in the above directory would be loaded. If that seems to fix your problem, then copy the file from above to the template directory and then have at it again in the template directory.
Re: Additional_Images.php File Help
Many thanks for your reply, I renamed the file .bak but it made no difference. I then copied the file from includes/modules over to the bask black folder and again it made no difference.
The original object was to remove the text LARGER IMAGE from under the product and also the additional images, I made the edit and this has whats happened :(
Re: Additional_Images.php File Help
Quote:
Originally Posted by
MCS_Computers
Many thanks for your reply, I renamed the file .bak but it made no difference. I then copied the file from includes/modules over to the bask black folder and again it made no difference.
The original object was to remove the text LARGER IMAGE from under the product and also the additional images, I made the edit and this has whats happened :(
Are you sure it wasn't the following file that was edited?
includes/templates/YOUR_TEMPLATE/templates/tpl_modules_main_product_image.php
Follow the same troubleshooting path, but if able, explain here what was done/successful.
Nevermind I was able to pull up the source code, and there is information to display an additional image, but none. On screen.m I don't have access to a css editor at the moment to see if maybe the additnionalimage class was hidden. Or if the images really are present or not
Re: Additional_Images.php File Help
Im not sure whats gone on, I have replaced these files along with replacing the English.php. I now have the word large image back but I do not have back the additional images, even if I put up a new product ??
Re: Additional_Images.php File Help
Quote:
Originally Posted by
MCS_Computers
Im not sure whats gone on, I have replaced these files along with replacing the English.php. I now have the word large image back but I do not have back the additional images, even if I put up a new product ??
If we understand your question correctly, for additional images to appear, you would need to upload seperate product images that end in _02, _03, etc, for example you have a filename of jade_cocktail_dress.jpg then you would have to upload a filename for the product as jade_cocktail_dress_02.jpg jade_cocktail_dress_03.jpg etc. in order for the additional images to show up for the product.
That's how we've done it in Zen Cart for years and it's always worked. :cool:
Re: Additional_Images.php File Help
Quote:
Originally Posted by
MCS_Computers
Im not sure whats gone on, I have replaced these files along with replacing the English.php. I now have the word large image back but I do not have back the additional images, even if I put up a new product ??
Only thing is that when viewing the page source of the product identified in the first post, there is data showing in the page source that there should be images present...
That said, not entirely sure what all is going on, first it appears that Image Handler (version 4?) has been installed, at least in part (bmz_cache is being used); however, I thought the new version of that (available on github) removed the lengthy filenames in place of a "standard" filenaming convention.
But there are other jscript files that "used" to be loaded (comparing the source code of a ZC 1.5.1 site that has IH4 installed).
Then there does not appear to be the loading of the jquery script on the page like is done on a default installation of ZC 1.5.4.
I'm not sure off hand how much all of that plays into the issue. Is the same issue seen when temporarily using the default template? There is code provided on the page to display the image(s), but it is not coming out on the site... I didn't see any immediate CSS that prevents it. Doing a validation on the site, it looks like where the ampersand has been used in category names that it is causing a validation error, which I can't say specifically contributes to this issue but could be something that probably should be rectified using & in place of simply &. (HTML tags used in case editor modifies the displayed result.)
Re: Additional_Images.php File Help
Just to clarify the additional images are all named correctly and worked fine for ages prior to be trying to get rid of the word LARGER IMAGE from the main category listing image and the additional images.
Since I altered the additional image PHP file it has not worked, I replaced that file with a clean one and still no joy. I found reference to the LARGER IMAGE in the English.php file so I put a clean one on too. There are still no additional images being shown even if I create a test product ??
Im baffled and with a very basic knowledge getting frustrated.
I will now change to another template as suggested to see if the issue is there too.
Re: Additional_Images.php File Help
Okay changed the theme to default and it made no difference :(
Re: Additional_Images.php File Help
Do you have the ability to compare files? (Winmerge/beyond compare are two "popular" applicationsy
There is something that is different from a default install that is causing this. As said, code is on. The page to display the additional images, but something is not in place to do so. Or there is something off. Does your host offer restoration to previous backups that they routinely make?
Re: Additional_Images.php File Help
For what it's worth, I loaded the page without javascript enabled and the additional images appeared. This indicates to me that there are javascript files missing. Would suggest lookin/comparing files in the includes/templates/template_default/jscript and then the same for includes/templates/YOUR_TEMPLATE/jscript
Re: Additional_Images.php File Help
They do not make random backups, looked through CPANEL and FTP and there are no backups available. Might have to try to re-upload ZenCart to see if that fixes it.
Re: Additional_Images.php File Help
Quote:
Originally Posted by
MCS_Computers
They do not make random backups, looked through CPANEL and FTP and there are no backups available. Might have to try to re-upload ZenCart to see if that fixes it.
Yikes!!! No... Not to fix this issue... Just load the files that are in the directories suggested above... F the entire store is overwritten, you wll lose all the other modifications that have been made to the core files...
Re: Additional_Images.php File Help
Sorry I did not realise that this topic had spanned to a second page, will try above and let you know the results.
Re: Additional_Images.php File Help
Quote:
Originally Posted by
MCS_Computers
Sorry I did not realise that this topic had spanned to a second page, will try above and let you know the results.
That's oky, glad you wrote about the possible next action, before doing it. :) besides that, would have suggested making a full backup of the files before dong such a wipe/reupload... But that really should be a last step for a completely irrecoverable situation.
Re: Additional_Images.php File Help
Okay compared 2 sites running virtually identical and found that the jscript folder in the default theme was missing files, I copied the missing files to the jscript folder.
I then went into the Bask Black folder and there is no jscript folder there not even on the other site so maybe that theme gets it from the default theme if that's possible.
Either way it still is not showing the images.
I do appreciate everyones help but do not know where to go now :(
Re: Additional_Images.php File Help
So the site is currently in maintenance mode (don't see why as the only issue is that additional images are not displayed, not like sales can't be made),. Do things get better if IH4 is temporarily disabled? And again, if the default template is temporarily tested?
Cache cleared, etc. ?
Re: Additional_Images.php File Help
Sorry buddy did not realise that it was in maintenance mode.
I really appreciate your help in trying to get this resolved so going on your advice here is what I did.
I went into Zencarts admin panel and I removed IH completely, then before I went to change the theme to default I checked the product listing and its back to how it should be. During the uninstall of IH it did say it had backed up all the original files and by removing it has replaced them, IH has been installed for ages and has worked fine so I`m still certain that it is something I did.
MANY MANY MANY THANKS :)
But could you please advise me now how to CORRECTLY remove the word LARGER IMAGE from under the main listing photo and all the additional images please because searching through the DTK the only reference is in the ENGLISH.PHP file in includes/languages folder and also in includes/languages/bask_black folder. But before I do any edits would like your expertise.
Thanks in advance.
Re: Additional_Images.php File Help
Scrap That
Barvely backed up the English.php file and then removed the word LARGER IMAGE and its worked, simple as that, not sure why I went to additional_images.php in the first place LOL
Thanks once again for all your help, your a star !!
Re: Additional_Images.php File Help
No problem, hopefully it was the right side of the define where the words larger image were removed from between the single quotes leaving a pair of single quotes.
As for IH4, it certainly is acceptable to reinstall it following the directions of the plugin. My thought is that applicable files (probably jscript related) were removed along with the others that had "gone missing".
Glad you were able to get back to the status desired. Thing is, if you didn't put it in maintenance mode, should be asking yourself (and those that have access) who did? Ideally this was all just an accident, but you want to be sure that there is nothing gone afowl.