h3

‘Top bridesmaid dresses’,
‘search_options’ => array( ‘keywords’ => ‘bridesmaid dress’ ) );
$categories[] = array( ‘name’ => ‘Bridesmaid dresses under $75’,
‘search_options’ => array( ‘keywords’ => ‘bridesmaid dress’,
‘price_min’ => ‘30.00’,
‘price_max’ => ‘75.00’ ) );
$categories[] = array( ‘name’ => ‘Bridesmaid dresses under $100’,
‘search_options’ => array( ‘keywords’ => ‘bridesmaid dress’,
‘price_min’ => ‘51.00’,
‘price_max’ => ‘100.00’ ) );
$categories[] = array( ‘name’ => ‘Bridesmaid dresses under $200’,
‘search_options’ => array( ‘keywords’ => ‘bridesmaid dress’,
‘price_min’ => ‘101.00’,
‘price_max’ => ‘200.00’ ) );
$categories[] = array( ‘name’ => ‘Bridesmaid dresses under $300’,
‘search_options’ => array( ‘keywords’ => ‘bridesmaid dress’,
‘price_min’ => ‘201.00’,
‘price_max’ => ‘300.00’ ) );
$categories[] = array( ‘name’ => ‘Maternity bridesmaid dress’,
‘search_options’ => array( ‘keywords’ => ‘maternity bridesmaid dress’ ) );

/* —————————————
Set a default search
—————————————
Set a default search in case the search keywords are empty.
*/
$defaultSearch = $categories[ 0 ][ ‘search_options’ ][ ‘keywords’ ];

/* —————————————
Request the products from PopShops
—————————————
This snippet includes a PopShops class containing code to interact with the
PopShops API. We’re going to create an instance of the PopShops class and
then find any products using parameters passed to the page.
*/
$popshops = new PopShops( array( ‘api_key’ => $accountApiKey,
‘catalog_key’ => $catalogApiKey,
‘categories’ => $categories,
‘defaultSearch’ => $defaultSearch,
‘productLimit’ => $productsPerPage,
‘nameSpace’ => $nameSpace,
‘subid’ => $subid,
‘productGridColumns’ => $productGridColumns,
‘localRedirects’ => $localRedirects ) );

$popshops->findProducts();

?>




<?php echo ucwords( $_REQUEST[$popshops->nameSpace.’keywords’] ).’ ‘.$pageBrowserTitle ?>


nameSpace.’keywords’]) ?>: Compare dresses you can afford

renderCustomCategories() ?>
renderDeals() ?>
renderBrandFilter() ?>
renderPriceRangeFilter() ?>
renderMerchantFilter($popshops->productResults) ?>
renderSuggestedMerchants() ?>

productResults->products[‘total_count’] ) > 0 ) { ?>

renderProductPaginationLinks() ?>
renderProductPaginationSummary() ?>

renderProductGrid() ?>

We couldn’t find any products matching your search ‘nameSpace.’keywords’]?>’.


Compare items
    Compare
    0