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 ...
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!
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!
[FONT="Book Antiqua"]Ajeh is the best!![/FONT]
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!
I keep seeing this on the screen
PATH 2 - cpath - get $current $current
[FONT="Book Antiqua"]Ajeh is the best!![/FONT]