twistedindustries.com Posted November 17, 2007 Posted November 17, 2007 When a customer hits either prev or next page link or hits buy now it adds a &sort=2a and sorts all the products differently what causes this?
ttt2 Posted April 24, 2008 Posted April 24, 2008 I also would like to know where does sort=2a come from. When I do a print statement using echo tep_href_link(basename($PHP_SELF),tep_get_all_get_params(array('listing')), NONSSL); sort=2a is embedded to the link, but does not show up in the browser link. I would like to know because I want to use tep_href_link(basename($PHP_SELF),tep_get_all_get_params(array('listing')), NONSSL) to generate links. Thanks
arietis Posted April 25, 2008 Posted April 25, 2008 I also would like to know where does sort=2a come from. When I do a print statement using echo tep_href_link(basename($PHP_SELF),tep_get_all_get_params(array('listing')), NONSSL); sort=2a is embedded to the link, but does not show up in the browser link. I would like to know because I want to use tep_href_link(basename($PHP_SELF),tep_get_all_get_params(array('listing')), NONSSL) to generate links. it's coming from the tep_get_all_get_params() function. it doesn't show up in the browser's url because the page that is calling tep_get_all_get_params() adds it to the list of get parameters and when the function is called, it adds it to the links being generated. if you want to add new values and have them show up in the links generated when using tep_get_all_get_params(), you should just be able to add them to the $HTTP_GET_VARS array, as in: $HTTP_GET_VARS['sort'] = '2a'; do that before calling the tep_get_all_get_params() function. i hope that helps.
ttt2 Posted April 25, 2008 Posted April 25, 2008 Thank you for the reply. That clear up some things. I did some more testing, and it seems that with or without the sort=2a in the browser's url the effect is the same. I didn't notice any difference with webpages. Are there any side effects that browser doesn't display? I'm trying to create products sort/filter infobox that can filter manufactures, prices, etc. on the current product listing page. I seen many sites use this filtering idea, but I couldn't find any add-on like it. If it works, I will put it on contributions. cross fingers.
arietis Posted April 25, 2008 Posted April 25, 2008 Thank you for the reply. That clear up some things. I did some more testing, and it seems that with or without the sort=2a in the browser's url the effect is the same. I didn't notice any difference with webpages. Are there any side effects that browser doesn't display? I'm trying to create products sort/filter infobox that can filter manufactures, prices, etc. on the current product listing page. I seen many sites use this filtering idea, but I couldn't find any add-on like it. If it works, I will put it on contributions. cross fingers. i should point out that the use of the sort=2a in the target page depends on the target page. not all pages even look at the sort parameter. i don't know exactly which page you're working on, but make sure that, if it pays attention to a sort= parameter, that it understand what you're saying to it when you specify sort=2a. if it doesn't even look for a sort= parameter, perhaps this is why you're not seeing the behavior you're expecting.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.