Currently, my QC1.2 start_page is set in the general.php file to "productsList". I think this is triggering a function that displays the last 5 (or whatever is set) products that have been added to the store.
This is not quite what I want. I would like to write my visitors a "welcome to my store" message on the homepage. I could do this by creating a content page and change the start_page setting to p_5 or whatever. BUT - this isn't an option because I would like to display the productslist below this welcoming message (which is dynamic content). I tried adding php code to the static content page, but it doesn't get parsed.
I have two questions: - how could I display a welcoming message above the productlisting ONLY on the homepage? - is there a plugin to show "promoted" products on the homepage?
after create file templates/welcome_msg.tpl and add some welcome information after paste variable $sWelcomeMsg to file templates/products_list.tpl in block LIST_HEAD for example:
As for my second question: is it possible to display only "promoted" products on the start_page? Is there a plugin that allows me to select a checkbox in the admin section, to promote a product? I would like to write one myself, but first have to get acquinted with flat files as data storage.
ipodstock
2006-02-21 19:05
I've got a followup for this...
If I would like to create a modified homepage as well... being that currently I have a content page set as my homepage, the word 'home' is above the content on that page.
How can I remove this "home" text in the content?
OR
Can I use the parses above and create a .tpl file that will display when you click on "home" in the content navigation bar?
If not, how can I go about doing so?
Reveller
2006-02-21 21:32
@ipodstock - this is not a follow-up question. It's hijacking somebody else's topic so you don't have to open YET ANOTHER topic yourself. Could you please try to figure something as easy as this out for yourself and actually helping the community instead of just consuming it's resources?
As for your question: change the appropriate template, or modify the PHP function that constructs the template variables (!)
A little tact would be nice here. Not everyone is as informed as you, and it can be quite difficult to get started on this subject, even while reading the forum, if you have little to no basis.
hany - in QC v2.0 paste variable $sWelcomeMsg to templates/products_list.tpl in block LIST_HEAD
hany
2007-05-16 04:34
Thank you treewood but I just cannot get this to work. What I get is a fatal error in index.php (Fatal error: Call to a member function on a non-object in index.php). Any idea?? I don't know what I'm doing wrong. I pasted the code in index.php, edited products_list.tpl where I put $sWelcomeMsg in block LIST_HEAD and created welcome_msg.tpl. Do I put just plain text into welcome_msg.tpl or does it need to be formated somehow? Thanks for looking over this.