Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 28th, 2011, 10:18 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default How do I make unique title tags for merchant filter widget pages?

This one is almost the same question as this post, but now only using I want to do the same thing with the merchant filter.

Thank you!
  #2  
Old January 29th, 2011, 10:38 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

It's pretty much the same way as the price, except simpler:

HTML Code:
<?php
function merchant_title($merchant) {
    $merchant = strip_tags($merchant);
    return $merchant;
}
?>

<title>[category.name] | <?php if (@$_GET['merchant']) { ?> Provided by <?php echo merchant_title($_GET['merchant']); ?> | <?php } ?> </title>
  #3  
Old January 29th, 2011, 05:18 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

How would I combine the two?
  #4  
Old January 29th, 2011, 06:29 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Just add the 2 functions to the top of the <head> area and then insert the PHP code where you want the information to appear.

Something like this should get you started:

PHP Code:
<?php
function merchant_title($merchant) {
    
$merchant strip_tags($merchant);
    return 
$merchant;
}
function 
forbabygifts_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>[category.name] | <?php if (@$_GET['merchant']) { ?> Provided by <?php echo merchant_title($_GET['merchant']); ?> | <?php ?> <?php if (@$_GET['price']) { ?> Price is <?php echo forbabygifts_format_price($_GET['price']); ?> | <?php ?> </title>
Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make unique title tags for price filter widget pages? cashnow Questions 15 January 28th, 2011 06:11 PM
How to "SEO" Handle Tags, Merchant, Price Searches pages? cashnow Questions 14 January 26th, 2011 08:58 PM


All times are GMT -5. The time now is 01:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.