Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
speedyrider
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>';
Please read and follow the instructions in my reply to your post.
Thanks,
Anne
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
mc12345678
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:
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>';
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.
This is really the hard way to go about this. See my reply to the op here:
http://www.zen-cart.com/showthread.p...28#post1233928
Thanks,
Anne
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
I agree not an easy way to address, it seems though that the individual has found in the templates directory where a word to be displayed is not language/defined variable dependent. That said, it looks like in my effort to help, I have fallen short. Our posts had crossed paths (saw yours after I had finished typing and posted mine).
In retrospect, I thought there was a ZC function that would help sort out from which language file(s) to pull a defined variable.
Re: Sheffield Blue Template Support Thread
thanks anne but its nor working.
the text is in the sheffield_blue/template folder under the tpl_index.php file. Its not in the language folder. Sorry if im being a pain but im new to this and need a bit more clear instructions, maybe i misundertood something.
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
speedyrider
thanks anne but its nor working.
the text is in the sheffield_blue/template folder under the tpl_index.php file. Its not in the language folder. Sorry if im being a pain but im new to this and need a bit more clear instructions, maybe i misundertood something.
Yes, the text in that file that is used in the template is defined in includes/languages/english/extra_definitions/responsive_sheffield_blue/module_tabs.php
If you follow my instructions in my previous post about how to use the template with the other languages, you can translate the text.
Thanks,
Anne
Re: Sheffield Blue Template Support Thread
Hi Anne,
sorry but the text is not in the folder you said, it is in the includes / templates / sheffield_blue / templates / tpl_index_default.php
So i dont know how to make it work. If it were in the languages folder i would know how to translate it as i have already translated other sections of the website.
Thanks for your help,
David
Re: Sheffield Blue Template Support Thread
The file and folder you said doesnt exist as this is the sheffield blue and not the responsive template
thanks
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
speedyrider
The file and folder you said doesnt exist as this is the sheffield blue and not the responsive template
thanks
Copy the files from the responsive sheffield blue template to your template:
includes/templates/responsive_sheffield_blue/templates/tpl_index_default.php
includes/languages/english/extra_definintions/responsive_sheffield_blue/module_tabe.php
This update has not yet been made to the sheffield blue template package.
Thanks,
Anne
Re: Sheffield Blue Template Support Thread
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
speedyrider
Thanks, it worked!
I am happy that you figured it out ;)
Thanks,
Anne