Jump to content

No Products Showing on Product Pages


Recommended Posts

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)

breadcrumb
category_title ( which includes the number of products i have in this subcategory)
categoryImage
cat_desc

then 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=17

there 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

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

i 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

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 method
Line: 105
Char: 4
Code: 0
URI: http://www.mimilou-shop.fr/prestashop/category.php?id_category=17

When 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

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

firefox 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 XP

firefox 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? :)

thanks

james

Link to comment
Share on other sites

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

  • 2 weeks later...

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

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

Hi thank you for the response

I 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 details

User 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 UTC


Message: 'serialScrollNbImagesDisplayed' is undefined
Line: 7
Char: 2
Code: 0
URI: http://www.soulbeat.co.uk/presta/modules/productscategory/js/productscategory.js

Link to comment
Share on other sites

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

Rocky

Many 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

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?

thanks

james

Link to comment
Share on other sites

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

×
×
  • Create New...