Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Link box added..want to keep session id


theman

Recommended Posts

Hi,

 

I added a quicklinks box to my site..and it links to quick searches (using the "OR" operator)

rite now i have it like

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="http://www.mysite.com/catalog/advanced_search_result.php?keywords=word1+or+word2+or+word3+or+word4">' . BOX_INFORMATION_1 . '</a><br>' .

 

 

i need it to keep the session id..how can i do that?

 

plz help

Link to comment
Share on other sites

use the tep_href_link function

 

example you can find in the includes/boxes/information.php code

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Just noted the use of the parameter, this is the syntax to use to pass a parameter

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link("http://www.mysite.com/catalog/advanced_search_result.php", "keywords=word1+or+word2+or+word3+or+word4") . '">' . BOX_INFORMATION_1 . '</a><br>' .

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

tep_href_link makes it do http://www.mysite.com/catalog/advanced_sea...esult.php", "keywords=word1+or+word2+or+word3+or+word4?oscID=12dasfasdf2314234234

 

while when u do an advnace search result u get

http://www.mysite.com/catalog/advanced_sea...esult.php", "keywords=word1+or+word2+or+word3+or+word4&oscID=12dasfasdf2314234234

 

so it still logs me out :(

Link to comment
Share on other sites

Just noted the use of the parameter, this is the syntax to use to pass a parameter

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link("http://www.mysite.com/catalog/advanced_search_result.php", "keywords=word1+or+word2+or+word3+or+word4") . '">' . BOX_INFORMATION_1 . '</a><br>' .

Hi I tested this on my site, and the example is correctly returning &osCid

 

but, the url path should be defined as local, so the code should read, with the crucial bit in bold, the parameters need to be passed seperately from the url. This way system knows that the osCid needs to be prepended with & and not ? (as this is used for the initial parameter only)

 

------

$info_box_contents[] = array('text' => '<a href="' . tep_href_link("advanced_search_result.php", "keywords=word1+or+word2+or+word3+or+word4") . '">' . BOX_INFORMATION_1 . '</a><br>' .

------

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...