ModularMerchant
Knowledge Base
Shopping Cart Software Online Manual
Add "Search by Price" links to the storefront
Add a "Terms of Service" agreement to a store page
Location Home > Shopping Cart Software Components > Administration Area > Design > FAQs & Tutorials

Add "Search by Price" links to the storefront

Adding a set of "Search by Price" links to the storefront may help customers find products they're interested in.

There are three types of "Search by Price" links, and all three types may be combined to create a complete set of links for any set of price ranges.

base price
The "Search by Price" links locate products that have a base price that is within the "Search by Price" range. Price adjustments (such as event discounts, product-level sale price, etc) are ignored. If a product has a base price of $500 but is currently discounted by an event to $50, the product will still show up in the "Over $500" range, and will not show up in the "Under $100" range.
 
Option 1: Everything up to a certain price

To create a link that will locate all products in the store that have a base price equal to or less than a specified price, use the following "Search by Price" link format (replace X with the desired price amount):
<a href="search_results.php?search_price_range=-X">Under $X</a>

example
To create a link that will locate all products in the store that have a base price equal to or less than a $100, use the following "Search by Price" link:

<a href="search_results.php?search_price_range=-100">Under $100</a>
 
Option 2: Products within a price range

To create a link that will locate all products in the store that have a base price equal to or greater than a starting value, and equal to or less than an ending value, use the following "Search by Price" link format (replace X with the desired starting value, and replace Y with the desired ending value):
<a href="search_results.php?search_price_range=X-Y">From $X to $Y</a>

example
To create a link that will locate all products in the store that have a base price equal to or greater than $100 and equal to or less than $500, use the following "Search by Price" link:

<a href="search_results.php?search_price_range=100-500">From $100 to $500</a>
 
Option 3: Everything over certain price

To create a link that will locate all products in the store that have a base price equal to or greater than a specified price, use the following "Search by Price" link format (replacing X with the desired price amount):
<a href="search_results.php?search_price_range=X-">Over $X</a>

example
To create a link that will locate all products in the store that have a base price equal to or greater than $500, use the following "Search by Price" link:

<a href="search_results.php?search_price_range=-500">Over $500</a>
 
Product settings that may affect the results

The "Search by Price" links make use of the storefront search feature. If a product has the Include in search results? Product Editor option set to NO, the product will not show up in any search generated by a "Search by Price" link.

Additionally, if a product has the Hidden Product Editor option set to YES, the product will not show up in any search generated by a "Search by Price" link.

— Last Edited - 11/24/2014 11:38am PST
Rank and add a comment to this article
Only logged in users may leave comments and rank articles. Log in to have your say!
  Knowledge Base Home

  QuickCode™ Tag Glossary

  Modular Merchant.com Homepage

Not Logged in.
Either Log in or create a User Account.

Other articles in this category...

Add "Search by Price" links to the storefront

Add a "Terms of Service" agreement to a store page

Add a favicon

Add images to an email template

Adding a Company Name field to the storefront

Can QuickCode Tags Be Used in PHP Statements?

Can QuickCode Tags be used on non-store webpages?

Common customizations for the Order Receipt email

Copy a template package

Create a custom version of any QuickCode Tag

Create reusable headers/footer with Custom QuickCode Tags

Creating a Customer Registration Form

Creating templates with content viewable only by specific Customer Groups

Customize the category template to display subcategories in a grid

Customize the navigation header of a responsive template

Customize the navigation header of a responsive template

Customize the tabbed content area of a responsive product template

Disabling featured product display

Display a message if a customer has already purchased a product

Display a slideshow on any store page

Display sale prices in red text

Have your store match a website that links to it

Introduction to editing responsive template packages

Link your company logo to a different website

List of available Templates for use in Template Packages

Playing Flash video instead of downloading it

Require service agreement when a specific product is purchased

The difference between templates and web pages

Troubleshooting Missing Images

Untranslated Red QuickCode Tags

Using "Add to Cart" links on your website.

Using comments in Custom QuickCode Tags

Using the Custom Webpage Editor to add links to your Storefront

Your storefront on smartphones & mobile devices

Creating Template Packages: Part 1 of 4

Creating Template Packages: Part 2 of 4

Creating Template Packages: Part 3 of 4

Creating Template Packages: Part 4 of 4