Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Some Help with Code, passing 2 varaible to new page?


Recommended Posts

I am working on a contribution, basically I want to have the customer enter their email and order number and then get that orders details to show (without logging in). Below is the code I have already, just need a little help because I think I'm doing something wrong when passing the info. I have Ultimate SEO install, maybe I need another rewrite rule???? Not sure???



Using the code below I get "&" instead of "&"


So I have: www.mysite.com/[email protected]&myorderid=12345

I need: www.mysite.com/[email protected]&myorderid=12345


Maybe someone can help with the rewrite rule I need to add?





$my_link = tep_href_link(FILENAME_GRAB_ORDER, 'myemail='. $HTTP_POST_VARS['email_address'] .'&myorder_id=' . HTTP_POST_VARS['my_order_number'] );

tep_redirect($my_link , '', 'SSL');

htacess file rules

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /

RewriteCond %{QUERY_STRING} ^options\=(.*)$
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /missing.html

Link to comment
Share on other sites

Have you checked your web site error log?


You could also try it on a version without SEO on to know if this is the problem.


I had it a while ago when working on a store, and am trying hard to remember what i did to resolve it!


Will let you know if and whjen i remember.



Sometimes you're the dog and sometimes the lamp post


My Contributions

Link to comment
Share on other sites


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

  • Create New...