Darklings Posted September 19, 2005 Posted September 19, 2005 Hi, I wondered if someone knows where osC handles the sort for the product_listing.php My problem is this: at the top and bottom of my product listing it shows the pages.. but if i click on 'next' this is my url: cPath=35&page=2 research on others showed me i should get: cPath=35&sort=2a&page=2 So my 'sort' is disapeard on a mistiries way.. i have compared my product_listing and functions/general with the osc-default pages - but couldnt find anythin abnormal... Maybe someone has experience with this - and knows how this works? knows where that sort comes from - maybe i accidently put it out of the code while doing one of many modifications...... but i dont know where osc handles it .. what pages... or how.... Kind Regards, Tom Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf
Guest Posted September 19, 2005 Posted September 19, 2005 do you have contributions installed like those hiding the "buy button"?
Darklings Posted September 20, 2005 Author Posted September 20, 2005 Yes, i have many and lots of contribs installed... And yes - one that hides the 'buy button'... is that causing it? (hide buy button when price is 0) Kind Regards, Tom Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf
Darklings Posted September 20, 2005 Author Posted September 20, 2005 When i manualy change my links and put a 'sort=2a' between the Path & Page then i get the link when i go over 'next' or 'previeus' with the sort in it for that product - but as soon as i change categorie - or products - the sort is out of my url.... anybody can help me pls???? Kind Regards, Tom Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf
Guest Posted September 20, 2005 Posted September 20, 2005 at least one of the hide button contrib I remember conditionally gets the parameters from the address bar. This would explain why doesn't work on page-2,3 etc because when the code does tep_get_all_get_params(array('action')) it also gets the sort fields but I think it only gets them if the buy button is enabled. You will have to fix the code look in includes\modules\products_listing.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.