step 6) copy variable $sRandomProduct -

wiktor

No avatar

2005-12-29 15:31

in step 6 of RandomProduct howto there is instruction:

step 6) copy variable $sRandomProduct and paste into place You want to see random product. we suggest to paste in file "head.tpl"

would you kindly explain step by step what do I need to do with this?

sorry I know almost no coding

thx, peace

orinoco

No avatar

2005-12-29 17:05

:)
Without very basic knowledge of HTML you will be in trouble, because nobody knows where you want to place it.
Probably best method:
Open head.tpl file in text editor (Notepad)
There is a part of main HTML code, you can see somethig like that: <td></td>
this is table data opening <td> and closing tag </td>
Paste $sRandomProduct between them, save file, upload and open main page, there your RandomProduct should appears.
Pleased? If not try another location, search for <td> tags
Hint: <td .... some code...> is table data opening tag with parameters, don't carry about it, place your $sRandomProduct just after ">".
Hint 2: The place under category menu in head.tpl file looks like that:
<td class='menu_left'>$sMenuCategories</td>
and what about somethink like that:
<td class='menu_left'>$sMenuCategories $sRandomProduct</td>

have nice fun!

Tribaliztic

No avatar

2006-03-14 12:48

Where do I put it in v1.2? There are no td-tags =)

/Tribaliztic

treewood (OpenSolution)

Avatar: treewood

2006-03-14 14:57

Tribaliztic - in categories_menu.tpl i LIST_FOOTER block

Tribaliztic

No avatar

2006-03-14 15:21

At last! Thank you so much! =)

/Tribaliztic

zep

No avatar

2006-03-14 19:07

does RandomProduct work with QCv1.2?

zep

treewood (OpenSolution)

Avatar: treewood

2006-03-14 19:19

zep - yes!

Back to top
about us | contact