Jump to content

paranoia322

Recommended Posts

Hello,

 

I am getting this error when getting into categorys:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/nold/domains/nold.si/public_html/themes/default/category.tpl" on line 87 "{if $subcategory.description}" - Unexpected "*	"' in /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '*???????') #2 /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '*???????') #3 /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_Smar in /home/nold/domains/nold.si/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

I am following this guide: http://mypresta.eu/en/art/developer/prestashop-subcategories-grid.html
Using latest presta shop, with default theme! I did everything 3 times, reverted, tried again and again.

 

Please advise further!

Link to comment
Share on other sites

Alright, I am editing it with notepad ++, I set the encoding to UTF-8, and saved to server. Haven't followed through with the tutorial mentioned above, but just checked if the error apears again. It does, here is the link to the page: http://nold.si/197-tekstil-in-obutev.

 

 

http://speedy.sh/CsXJg/category.tpl
here is the saved file.

 

Please advise, I think I have done it correctly. I have turned off the force template setting and smarty while doing the editing this time, don't know if it makes any difference.

 

Regards,
 

PARANOiA

Link to comment
Share on other sites

Hello,

 

I used the comment commands to exclude the part of the code and was meaning to replace it with the code from the said tutorial for grid view of subcategorys. 

 

I have solved the issues with the code, now another problem appeared. 

 

fmMMZbB.jpg

 

The images for the categorys duplicated and are kind of out the position.

 

Any suggestions as to why this happened and how to fix?

 

 

Thanks a milion times for the support provided so far,

 

Regards!

 

PARANOiA

Link to comment
Share on other sites

Also, while I am at this positioning and cosmetic touches of the front page. I am attaching a screenshot of the footer, the first column is problematic. The text is warped and it makes the footer way to long. 

 

PLCpM3D.jpg

 

Any help or tips on where I can find the code that needs to be changed would be appriciated. I know that I need to make the column with text somehow wider!

 

Regards,

 

PARANOiA

Link to comment
Share on other sites

Hello,

 

Thank you again for the reply!

Below I am attaching the files I have modified in order to change the list view of subcategorys to grid view following this guide: http://mypresta.eu/en/art/developer/prestashop-subcategories-grid.html

http://www.mediafire.com/view/lvptpbz46mvlkv3/category.tpl
http://www.mediafire.com/view/d1vtfdlc8d4pj7p/category.css

What does your page look like? How should it look? Can you screen shot it and post, would be much apreciated!

 

Maybe it would mean something if I told you that I upgraded from prestashop 1.5.x.x to the newest and in the process screwed up all the themes, and spent a few days searching for the defoult one to import it. 

 

This is what I imported: http://www.mediafire.com/download/wkdw3r2e00qhea2/PrestaShop_1.5.4.1_default_theme.zip

 

www.nold.si

 

 

Regards,

 

PARANOiA

Edited by paranoia322 (see edit history)
Link to comment
Share on other sites

<li class="clearfix">
					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
						{if $subcategory.id_image}
							<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{else}
							<img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}
					</a>
					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
					{*
					{if $subcategory.description}
						<p class="cat_desc">{$subcategory.description}</p>
					{/if}
					*}
					{if $subcategory.id_image}
    <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="{if $subcategory.description}{$subcategory.description}{/if}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{else}
    <img src="{$img_cat_dir}default-medium_default.jpg" alt="{if $subcategory.description}{$subcategory.description}{/if}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{/if}
				</li>

you have there 2 category image code, 

 

use this:

<li class="clearfix">
					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
						{if $subcategory.id_image}
							<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{else}
							<img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}
					</a>
					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
					{*
					{if $subcategory.description}
						<p class="cat_desc">{$subcategory.description}</p>
					{/if}
					*}
					
				</li>
  • Like 1
Link to comment
Share on other sites

I was too lazy to see that I think! Apologies!

 

Now it is okay! It works as intended! Thanks a lot!

 

 

Regarding the footer and text warping? Have you seen it? Any suggestions and tips as to where to look for the solution?

 

 

Regards,

 

PARANOiA

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...