Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Link box added..want to keep session id


theman

Recommended Posts

Posted

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

Posted

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

Posted
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

Archived

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

×
×
  • Create New...