View Single Post
  #5  
Old January 28th, 2011, 03:26 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

I have views created for my category pages. (I did try it in default but no dice).

I did it in one of my views, but when I added the price widget, my left navigation disappeared. You can see it here

This is what I added to the <head> elements of that view

<?php
function format_price($price) {
$price = strip_tags($price);
$price = explode("-", $price);
if (trim($price[0]) == '')
$html = 'less than $'.$price[1];
elseif (trim($price[1]) == '')
$html = 'more than $'.$price[0];
else
$html = '$'.$price[0] . ' - '. '$'.$price[1];

return $html;
}
?>

<title>Christening Rosaries | Christening Rosary Gift Ideas | [store.if page="on"] | page [store.page] | [/store.if]<?php if (@$_GET['price']) { ?> Price is <?php echo format_price($_GET['price']); ?> | <?php } ?> </title>