Jump to content

[SOLVED} syntax errors...could anyone explain and fix them?


nicole
 Share

Recommended Posts

Hi, the 'Done but with errors on page' sign appear on the bottom of my webpage. I really don know what are they and so i clicked into every css and module folders, i found a few syntax errors in the tpl files as attached below.

I don know anything about any codings and so i have no idea what's wrong. Could anyone give me some guideline and tell me how to fix them? Also, i don know the effect of these errors, really....scratching my head...

(i) blocklanguage.tpl
(ii) address.tpl
(iii) authentication.tpl
(iv) header.tpl
(v) order-address.tpl
(vi) scenes.tpl
(vii) thickbox.tpl


please please, anyone who is expert in this, please guide me...

22491_PBLDKLu9ZTcX62FQeUpM_t

22492_ZMswbQCVC3PIJpJ5zGLI_t

22493_lMxfSGRbfKiAEMpqGcco_t

22494_m9TzeaOc59HAthiZHgR5_t

22495_67HVMAAfG8uwLU3IFC0k_t

22496_WUmBhvgUcPP42CDZwjS6_t

Share this post


Link to post
Share on other sites

Hi, the 'Done but with errors on page' sign appear on the bottom of my webpage. I really don know what are they and so i clicked into every css and module folders, i found a few syntax errors in the tpl files as attached below.

I don know anything about any codings and so i have no idea what's wrong. Could anyone give me some guideline and tell me how to fix them? Also, i don know the effect of these errors, really....scratching my head...

(i) blocklanguage.tpl
(ii) address.tpl
(iii) authentication.tpl
(iv) header.tpl
(v) order-address.tpl
(vi) scenes.tpl
(vii) thickbox.tpl
(viii) blocksearch-top.tpl
(ix) blocksearch.tpl
(x) mailalerts - product.tpl
(xi) productcategory.tpl



please please, anyone who is expert in this, please guide me...

22497_qbqtii8nYECiUMp4QYVb_t

22500_EhV9oz2wtb798oVmCBv4_t

22501_WtaV0VvaawvFnKJAdenh_t

22502_CSCPhElprS1xBAylmOrJ_t

22503_BCx6dF9rGWKTxuxnc2OR_t

Share this post


Link to post
Share on other sites

Hi i am not sure there are any errors in those tpl files, maybe it is just dreamweaver problem.
And about those site errors edit config/config.inc.php and temporarily change ‘dispay_errors’ from ‘no’ to ‘yes’.Then if there are any post them.

And like i said in other thread there is error connected to Categories Bar module. From where did you get that module ? Post link.

Share this post


Link to post
Share on other sites

Hi i am not sure there are any errors in those tpl files, maybe it is just dreamweaver problem.
And about those site errors edit config/config.inc.php and temporarily change ‘dispay_errors’ from ‘no’ to ‘yes’.Then if there are any post them.

And like i said in other thread there is error connected to Categories Bar module. From where did you get that module ? Post link.



Hi Razaro,

I got the module 'moon' from http://dgcraft.free.fr/blog/index.php/category/themes-prestashop/
but for the category bar module, i got it from one of the themes - ipnotik theme
http://dgcraft.free.fr/blog/index.php/themes-prestashop/bonjour-tout-le-monde/

http://grainmagique.free.fr/ipnotik/

categoriesbar.zip

Share this post


Link to post
Share on other sites

You need to add following code to file header.tpl in themes/moon folder, right after other scripts

        <script type="text/javascript" src="{$content_dir}modules/categoriesbar/chrome.js"></script> 

Share this post


Link to post
Share on other sites

You need to add following code to file header.tpl in themes/moon folder, right after other scripts

        <script type="text/javascript" src="{$content_dir}modules/categoriesbar/chrome.js"></script> 



Hi razaro. Thanks for the reply....I had added the code into the file. Just to confirm, please see attachment below. 'm I right? Thanks a million...

nic

22507_1JO1eqj7IFXbOXinDeXV_t

Share this post


Link to post
Share on other sites

Usually no, this module is from end of 2008 and i think because you use
different version of Prestashop there was error.


you mean it is not compatible with ps 1.2.5? hmmm...this will be difficult...do you think all features (modules) could work properly in this site?

Any other way that i could keep this template?

nic

Share this post


Link to post
Share on other sites

Sorry i wasn't clear category bar is older module, but with that one line it should work
without any problems.

Moon theme is compatible with 1.2.5 so you don't have to worry.
And all modules should work properly on your site.

And Moon theme is one off the best even better from many
paid themes, but probably have some small bugs.

If you find some bugs search forum and DG.Crafts site for solutions,
and also check Element and Black and White threads .

Share this post


Link to post
Share on other sites

Sorry i wasn't clear category bar is older module, but with that one line it should work
without any problems.

Moon theme is compatible with 1.2.5 so you don't have to worry.
And all modules should work properly on your site.

And Moon theme is one off the best even better from many
paid themes, but probably have some small bugs.

If you find some bugs search forum and DG.Crafts site for solutions,
and also check Element and Black and White threads .


hi razaro..thank you for d clarification. I will try to insert some info into the website and see what problem might occur..

By the way, there are some square boxes at the categories bar, can i remove them? Not sure when they started appearing, hehe..

If I want to change the wallpaper (is the background design named wallpaper), can i just download one and then upload to the image?

How can i move the 'send to a friend' and 'send question' buttons at the product page to be placed under the 'Add to Cart'?

Before that i installed the wishlist module but it could not be used and always showed 'error...java..'something. Why would this happen?



thanks alot...

22513_IGVio5O6tCTDuUoCCino_t

22514_t0CiEjqN8rCUX0aGyCf3_t

Share this post


Link to post
Share on other sites

