Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Search for Products based on Weight Range

    Is there a way to search for products based on weight instead of price...? in the advanced search fields, you may find products by price range... just wondering is there is a possibility of browsing by weight range...

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search for Products based on Weight Range

    Do you use Attributes?

    Do your Attributes use weight?

    If not, you could trace how the Price search is managed and clone it to manage a weight search ...

    It would take a bit of work, but it could be done ...

    Why would you want to search on the products_weight field?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: Search for Products based on Weight Range

    thanks for the reply, actually I thought the same, but could not understand the logic of the price range, since it uses a Pfrom and a pto to determine it, but have not found how this is defined.

    I do not use attibutes, this is only for the product itself.

    I need this because I am trying to develop a module that will check current cart weight, and display to the customer all of the extra products that could be added for the same shipping price (since table rate is used).... it is the same for a customer to buy 4.1 lbs of product or 4.9lbs when it comes to shipping charges...

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search for Products based on Weight Range

    Unfortunately, without sitting down and writing all of the code that would be involved in this it is difficult to post how to write the search to adapt itself for searching based on weight ...

    You have the right idea ... but you would need to customize all of the code so that it can search the weight in the same manner that the price is searched for ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: Search for Products based on Weight Range

    well, I have tried with no sucess..

    In case there is someone interested, I have placed my requirement on the commercial help wanted section... in case someone wants to make a couple of bucks!

 

 

Similar Threads

  1. v151 What search terms to search for for dimensional weight?
    By d0ugparker in forum General Questions
    Replies: 5
    Last Post: 1 Jul 2016, 03:00 AM
  2. Problems with price range search on Advanced Search
    By icecold in forum General Questions
    Replies: 1
    Last Post: 6 Nov 2009, 01:12 AM
  3. Increase range for new products
    By dwessell in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jun 2009, 04:54 PM
  4. advanced_search_result money range search doesn't work for me
    By enkhbayar in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 28 Nov 2007, 03:03 AM
  5. Changing price range to time range (in Advanced Search)
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2006, 07:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg