Help - Search - Members - Calendar
Full Version: Different Type of Retailers
User Forums > Ultimate Locator v1 - v2.5 Support > General Support
Craig
I am using UL for a customer who has 2 types of dealers - Brick & Mortar (storefront) and Web. I have populated User1 with either WEb or storefront. Also only web dealers have websites added.

They would like when the results come up to show -

Web Dealers
dealer 1
dealer 2

Store Locations
dealer 1
dealer 2
...
dealer 10

They want the web dealers to show up anytime and the store locations to function as normal....

HELP!!!

Thanks.
Craig
Brian
Craig,

That is a tricky situation.

You are asking the program to output two seperate listing types, when it is only coded for one pass. The locator will only scan the database once and pull all the results together.

Now, there is a possibility to separate these searches. Such as: Show only Web dealers OR Show only Storefront dealers. But they will be seperate searches.

You can add the following code to your index.htm template, inside the Zip Code form to allow a user to select which type they want to see:

CODE
<select name="user1">
<option value="web">Web Stores</option>
<option value="storefront">Store Fronts</option>
</select>


Of course, I don't see a point for a zip code search for web delers when in fact, it doesn't matter where a visitor lives in order to buy product from them.

Some past customers put a Include statement in the results_list.php file or a link in the results_list.htm template file (at the top) so it prints a link like this: Click Here to view Online Web Stores... Then that link takes a user to a custom html page that list all the web stores.

FYI...

We have addressed this issue in the next v3.0, which is to be released later this year. The start search page, will allow a visitor to select from the following tabs:

USA Canada International Online Stores


Then a user can select which type of listings they wish to see.
cmarkovitz
QUOTE(Brian @ Sep 7 2006, 02:50 PM) *
FYI...

We have addressed this issue in the next v3.0, which is to be released later this year. The start search page, will allow a visitor to select from the following tabs:

USA Canada International Online Stores


Then a user can select which type of listings they wish to see.


Brian,

That is great to hear that you are adding that enhancement to the software. I ended up using a modification of a work around that you mentioned previously.

I made some changes to index.php and index.htm - you can take a look at http://www.ewcmedical.net/locator/ - but below is what I did

added to index.php
CODE
$web_dealers='<a href="http://tinyurl.com/nm3qh" target="_blank">Lydia\'s Uniforms</a><br />Use code: PMWEAGLE<br /><br /><a href="http://www.scrubsunlimited.com/index.asp?PageAction=VIEWCATS&Category=39" target="_blank">Scrubs Unlimited</a><br />Use code: PMWEAGLE<br />';

$str=str_replace("{webDealers}",$web_dealers,$str);


and I modified index.htm a little bit to allow for the web dealers to always show before a search is done
CODE
<div align="center">
  <center>
  <table border="0" cellpadding="5" cellspacing="0" width="100%">
  <tr>
      <td align="right" width="100%"><font class="addLink">{linkadd}</font></td>
    </tr>
    <tr>
      <td><font class="headText">Web Dealers</font></td>
    </tr>
    <tr>
      <td><font class="normal">{webDealers}</font></td>
    </tr>
    <tr>
      <td><font class="normal">or search storefronts below.</font></td>
    </tr>
    <tr>
      <td width="100%"><font class="headText">{headtext}</font></td>
    </tr>
  </table>
  </center>
</div>


Though I was wondering if there was a way to pull the dealers from the db as I tagged them based on userfield1....thoughts?

Thanks.

Craig
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.