Get total number of stores by zip code

Name
getTotalResult()
Example
<html>

<head></head>

<body>

<?php

require_once(‘eMaxApi.class.php’);

$eMax = new eMaxClient;

$eMax->zipcode = $zipcode;     //Mandatory

$eMax->miles = $miles;     //optional

$emax->city = $city;     //optional

$eMax->store = $storename;     //optional

$eMax->state = $state;     //optional

$eMax->country = $country;     //optional

$eMax->product = $product;     //optional

$eMax->category = $category;    //optional

$eMax->suburb = $suburbname;     //optional

$totalresult = $eMax->getTotalResult();

?>

</body>

</html>
Result
Return Integer (Number of locations (stores)  available in specific search).
Description
This function can be called right before of after the call to listStores. As you can specify the number of stores to return in listStores the function getTotalResult will give you the total count of stores for the search.

It uses the same variables as used in the listStores. Please click here to view listStores.
Summary
This function is used together with listStores function. While listStores returns the stores this function returns the count (Total number of stores) of the stores for the given search variables. Used in paginating the results.
eMax Store locator software
eMax Store locator software