Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
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
Prev Previous Post   Next Post Next
Old April 26th, 2012, 09:11 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902
Default Add a list of merchant logos to your sidebar

Here's how to add a list of logos to your sidebar like this:

1. Add the following function to your theme's functions.php file:
PHP Code:
function dfr_get_merchant_logos() {
$merchants $wpdb->get_results("SELECT merchant, merchant_id FROM ".$wpdb->prefix."dfr_shop_products WHERE state = 1 GROUP BY merchant");
$html '';
    foreach (
$merchants as $k => $v) {
        if (
trim($v->merchant) != "") {
$logo_url dfr_view::merchant_logo_url($v->merchant_id);
$html .= '<a href="?merchant_id='.$v->merchant_id.'">';
$html .= '<img src="'.$logo_url.'" alt="'.$v->merchant.'" width="150" height="40" />';
$html .= '</a>';

2. Save your changes.

3. Go here: The Factory > Your Store > VIEWS > WIDGETS > Add a new view

4. Name the new view "Merchant Logos".

5. Add a Text module to the new "Merchant Logos" view.

6. Add the following code to the Text module:
<?php echo dfr_get_merchant_logos(); ?>
7. Save the Text module.

8. Go here: WordPress Admin Area > Tools > Datafeedr

9. Click the [Update Settings Only] button.

10. Go here: WordPress Admin Area > Appearance > Widgets

11. Add a Datafeedr widget to your sidebar and choose "Merchant Logos" from the drop down list.

If you have missing logos, you will either need to add them yourself or request that they be added in this forum: /forumdisplay.php?f=13


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
List Merchant Logos bravecreative Questions 19 June 28th, 2011 08:47 AM
no merchant logos marcaustin Problems 13 March 7th, 2011 03:23 PM

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

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