Jump to content

JQuery


Recommended Posts

Hi There.

I have been trying to learn Prestashop, and I am really impressed with it. I have come up with a few problems, I am sure it is stuff I have done, but any advice would be fantastic at this stage.

The site is currently at : http://www.yogaforgolf.co.uk/shop (just a dummy domain at the moment)

I have attached 2 screengrabs to show the errors, and also the category.tpl file, which I believe is the cause to some of the problems

1) Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; FDM)
Timestamp: Fri, 14 Jan 2011 22:50:43 UTC

Message: 'jQuery' is undefined
Line: 18
Char: 9
Code: 0
URI: http://www.yogaforgolf.co.uk/shop/

Message: 'jQuery' is undefined
Line: 36
Char: 9
Code: 0
URI: http://www.yogaforgolf.co.uk/shop/

2) Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; FDM)
Timestamp: Fri, 14 Jan 2011 22:52:05 UTC

Message: 'jQuery' is undefined
Line: 21
Char: 9
Code: 0
URI: http://www.yogaforgolf.co.uk/shop/category.php?id_category=48

Message: 'jQuery' is undefined
Line: 39
Char: 9
Code: 0
URI: http://www.yogaforgolf.co.uk/shop/category.php?id_category=48


a) I have got error messages on the site, both on the home page, and when you naviagte to a product. I am pretty sure that I have caused the errors by modifiing the category.tpl file. (I wanted to lose the Category title and Subheading) from the Product pages, but just leave a picture file. I've had a look at the lines specified, but cant see anything obvious.

B) The Top Sellers Block on the Right Hand column is all messed up (in IE, it works in Chrome), and I am not sure how to resolve this.

c) I have probably gone the wrong way about modifing my shop, but I seem to have modified a few .tpl .php and .css files. Will this cause me problems in upgrading to later versions of Prestashop?

I've been trying to resolve most of my problems myself and searching this forum, but on these items I would really appreciate any guidance and help.


Here is the start of the Category.tpl file

{include file=$tpl_dir./breadcrumb.tpl} 
{include file=$tpl_dir./errors.tpl}
{*{if $category->id AND $category->active}
   {include file=$tpl_dir./binding_top.tpl} 
{strip}
       {$category->name|escape:'htmlall':'UTF-8'}

           {if $nb_products == 0}{l s='There are no products.'}
           {else}
               {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
               {$nb_products} 
               {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
           {/if}
{/strip}


   {if $scenes}
       <!-- Scenes -->
       {include file=$tpl_dir./scenes.tpl scenes=$scenes}
   {else}
       <!-- Category image -->
       {if $category->id_image}
getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />
       {/if}
   {/if}

   {if $category->description}
{$category->description}
   {/if}
*}
{if $category->id AND $category->active}
   {include file=$tpl_dir./binding_top.tpl} 
       <!-- Category image -->
       {if $category->id_image}
getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" {*alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage"*} />

           {if $nb_products == 0}{l s='There are no products.'}
           {else}
               {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
               {$nb_products} 
               {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
           {/if}

{/if}

   {include file=$tpl_dir./binding_bottom.tpl} 
   {if isset($subcategories)}
   <!-- Subcategories -->





Many Thanks

Matt

36829_z54T1orLUUNqjkbhFJri_t

36830_eFYkEhkWRLjwMwdPaqJG_t

Link to comment
Share on other sites

1) Please use a proper title for you post, one that either asks a questions, or describes a problem.

"Message: ‘jQuery’ is undefined" is exactly what is says, it cannot find the jQuery files, so you cannot use any of it's functions.

I see that you modified the header to and are trying to call a different version of jQuery http://www.yogaforgolf.co.uk/shop/modules/aquaslider/jquery.min.js which does not exist, and is the cause of the problem. (you actually have the same include twice).

Link to comment
Share on other sites

Hi Thanks for the reply, sorry about the header.

I did have aquaslider installed, but I unistalled it. Now I know I must be missing something obvious, but I cant see where I am calling the aquaslider path in my code. Would you mind showing me!

Also any ideas about the "Top Sellers" box, on the right

Mustang : I got the code from "http://www.nethercottconstructions.com/prestashop-modules/12-sliding-menu.html", which is Rocky here on these forums, It seemed very good value, and I think looks really nice.

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...