No problem Anne, you help a lot.
How could i create a new sidebox for testimonials of customers? I saw someone did one and its nice to have it. Sorry but im only 1 week into zen-cart.
Regards,
David
No problem Anne, you help a lot.
How could i create a new sidebox for testimonials of customers? I saw someone did one and its nice to have it. Sorry but im only 1 week into zen-cart.
Regards,
David
I installed an add-on for testimonials and is working now.
I now have another problem. If you check my site again, in the main page the 3 way header for new, specials and featured. How can i translate that for spanish also, im trying in the tpl_xxxx.php but no success as you can see hehe
Kind regards,
David
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.
Generally speaking language things are in the languages directory, not the templates directory. Suggest learning how to use the built in ZC tool of Developer's tool kit. Search for the text you want changed and find the file(s) in which it is defined. Then for the new language modify it there as well. I thought those particular things were part of the "core" language file. Have you installed a language pack yet for your desired language? If this continues to be an issue, may I suggest. Beginning a new thread related to customizing a template with a new language.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Hi, ive located the file and its on the template folder not on the languages one. I have installed a language pack.
File is: includes/templates/sheffield_blue/templates/tpl_index_default.php
The line is like this:
case 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS':
echo '<span class="navThree moduleSpan"><a href="javascript:void(0)" rel="specialsDefault" class="navThree moduleBox">Specials</a></span>';
I have defined variables like this: define('HEADER_TITLE_SPECIAL1',''); in the includes/languages/spanish/extra_definitions/sheffield_blue/headermenu.php
and plan to sub it there, any ideas? dont know how to do it
{QUOTE=pewe;1233874]But you're not far off it I bet??[/QUOTE]
LOL! Thanks for the hug.
Thanks,
Anne
A lot going on here. This may already be addressed in this forum. I haven't looked. But to get PHP defined constants to appear they must be called by php code. Add to this, whatever php defined variable you use/reference, must exist in all languages that will be used or english will be used as the default. If the php defined variable doesn't exist in english at that point, then the variable name will be displayed. So recommendation is to find the english equivalent for what you are trying to get (specials in this example) and define the spanish version to have spanish text.
The code would look something like this:
But again, be sure HEADER_TITLE_SPECIAL1 is defined in english or use the english definition and modify the spanish one to reflect the spanish word(s) to be used.Code:'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS': echo '<span class="navThree moduleSpan"><a href="javascript:void(0)" rel="specialsDefault" class="navThree moduleBox"><?php echo HEADER_TITLE_SPECIAL1; ?></a></span>';
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Hi ive done it but now the part where the text should appear its not there. I guess i have to define it in other location.
I have used now the BOX_HEADING_FEATURED_PRODUCTS variable but again it doesnt show anything. Any ideas?
My line:
echo '<span class="navOne moduleSpan"><a href="javascript:void(0)" rel="featuredProducts" class="navOne moduleBox"><?php echo BOX_HEADING_FEATURED_PRODUCTS; ?></a></span>';
Last edited by speedyrider; 21 Jan 2014 at 06:08 PM.
Bookmarks