Solodin Posted November 6, 2013 Share Posted November 6, 2013 (edited) 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 November 7, 2013 by Solodin (see edit history) Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 6, 2013 Share Posted November 6, 2013 check files : /themes/YOUR_THEME/product.tpl or /controllers/ProductController.php Link to comment Share on other sites More sharing options...
Solodin Posted November 6, 2013 Author Share Posted November 6, 2013 I've copied the default productcontroller file into place so I doubt that's the issue. Below is a link to the product.tpl file that my theme is using if you wouldn't mind taking a look. I'm not a PHP developer so it's difficult for me to examine it and try to find issues with the code. http://www.mediafire.com/?850waww3i8v067k Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 and where is the .php file? Link to comment Share on other sites More sharing options...
Solodin Posted November 6, 2013 Author Share Posted November 6, 2013 Here's the ProductController.php that the store is currently using. http://www.mediafire.com/?9osoop48g6ykof4 Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 please check also overrides directory, maybe your productcontroller file is overrided Link to comment Share on other sites More sharing options...
Solodin Posted November 6, 2013 Author Share Posted November 6, 2013 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 More sharing options...
Solodin Posted November 6, 2013 Author Share Posted November 6, 2013 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 More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 if I were you, for the first i will try to remove {$HOOK_PRODUCT_FOOTER} from product.tpl file can you try it please? will see if the problem is related to the module Link to comment Share on other sites More sharing options...
Solodin Posted November 6, 2013 Author Share Posted November 6, 2013 IT'S GONE! Removing the {$HOOK_PRODUCT_FOOTER} from product.tpl file did the job! Is the product footer something I need to keep around or is the store safe to use like this? Link to comment Share on other sites More sharing options...
PascalVG Posted November 7, 2013 Share Posted November 7, 2013 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 More sharing options...
vekia Posted November 7, 2013 Share Posted November 7, 2013 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 More sharing options...
Solodin Posted November 7, 2013 Author Share Posted November 7, 2013 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 More sharing options...
vekia Posted November 7, 2013 Share Posted November 7, 2013 so if you solved it, you don't have to attach module files here glad that it works thank you for confirmation with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now