Jump to content

[SOLVED]: Mysterious Number on Product Pages


Solodin

Recommended Posts

I'm at my wits end here. Every single product page I create on my Prestashop site (v1.4) has a number 1 at the very end of the content.

 

You can see an example here: http://www.camelbackdisplays.com/store/product.php?id_product=21

 

If you view the source it's just a bare number 1 in the code not surrounded by a tag so the only thing I can think of is possibly a boolean returning a "true" status that's not being used correctly.

 

Problem is it's not a theme-specific issue. I can switch themes and the number is still there. So it's got to be an error from one of the Prestashop source files.

 

Has anyone seen an issue like this or have any idea what could be causing it?

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

The only file in the store/override/controllers folder is index.php

 

The only thing listed in that file is this:

 

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
    
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
    
header("Location: ../");
exit;

Link to comment
Share on other sites

If the product.tpl, ProductController.php, and overrides aren't the issue is there anything else it could be?

 

As a last resort I guess I'm going to go through all of modules and start disabling and re-enabling them one by one. I was hoping to avoid that much trial and error with the issue.

Link to comment
Share on other sites

Things like cross selling module, PayPal Instant checkout etc are hooked here, so it may be useful to have. So check what modules you have hooked here (Modules->Posiltions) and search (Ctrl-F) for Product Footer

You will probably see some modules here, giving an indication where that little rascal number '1' comes from.

 

pascal

Link to comment
Share on other sites

okay, so please turn back this hook and go to modules > positions tab in your back office

search for "displayProductFooter" modules list. YOu will see what module you've got there

turn them one by one (not a lot, just few modules like Pascal mentioned)

you will see then where the problem is. 

After that, paste here sources of the module. Both tpl and .php file :)

Link to comment
Share on other sites

Thanks, guys. I got it figured out. The offending module that was causing the "1" to appear was "Store export for PrestaShop v0.1 by Presta FABRIQUE".

 

I disabled that module (as I don't even use it) and everything's as it should be now. I would send you the source files for this module but I'm not sure what the name of it is in the /modules/ folder (it's not named something obvious).

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