View Single Post
  #4  
Old April 12th, 2011, 06:18 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

You can do something like this in your theme's functions.php file:

PHP Code:
function dfr_merchant_description($merchant_id) {

    
$merchant_descriptions  = array
    (
        
'12345'    =>    'Description for merchant with ID 12345',
        
'67890'    =>    'Another description for merchant with ID 67890',    
    );
    
    return 
$merchant_descriptions[$merchant_id];

And then call that from your views like this:

PHP Code:
<?php echo dfr_merchant_description($product->merchant_id); ?>