Jump to content

Featured Products not displaying


Recommended Posts

Hi all,

This is my first time with Prestashop, I was attempting to modify the theme, and I wanted to change the Heading title of the "featured Products" module to upper case, I opened the homefeatured.tpl file in Dreamweaver and first thing I noticed that it displayed this error "There is a syntax error on line 89. Code hinting would not work" I ignored this message as I had come across similar messages but different line numbers with header.tpl, footer.tpl, So I just went ahead and changed the featured products title to show upper case , saved the tpl file and re-loaded the homepage, on re-loading the featured products heading title displayed however, no products displayed and neither did it give any error message.

I dug out some threads relating to featured products and followed the instructions, and double checked the products that I had set to home featured and also the product limit that i had set to display 4.

Here is the source for the homefeatured.tpl http://pastie.org/964111

I am a newbee to jQuery hence i wasn't able to rectify the syntax error displayed by Dreamweaver either.

Thank you

Link to comment
Share on other sites

I don't use Dreamweaver but i think some of those errors you can ignore.

In attachment you have corrected tpl file .
Unzip and copy modules/homefeatured/homefeatured.tpl to your theme folder,
so if you have mytheme than full path should be root/themes/mytheme/modules/homefeatured/homefeatured.tpl.

modules.zip

Link to comment
Share on other sites

Hi @razaro thank you for attempting to help, I tried following your instructions, the only thing that my theme folder does not contain a folder for modules, so I tried copying the homefeatured.tpl file to the /module/homefeatured folder instead of /themes/mytheme/module/homefeatured folder. but it did not work, as I mentioned in my earlier posts that I am not getting any kind of error message, the only thing is that the featured products don't show up.

Help !!

Link to comment
Share on other sites

First make sure homefeatured module is in list on Back Office >> Modules >> Positions page.

Then try to set display errors to on in prestashop/config/config.inc.php and post any error message.

@ini_set('display_errors', 'on');


Dreamweaver can't show you errors on server.

You could also try to delete all the files within prestashop/tools/smarty/compile except index.php and refresh a page.

Also if you have Google Chrome browser right click on your homepage and select Inspect element.
In new opened window at bottom right there are infos about errors and warnings.

And tpl file that i sent you works for me see attachment.
And check this article http://www.ecartservice.net/06082009/customising-prestashop-module-templates/#more-709

23694_uqp6xNPbAoULtJ4jKCtK_t

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