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

Sheffield Blue Template Support Thread

Views: 123,079

Results 501 to 520 of 842
18 Jan 2014, 5:59 PM
#501
mc12345678 avatar

mc12345678

Totally Zenned

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

Sheffield Blue Template Support Thread

picaflor-azul:

Yes, this is an old bug that has been documented and is on the list for a future update.

All the more reason to take some time to read through the thread. Even with the best of intentions to meet or exceed standard ZC programming, sometimes something like that gets missed. But good that the solution was/is available.

18 Jan 2014, 7:13 PM
#502
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

Still doesnt work, i changed exactly what you said and now there is no information on that part of the screen. You can take a look in the same url

18 Jan 2014, 7:33 PM
#503
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

Worked it out, as the file was already with <?php

Should start like this: $content .= HEADER_TITLE_CURRENCIES . zen_draw_pull_down_menu('currency',......

18 Jan 2014, 8:41 PM
#504
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:

Worked it out, as the file was already with <?php

Should start like this: $content .= HEADER_TITLE_CURRENCIES . zen_draw_pull_down_menu('currency',......

Yes, having your syntax correct is important in php.

Thanks,

Anne

19 Jan 2014, 5:33 AM
#505
eric47905 avatar

eric47905

New Zenner

Join Date:
Sep 2009
Posts:
24
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hello Anne,

Thank you for all the support you give this community!

I searched this thread but could not figure out how to word my search exactly right to see if this issue has been addressed already. You almost need sub threads for this thread.

My issue - On the product review page, it is displaying some html code garbage just before the picture. Everything else displays correct.

You can see an example here (Since this is live site I don't want it indexed so I added *** please remove that for the link - http://www.orings-onlin***e.net/index.php?main_page=product_reviews&cPath=36_44&products_id=220&number_of_uploads=0

I narrowed it down to this file I believe - \includes\modules\pages\product_reviews\header_php

More specifically in this section I think as this seems to be the junk code displaying as text on the review page

  $review_query_raw = $db->bindVars($review_query_raw, ':productsID', $_GET['products_id'], 'integer');
  $review_query_raw = $db->bindVars($review_query_raw, ':languagesID', $_SESSION['languages_id'], 'integer');
  $review = $db->Execute($review_query_raw);

  $products_price = zen_get_products_display_price($review->fields['products_id']);

  if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
  } else {
    $products_name = $review->fields['products_name'];
  }

If you have any ideas on how to fix this please let me know. Thanks a bunch

19 Jan 2014, 5:53 AM
#506
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Sheffield Blue Template Support Thread

eric47905:

Hello Anne,

Thank you for all the support you give this community!

I searched this thread but could not figure out how to word my search exactly right to see if this issue has been addressed already. You almost need sub threads for this thread.

My issue - On the product review page, it is displaying some html code garbage just before the picture. Everything else displays correct.

You can see an example here (Since this is live site I don't want it indexed so I added *** please remove that for the link - http://www.orings-onlin***e.net/index.php?main_page=product_reviews&cPath=36_44&products_id=220&number_of_uploads=0

I narrowed it down to this file I believe - \includes\modules\pages\product_reviews\header_php

More specifically in this section I think as this seems to be the junk code displaying as text on the review page

$review_query_raw = $db->bindVars($review_query_raw, ':productsID', $_GET['products_id'], 'integer');
$review_query_raw = $db->bindVars($review_query_raw, ':languagesID', $_SESSION['languages_id'], 'integer');
$review = $db->Execute($review_query_raw);

$products_price = zen_get_products_display_price($review->fields['products_id']);

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}

> 
> If you have any ideas on how to fix this please let me know. Thanks a bunch

This is possibly an issue related to zen lightbox. Check that thread. There is an issue that appears when looking at the reviews page with that plugin installed.
19 Jan 2014, 6:33 AM
#507
eric47905 avatar

eric47905

New Zenner

Join Date:
Sep 2009
Posts:
24
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

I don't know how you found my post, but bravo! That was the issue and the fix is already posted over there. Thanks a bunch - Zen light box brought out the error from the core code displaying the model poorly, but he has a fix posted for it.

19 Jan 2014, 4:04 PM
#508
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

picaflor-azul:

Yes, having your syntax correct is important in php.

Thanks,

Anne

Yes, giving the correct answers is important when helping too, as not everybody knows php.

Thanks,

David

19 Jan 2014, 4:21 PM
#509
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

eric47905:

I don't know how you found my post, but bravo! That was the issue and the fix is already posted over there. Thanks a bunch - Zen light box brought out the error from the core code displaying the model poorly, but he has a fix posted for it.

I am happy that you figured it out and got everything working ;)

Thanks,

Anne

19 Jan 2014, 4:22 PM
#510
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:

Yes, giving the correct answers is important when helping too, as not everybody knows php.

Thanks,

David

Ouch! Sorry for making a mistake, but I am far from perfect. I will admit that I did not have time to test out the code.

Thanks,

Anne

19 Jan 2014, 4:28 PM
#511
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

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

21 Jan 2014, 9:00 AM
#512
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

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

21 Jan 2014, 9:34 AM
#513
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Sheffield Blue Template Support Thread

mc12345678:

This is possibly an issue related to zen lightbox. Check that thread. There is an issue that appears when looking at the reviews page with that plugin installed.

FYI..
NOT a Zen Lightbox issue.. Zen Lightbox merely illuminates an issue with a poorly coded core Zen Cart file.. This has been reported as a Zen Cart bug and is supposed to be included as a fix in v1.5.2....

21 Jan 2014, 11:16 AM
#514
pewe avatar

pewe

Zen Follower

Join Date:
Aug 2006
Posts:
134
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

picaflor-azul:

I am far from perfect.

Thanks,

Anne

But you're not far off it I bet?? :hug:

21 Jan 2014, 2:14 PM
#515
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Sheffield Blue Template Support Thread

speedyrider:

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

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.

21 Jan 2014, 4:19 PM
#516
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

mc12345678:

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.

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

21 Jan 2014, 4:29 PM
#517
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:

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

If you want the template to work with languages other than english, you need to copy the template language files to your new language and make your translations.

Thanks,

Anne

21 Jan 2014, 4:30 PM
#518
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

{QUOTE=pewe;1233874]But you're not far off it I bet?? :hug:[/QUOTE]

:blush: LOL! Thanks for the hug.

Thanks,

Anne

21 Jan 2014, 4:35 PM
#519
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Sheffield Blue Template Support Thread

speedyrider:

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

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.

21 Jan 2014, 5:06 PM
#520
speedyrider avatar

speedyrider

New Zenner

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

Re: Sheffield Blue Template Support Thread

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>';