Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Can I add a merchant description to a product page? (/showthread.php?t=4334)

cashnow April 12th, 2011 11:08 AM

Can I add a merchant description to a product page?
 
Hi,

Is it possible to add a merchant description to a product page that will associate only with that merchant?

I know V3 does it with products and coupons, any way possible for a merchant description?

Thank you!

Store ID 6719
www.forbabygifts.com

Eric April 12th, 2011 01:25 PM

Hi

We don't store any merchant descriptions so I don't think this will be possible.

Eric

cashnow April 12th, 2011 05:46 PM

Is there a work around if I create a unique merchant description? I was going to piggyback off the coupon or product add new, but realized it would display wrong.

This may not be so, but if there is one that comes to mind, will you let me know?

Thank Eric!

Eric April 12th, 2011 06:18 PM

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); ?>



All times are GMT -5. The time now is 12:54 PM.

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