Thread: Price Range

Results 1 to 10 of 34

Hybrid View

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

    Default Re: Price Range

    12 was just a stab in the dark ...

    The $_GET['cPath'] should call the current path to the categories_id that you are looking at when the price is selected ...

    You may need to doctor it a bit for other things, but see if that helps ...
    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!

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

    Default Re: Price Range

    Here is a problem ...

    The reference for the categories_id changes depending on how you move around the Catalog ...

    Toss this in the file just to see how these variables move about:
    echo 'PATH ' . $_GET['categories_id'] . ' - cpath ' . $_GET['cPath'] . ' - get $current ' . $_GET['current_categories_id'] . ' $current ' . $current_categories_id . '<br>';


    You can code for which of these is available to use as the:
    '&categories_id=' . $something

    You just need to write something to make the $something correct for more than one click ... easy smeazy, eh?
    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
    Dec 2008
    Location
    New Jersey
    Posts
    52
    Plugin Contributions
    0

    Default Re: Price Range

    Quote Originally Posted by Ajeh View Post
    Here is a problem ...

    The reference for the categories_id changes depending on how you move around the Catalog ...

    Toss this in the file just to see how these variables move about:
    echo 'PATH ' . $_GET['categories_id'] . ' - cpath ' . $_GET['cPath'] . ' - get $current ' . $_GET['current_categories_id'] . ' $current ' . $current_categories_id . '<br>';


    You can code for which of these is available to use as the:
    '&categories_id=' . $something

    You just need to write something to make the $something correct for more than one click ... easy smeazy, eh?
    Maybe here below where I went wrong?


    You can code for which of these is available to use as the:
    '&categories_id=' . $something

    You just need to write something to make the $something correct for more than one click ... easy smeazy, eh?



    What do I do exactly?

    Thanks!!
    [FONT="Book Antiqua"]Ajeh is the best!![/FONT]

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

    Default Re: Price Range

    You currently can navigate between the Categories ... and this gives the Product Listing ...

    But, you have a lot of Products and Customers may want to see what in the current Category is in one of the price ranges in the sidebox ...

    If you include the:
    &categories_id = $_GET['cPath']

    in the URL then they will see that filtered price range for the current Category in the Listing ...

    Where you might run into a problem is that now the $_GET['cPath'] isn't available after that first click ...

    If they try to click another price range, it will filter all Products ...

    So, you need to adapt this code to work all of the time by tracking when to use the right paramaters ...

    I would literally have to sit down and write all of this to make the links always capable of working right when navigating between the Categories on the Product Listing and allowing for 1 to many times of picking the price range ...

    If you try this a few times with what you have, you will see where you lose the relationship of the current category and current price filter with a new price filter on the same category ...

    This is the spot where doing some custom coding would be of help to keep things easy on the customer ...
    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
    Dec 2008
    Location
    New Jersey
    Posts
    52
    Plugin Contributions
    0

    Default Re: Price Range

    I keep seeing this on the screen

    PATH 2 - cpath - get $current $current
    [FONT="Book Antiqua"]Ajeh is the best!![/FONT]

 

 

Similar Threads

  1. v153 Price Range Mod.
    By wmorris in forum General Questions
    Replies: 1
    Last Post: 25 Sep 2014, 12:13 AM
  2. Price range for price by attributes
    By tigergirl in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Sep 2007, 05:58 PM
  3. sale price range
    By burticusmaximus in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Aug 2007, 05:51 PM
  4. 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
  5. Price Range links??
    By Kevad in forum General Questions
    Replies: 4
    Last Post: 16 Sep 2006, 04:56 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