First boxes:
It is image down.gif that indicates there are sub-menus.
You could change image in\modules\categoriesbar\ or
change code in modules\categoriesbar\chrome.js
from

dropdownindicator: '<img src="./modules/categoriesbar/down.gif" border="0" />'



to

dropdownindicator: ''


if you want to remove image.

Second background image:
Code to change is at beginning of global.css

body {
background:url("../img/texture.gif") repeat scroll 0 0 transparent;
}


Look here for options

Third button:
In product.tpl cut this code (I replaced code within addthis button with ...)

        <!-- AddThis Button BEGIN -->
....
        <!-- AddThis Button END -->         

       {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}



and paste it before

    
   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->



to look like this

        <!-- AddThis Button BEGIN -->
....
        <!-- AddThis Button END -->         

       {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}

   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->



And I get some errors connected to AddThis code. So backup file
delete

        <!-- AddThis Button BEGIN -->
....
        <!-- AddThis Button END --> 


and try to install whishlist module.

And be sure to get Firebug plugin for Firefox from here
really helpful tool.
Also Google Chrome browser has nice inspect tool link.

Share this post


Link to post
Share on other sites

Third button:
In product.tpl cut this code (I replaced code within addthis button with ...)

        <!-- AddThis Button BEGIN -->
....
        <!-- AddThis Button END -->         

       {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}



and paste it before

    
   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->



to look like this

        <!-- AddThis Button BEGIN -->
....

        <!-- AddThis Button END -->         

       {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}

   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->



And I get some errors connected to AddThis code. So backup file
delete

        <!-- AddThis Button BEGIN -->
....
        <!-- AddThis Button END --> 


and try to install whishlist module.

And be sure to get Firebug plugin for Firefox from here
really helpful tool.
Also Google Chrome browser has nice inspect tool link.


Hi Razaro,

I had following your instruction and managed to change the background of website as well as the dropdownindicator, but the 3rd part, sorry for my stupidity, I'm unsure whether to replace the whole part as I indicated in the attachment below. Should I?

Razaro, thanks for you help...

22539_kFbiCNaNLgUmISnjlMfP_t

Share this post


Link to post
Share on other sites

I made confusion in attempt to write less code.

From your image
Cut lines 69 to 78 and insert them at line 212 it before

    
   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->



Check image in attachment.

22541_vrSYFWcV0boOhUaKkG2H_t

Share this post


Link to post
Share on other sites

I made confusion in attempt to write less code.

From your image
Cut lines 69 to 78 and insert them at line 212 it before
    
   {if $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
   <!-- accessories -->




Hi Razaro,

1) I have moved and added the code to line 212 (see attachment) but the addthis button doesnt seem work on my site.

2) Also, I have installed the wishlist, but as you can see, my wishlist button is located below the 'add to cart' but the position isnt right and I couldnt add anything at all. I tried to follow the thread http://www.prestashop.com/forums/viewthread/48684/

to insert [removed][removed] into the hearder.tpl -----> wishlist still fails.


3) Yet, if i place the wishlist module under the right hook, there appears the 'wishlist - no product & my wishlist' at the bottom of every page(see attachment images of 'wishlist - left hook' & 'homepage'& 'my account' ).

However, when when i click into the my wishlists button on my account page, the categories bar disappear and a categories link appear at the header (it is not added into header hook in back office).

4) I tried to place the module into the left hook, it appears only on the left colume of e.g. accessories page but not individual product page or the homepage nor the my account page. This look more tidy and clean.....but it doesnt work...

Then I replaced this coding to the blockwishlist-extra.tpl ---> (as instructed in
http://www.prestashop.com/forums/viewthread/48684/)

{l s='Add to my wishlist' mod='blockwishlist'}



the result is the error 404 while adding product into wishlist. So i remove that changes in blockwishlish-extra.

22548_sbyzD0J4RPCxs8mVPIoh_t

22549_R3TOUdvm94S3MqBP57jB_t

22550_B03vTYcHIWiTFmStFpBl_t

22551_ZZOQT9bcb6f9ArdzkgbQ_t

22552_UxF3P6lSj4c3ruT4BGXq_t

22553_e1Vmyfiw71ZUqateSNon_t

Share this post


Link to post
Share on other sites

You are missing one step.
You need to first create wishlist in my account page.
And this is hard to notice but between name and save there is textbox :-)
Here you enter name of wishlist and click save.
Look at image in attachment .
Now it should work.

In attachment also you have product.tpl , for sent to a friend and other buttons .

To style Add to whishlist button on product page add this code to global.css.
This is just test change style however you want.

#primary_block p.buttons_bottom_block a {
background:#438BCB;
border:medium none;
color:#FFFFFF;
cursor:pointer;
font-weight:bold;
height:29px;
margin:0.5em 0;
padding:0.5em 0.3em 0;
text-align:center;
text-transform:uppercase;
width:138px;
}



And i have some problems with bestsellers module ,
maybe it is just me will look at that later.

22564_EFeFUdxxNExOBARNVlyb_t

product.zip

Share this post


Link to post
Share on other sites

You are missing one step.

In attachment also you have product.tpl , for sent to a friend and other buttons .

To style Add to whishlist button on product page add this code to global.css.
This is just test change style however you want.
#primary_block p.buttons_bottom_block a {
background:#438BCB;
border:medium none;
color:#FFFFFF;
cursor:pointer;
font-weight:bold;
height:29px;
margin:0.5em 0;
padding:0.5em 0.3em 0;
text-align:center;
text-transform:uppercase;
width:138px;
}



And i have some problems with bestsellers module ,
maybe it is just me will look at that later.



Hi Razaro,

Thanks for the product.tpl file. buttons in product page are great and perfect...Really appreciate your help....many many many thanks to you, really.....

bestsellers module? what's the matter?

nic

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More