Zen Cart Logo
Forums / Addon Templates / Sheffield Blue Template Support Thread

Sheffield Blue Template Support Thread

Views: 123,071

Results 521 to 540 of 842
21 Jan 2014, 5:12 PM
#521
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Sheffield Blue Template Support Thread

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

21 Jan 2014, 5:13 PM
#522
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

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:

'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.php?202327-Sheffield-Blue-Template-Support-Thread&p=1233928#post1233928](http://www.zen-cart.com/showthread.php?202327-Sheffield-Blue-Template-Support-Thread&p=1233928#post1233928)

Thanks,

Anne
21 Jan 2014, 5:22 PM
#523
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sheffield Blue Template Support Thread

picaflor-azul:

This is really the hard way to go about this. See my reply to the op here:

http://www.zen-cart.com/showthread.php?202327-Sheffield-Blue-Template-Support-Thread&p=1233928#post1233928

Thanks,

Anne

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.

21 Jan 2014, 5:32 PM
#524
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

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.

21 Jan 2014, 6:42 PM
#525
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

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

21 Jan 2014, 9:03 PM
#526
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

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

21 Jan 2014, 9:09 PM
#527
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

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

21 Jan 2014, 9:31 PM
#528
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

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

22 Jan 2014, 8:41 AM
#529
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Thanks, it worked!

22 Jan 2014, 3:42 PM
#530
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

speedyrider:

Thanks, it worked!

I am happy that you figured it out ;)

Thanks,

Anne

26 Jan 2014, 4:25 PM
#531
dabbers avatar

dabbers

New Zenner

Join Date:
Jan 2014
Location:
United States
Posts:
5
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hello Anne!

I love this template but I'be been having some problems where my site is loading blank pages. I looked at the debug log and it says:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/dabbersd/public_html/includes/languages/english/extra_definitions/sheffield_blue/headermenu.php:2) in /home2/dabbersd/public_html/includes/functions/functions_general.php on line 45

This is whats in my functions_general.php:
// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);

if ($httpResponseCode == '') {
  header('Location: ' . $url);   [<- line 45]
  session_write_close();
} else {
  header('Location: ' . $url, TRUE, (int)$httpResponseCode);
  session_write_close();
}

exit();

}

I don't really know anything about PHP so I don't know how to even approach fixing the problem. Any suggestions would be greatly appreciated.

Also here's some extra information in case it will help. My site is using both the Sheffield Blue template and the Ceon URI Mapping module. The blank pages only appear when using this specific template and URI mapping module at the same time, and only in subcategories that have only one product. Here is a link to the page that is having problems http://www.dabbersdoodle.com/shop when you click on "original" it only displays a blank page http://www.dabbersdoodle.com/shop/originals.

Thanks again,
Hadley

26 Jan 2014, 5:23 PM
#532
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

dabbers:

Hello Anne!

I love this template but I'be been having some problems where my site is loading blank pages. I looked at the debug log and it says:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/dabbersd/public_html/includes/languages/english/extra_definitions/sheffield_blue/headermenu.php:2) in /home2/dabbersd/public_html/includes/functions/functions_general.php on line 45

This is whats in my functions_general.php:
// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);

if ($httpResponseCode == '') {
  header('Location: ' . $url);   [<- line 45]
  session_write_close();
} else {
  header('Location: ' . $url, TRUE, (int)$httpResponseCode);
  session_write_close();
}

exit();

}

I don't really know anything about PHP so I don't know how to even approach fixing the problem. Any suggestions would be greatly appreciated.

Also here's some extra information in case it will help. My site is using both the Sheffield Blue template and the Ceon URI Mapping module. The blank pages only appear when using this specific template and URI mapping module at the same time, and only in subcategories that have only one product. Here is a link to the page that is having problems http://www.dabbersdoodle.com/shop when you click on "original" it only displays a blank page http://www.dabbersdoodle.com/shop/originals.

Thanks again,
Hadley

If you install a new template, then you need to copy any override files for modules that you have installed on your old template to the new template override directory.

Thanks,

Anne

27 Jan 2014, 11:56 PM
#533
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi,
my site is starting to look good. I made some changes in includes / templates / sheffield_blue / css / stylesheet.css

If you look at the site www.kite-addic***tion.es/tienda (REMOVE THE ***)

you can see the prices look bigger now, which its something i like. The problem comes when a product hasnt got a special discount the price still figures in small size. Cannot figure out which style is, or if it even has any, i dont think it has.

You can see products without discount here: http://kite-addiction.es/tienda/index.php?main_page=index&cPath=10_28

Any help?

28 Jan 2014, 3:48 PM
#534
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

speedyrider:

Hi,
my site is starting to look good. I made some changes in includes / templates / sheffield_blue / css / stylesheet.css

If you look at the site www.kite-addic***tion.es/tienda (REMOVE THE ***)

you can see the prices look bigger now, which its something i like. The problem comes when a product hasnt got a special discount the price still figures in small size. Cannot figure out which style is, or if it even has any, i dont think it has.

You can see products without discount here: http://kite-addiction.es/tienda/index.php?main_page=index&cPath=10_28

Any help?

There is no class on the price. You can add one in includes/modules/override/product_listing.php

Thanks,

Anne

28 Jan 2014, 8:48 PM
#535
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

picaflor-azul:

There is no class on the price. You can add one in includes/modules/override/product_listing.php

Thanks,

Anne

thanks but i cannot figure out how to modify that file. I want to include something like this: .normalprice {font-size:180%;}
but dont know how or where, if you could help me.

thanks

29 Jan 2014, 3:23 PM
#536
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sheffield Blue Template Support Thread

speedyrider:

thanks but i cannot figure out how to modify that file. I want to include something like this: .normalprice {font-size:180%;}
but dont know how or where, if you could help me.

thanks

What she is/was saying, is that currently there is no CSS "tag" to attach your desired setting. The suggestion offered, was to modify the product_listing.php file that is located in the modules directory under the template directory name being used/accessed. (Override directory) if that folder (includes/modules/YOUR_TEMPLATE) does not contain the product_listing.php file, then it is suggested to copy it from the /includes/modules directory. Then, once in that file, you will need to add CSS related code around the base price so that in your CSS file(s) you can use the above assignment.

That help out a little? Sorry don't have an exact line number or anything as to where to add the additional code.

29 Jan 2014, 3:39 PM
#537
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

speedyrider:

thanks but i cannot figure out how to modify that file. I want to include something like this: .normalprice {font-size:180%;}
but dont know how or where, if you could help me.

thanks

Take a look at the SNAF module. I believe that it includes separate classes for the various elements on the product listing page.

Thanks,

Anne

31 Jan 2014, 8:46 AM
#538
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

picaflor-azul:

Take a look at the SNAF module. I believe that it includes separate classes for the various elements on the product listing page.

Thanks,

Anne

SNAF? what is that? :)

1 Feb 2014, 9:41 PM
#540
cjcraven avatar

cjcraven

Zen Follower

Join Date:
Aug 2004
Location:
Osaka Japan
Posts:
149
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Thank you for this template. When viewing our test site from a PC the header has the language icon properly displayed. When viewing with a mobile application (HTC Butterfly/Sony Xperia) the language icon is missing. Please advise.

ZenCart 1.3.9h
Test Site https://www.uskgj.com/zc3