b3tw33n Posted November 20, 2009 Share Posted November 20, 2009 My subcatagories are not showing on my individual categories page. it's really frustrating. when i look in the positions backoffice to see if the module is missing there is left column, right column, etc but nothing to indicate center column or any positions that lists what i see included on the current sub-category page. which is top of page stuff and left column(i don't want a right column)breadcrumbcategory_title ( which includes the number of products i have in this subcategory)categoryImagecat_descthen nothing. is what i want is like the featured homepage block that displays all the items within this sub category. i thought i'd seen this before on prestashop, but now i can't get it to work. can someone please advise?for example: http://www.mimilou-shop.fr/prestashop/category.php?id_category=17there are 3 products in this category but we only see the category header. ugh. the result of this is that the only way to actually see the details of a product is through the home page. not good.thanks Link to comment Share on other sites More sharing options...
b3tw33n Posted November 20, 2009 Author Share Posted November 20, 2009 I see that in the category.php file the category.tpl file is included.in the category.tpl file there are includes for breadcrumb.tpl(which is working), error.tpl, and scenes.tpli don't really understand what scenes.tpl does. the script seems to evaluate the screen size of the user and provide product details. none of this appears to be showing up on my category pages. Link to comment Share on other sites More sharing options...
b3tw33n Posted November 20, 2009 Author Share Posted November 20, 2009 anyone? please :| Link to comment Share on other sites More sharing options...
rocky Posted November 21, 2009 Share Posted November 21, 2009 There is a Javascript error on your website. Perhaps that is causing your problem. It seems the autocomplete isn't being imported correctly. Have you tried going to Preferences and turning off v1.1 theme compatibility? Link to comment Share on other sites More sharing options...
b3tw33n Posted November 21, 2009 Author Share Posted November 21, 2009 v1.1 theme compatibility is already off. infact it was never on because i just made the site. hmm. how do you know i have a javascript error? Link to comment Share on other sites More sharing options...
rocky Posted November 21, 2009 Share Posted November 21, 2009 I'm using Internet Explorer 8 and when I go to http://www.mimilou-shop.fr/prestashop/category.php?id_category=17 it says "done, but with errors on the page" at the bottom. When I click the icon, I get the following message:Message: Object doesn't support this property or methodLine: 105Char: 4Code: 0URI: http://www.mimilou-shop.fr/prestashop/category.php?id_category=17When I look at line 105 of the source code, I see the following line: $("#search_query").autocomplete( which means that the Javascript couldn't find the autocomplete function. I just checked my website and it is importing jquery.autocomplete.js, but your site isn't. Transplant the Search block to the "Header of pages" to fix this error. Link to comment Share on other sites More sharing options...
riaz Posted November 21, 2009 Share Posted November 21, 2009 It is great to find the better information about the center columns position there. The javascript related information is very useful to get it everything it right. Thanks for providing the better details there. Link to comment Share on other sites More sharing options...
b3tw33n Posted November 23, 2009 Author Share Posted November 23, 2009 thanks for the reply, but i'm no closer to fixing my problem. I followed your suggestion of transplanting the search block to the "header of pages." but nothing changed. my problem is that i don't see the error you described. The site looks terrible in explorer, but every website looks terrible in explorer. I tested the site on my mac os 10.4.11firefox 3.5.5: no error and still no products on my catagories pages. site looks normal.explorer 5.2.3: no error and still no products on my catagories pages. my top of page menu just disappeared. safari 4.0.3: no error and still no products on my catagories pages. site looks normal.all are importing jquery.autocomplete.js successfully.on a my [spam-filter]'s Dell laptop running Windows XPfirefox 3.0.15: no error and still no products on m catagory pages. site looks fine.explorer 6.0.29: no error but the page looks terrible. i couldn't even navigate...so i upgraded her explorer to explorer 7.explorer 7: no error. site looks fine and still no products on cataory pages. i don't think it's an error. i think i'm missing a module or code in my php. any more ideas? thanksjames Link to comment Share on other sites More sharing options...
rocky Posted November 23, 2009 Share Posted November 23, 2009 You've fixed the Javascript error, which is good. It is unfortunate that wasn't the cause of your problem though. It is hard to know what is wrong. It appears that on your site, $category->getProducts(NULL, NULL, NULL, $orderBy, $orderWay, true); is correctly returning the number of products, but $category->getProducts(intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay); is not returning the products. It is hard for me to figure out why without having access to your site. If you PM me your FTP and Prestashop details, I can investigate why it is happening. Link to comment Share on other sites More sharing options...
Salzzy Posted December 1, 2009 Share Posted December 1, 2009 Sorry to hijack this thread - but I am having a similar JS error that is driving me potty - I have tried to use Firebug to help identify the problem, but not knowing a great deal of java it is not shedding much light for me. I keep coming up with an error on page message and my scrolling function with the "products in same category" module is also not working as it should..... anyone that has found a way to solve this, or anyone that can point me in the direction of a solution would be greatly appreciated.Thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted December 3, 2009 Share Posted December 3, 2009 There is a Javascript error on your site caused because the search block is missing from your header. I'm seeing this on a lot of websites for some reason. You need to go to Modules > Positions and transplant the search block to the "Header of pages" hook. Link to comment Share on other sites More sharing options...
Salzzy Posted December 3, 2009 Share Posted December 3, 2009 Hi thank you for the responseI followed your welcome advice and transplanted both the quick search and the shop search modules, 1st one, then the other, to the header of pages hook, but sadly neither seemed to do the trick. This is the js error message that is still presenting...... still bemused..... Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; SLCC1; Creative AutoUpdate v1.40.01)Timestamp: Thu, 3 Dec 2009 11:15:43 UTCMessage: 'serialScrollNbImagesDisplayed' is undefinedLine: 7Char: 2Code: 0URI: http://www.soulbeat.co.uk/presta/modules/productscategory/js/productscategory.js Link to comment Share on other sites More sharing options...
Salzzy Posted December 3, 2009 Share Posted December 3, 2009 Would this indicate that I need to edit the js file to set the number of images in line 7 ??? Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2009 Share Posted December 4, 2009 I just tried installing Products Category v1.2.1 on my Prestashop v1.2.5 installation and it worked perfectly without any Javascript errors, so I'm not sure why it isn't working for you. I had a look at at productcategory.js and for some reason, the variables are defined with a pc_ prefix, but there is no pc_ prefix when the variable is referenced on line 7. Perhaps if you change line 7 to the following it will work: $('#productscategory_scroll_right').css('cursor', position + pc_serialScrollNbImagesDisplayed == pc_serialScrollNbImages ? 'default' : 'pointer').fadeTo(500, position + pc_serialScrollNbImagesDisplayed == pc_serialScrollNbImages ? 0.2 : 1); Link to comment Share on other sites More sharing options...
Salzzy Posted December 4, 2009 Share Posted December 4, 2009 RockyMany thanks I will give that a try. No that you have spotted that and pointed it out, I suspect the reason is possibly somthing to do with the fact that I have a pc prefix referenced in a second database installation. This probably resulted from trying to install two version of prestashop in parallel..... not sure, but maybe thats it.I seem to recall having to use a pc prefix on the second install......then in copying the modules from one install to the other I may have overwritten the js folder, thus producing this anomaly..... just a thought anyway...I sometimes feel that in trying to find a solution it is good to know how it became broken in the first place.. :-)Thanks again - I will let you know how I get on and leave feedback here.Cheers Link to comment Share on other sites More sharing options...
Salzzy Posted December 4, 2009 Share Posted December 4, 2009 Brilliant! - Your suggestion solved the problem - very much appreciated. I wont close this thread as solved as it was started with a slightly different topic. Apologies again to anyone for my brief hijack. Link to comment Share on other sites More sharing options...
b3tw33n Posted December 7, 2009 Author Share Posted December 7, 2009 hi rocky.-----rocky said - "which means that the Javascript couldn’t find the autocomplete function. I just checked my website and it is importing jquery.autocomplete.js, but your site isn’t. Transplant the Search block to the “Header of pages” to fix this error."----there's something i don't understand in this suggestion that you made. Why would i need to transplant the Search block into the "Header of pages" when i'm not using the search engine in the header i'm using it in the left side bar. are the side bars defined as headers or am i missing something? i'm having problems with my site completely breaking in safari, but it looks the way i want it to in firefox. something i did to my .css document has made a weakness in safari. http://www.prestashop.com/forums/viewthread/36724/help_configuration___use/site_displays_perfectly_in_firefox_3_dot_5_dot_5_and_everything_broke_over_the_weekend_in_safari_4_dot_0_dot_3/any insight? thanksjames Link to comment Share on other sites More sharing options...
rocky Posted December 7, 2009 Share Posted December 7, 2009 The "header of pages" hook contains everything between the <head></head> tags, which includes the Javascript required for the autocomplete to work. It is not the same as the "top of pages" hook, which contains all the modules displayed at the top of the page. Link to comment Share on other sites More sharing options...
Salzzy Posted December 7, 2009 Share Posted December 7, 2009 I think that is probably what confuses a fair few people, it certainly did me to begin with.. lol - Thanks again Link to comment Share on other sites More sharing options...
b3tw33n Posted December 7, 2009 Author Share Posted December 7, 2009 rocky thanks for the reply. so i was right i don't need the quick search block in my header of pages positon, since it's positioned in the body of the site. thanks for clearing that up. Link to comment Share on other sites More sharing options...
rocky Posted December 7, 2009 Share Posted December 7, 2009 To clarify, the search block does need to be in the "header of pages" hook, but doesn't need to be in the "top of pages" hook if it is in another hook. Link to comment Share on other sites More sharing options...
Recommended Posts