My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I just downloaded it again and did install it on another server i have.
This server runs Apache 2.0 & php 5.2.4 but I have exactly the same problem.
It only is not showing those two preview buttons, everything else is working fine.
Strange thing.......
Regards,
Rinker
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Ok, I have found the problem.
I've searched the log files and found some warnings.
After looking into the files and some testing I found out that the problem is the file: _default_preset.php
In this file you find: (where ###### = b u t t without the spaces )
This you will not find in any of the other preset files, only the upper part of this but not the if else.Code:if ($########_type == 1) { $languages['english'] = 'yes'; $languages['german'] = 'no'; $languages['spanish'] = 'no'; $languages['french'] = 'no'; $languages['italian'] = 'no'; $languages['dutch'] = 'no'; $languages['estonian'] = 'no'; $languages['norwegian'] = 'no'; $languages['finnish'] = 'no'; $languages['swedish'] = 'no'; $languages['czech'] = 'no'; $languages['slovak'] = 'no'; $languages['polish'] = 'no'; $languages['romanian'] = 'no'; $languages['russian'] = 'no'; $languages['catala'] = 'no'; } else { $languages['english'] = 'yes'; $languages['spanish'] = 'no'; // Ugly hack to unset Languages we don't have translations for unset($languages['german']); unset($languages['catala']); unset($languages['french']); unset($languages['italian']); unset($languages['dutch']); unset($languages['estonian']); unset($languages['norwegian']); unset($languages['finnish']); unset($languages['swedish']); unset($languages['czech']); unset($languages['slovak']); unset($languages['polish']); unset($languages['romanian']); unset($languages['russian']); }
I've made my own preset with the program , renamed it to _default_preset and deleted the old one.
After restarting everything all is now working fine, without any error or warnings.!
Thanks for this great program and the support here.
Regards,
Rinker
Originally you could only do the catatogue buttons, and then if you wanted to do the admin buttons you had to manually rename various files to do that, and then rename them again when you wanted to do the catalogue ones.
The "if" statement you are talking about was put there to stop errors happening when switching between admin and catalogue when we added that functionality, it unsets certain variables to stop them being carried through, which was causing errors, you won't see errors unless you turn on the error reporting (by default i think the mod suppresses errors), although i can't remember as i don't have the code in front of me, but under certain conditions there were errors being generated, however there are other fixes that were added which probably prevent this happening in most situations, I'll have a proper check later.
If it works for you without that code thats good although that code shouldn't effect the custom button at all, but I'd advise anyone else to only alter that code if you have an issue, with things not generating, as the current code has been tested by multiple users on multiple server layouts
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I understand, but even when I loaded one of the other two presets that came with it, it give me the same results, no preview buttons! And in those two other files theres also no if else, so once loaded the _default_presets file it never show the preview buttons (for me).
Well, found it very strange. Maybe my security level is set to high??
I have it all working now without the if else, Catalog and Admin buttons are both working correct!
Regards,
Rinker
BTW:
The warning was for the b u t t_type variable.
Variable not defined.
Regards,
Rinker
Tried adding these buttons to my local install before putting them on my live site.
Created the buttons I wanted.
Created a .ZIP file and downloaded to my PC.
Extracted the contents.
Placed the folder (buttons) into zencart/includes/templates/CUSTOM/
still have the same old buttons.
What am I missing?
Bookmarks