Adds a product search box widget to your blog, which viewers can use to search and make purchases and you will earn a commission.
prosperent-powered-product-searchfolder to the
Go to the
Prosperent Settings under Settings and edit those that you'd like, don't forget to add your API key here.
* API Key, input the API Key that you got earlier. * Facets, True or False, this setting enables or disables the use of facets. Facets allow someone to narrow down a result by brand and merchant. (Facets are enabled by default.) * Limit, The is the API limit, the max is 100. Set anywhere between 1-100. (Default is 100.) * Default Sort, when someone first searches for a product, this is how data will be returned. relevance desc = Relevancy, price asc = Low to High, price desc = High to Low. (Relevance desc is default.) * Parent Directory- if you make the product page with a parent directory, insert that here with the leading slash (/) example: /sample-page (Default is blank, no parent.) * Merchant Facets and Brand Facets. The number of each facets to show in the primary list. (Brand default is 12 and Merchant default is 10.) * Negative Merchant and Brand Facets. Merchants and Brands to discard from results. * Starting Query. When first visited, the site will use this query if one has not been given by the user. If no starting query is set, it shows the no results page. * Base URL. If you have a different url from 'your-blog.com/product' that you want the search query to be posted to (For example, if you created a 'Shop' page, with the url your-blog.com/shop, change this to shop). * Additional CSS. Additional CSS for the shortcode search bar if used. * Logo Image and Logo Image-Small, these are the logos associated with search input box. Only set one to TRUE. (Logo Image is by default set to TRUE.)
The plugin automatically creates a
New Page called product. Go into that page and change the title to whatever you would like to be visible. Also change the template to your liking. (On the twenty-eleven theme I used
Also, now that the results is shortcoded, you can add [prosper_store][/prosper_store] to any page.
Reminder, if you use a different page from '/products' to display search results change the 'Base_URL' Setting.
You do not necessarily need to add the search bar to a page, as the Product page has a search bar included with the search results. But it is recommended to increase the use.
If you want to add the search box in the header of your page, add
<?php prospere_header(); ?> in your themes
header.php file where you'd like it to be located.