Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
SajMalik
SajMalik
This can be shown on the home page - is it possible also to have a Greetings bar across the product listings and product details pages?
 
With most of my visitors being directed by search engines to specific product pages they rarely see the home page - and certainly not as the first page.
 
battleaxe
battleaxe
Christopher
 
You need to make a custom block with your greeting message in it and then add it to the pages that you would like your visitors see it on
 
SajMalik
SajMalik
Thank you battleaxe - that I understand - but I want the welcome block to go right across the top as it does on the home page.
 
A custom block can be inserted in the left, centre or right column - but not spanning all three?
 
SajMalik
SajMalik
I've worked it out:
 
products.html
- copy from index.html
 
<!-- begin greeting_block -->
<tr><td valign="top" class="homeGreeting" colspan="3">
 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="usual"><div><div>{greeting_html}</div></div></td></tr>
</table>
 
</td></tr>
<!-- end greeting_block -->
 
and insert after line 135
 
THEN . . . . .
 
products.php
- copy from index.php
 
$greeting_html = trim($settings["html_on_index"]);
if(strlen($greeting_html)) {
$greeting_html = get_translation($greeting_html);
if (get_setting_value($settings, "php_in_index_greetings", 0)) {
eval_php_code($greeting_html);
}
$t->set_var("greeting_html", $greeting_html);
$t->parse("greeting_block", false);
} else {
$t->set_var("greeting_block", "");
}
 
and insert after line 55
 
battleaxe
battleaxe
I see what you mean Christopher, you wanted it to go right across the top of the left and right columns too.
Neat fix.