Claudia M Posted March 1, 2018 Share Posted March 1, 2018 Hi, I added a "Track Your Order" link to the top of my page using the following: <a class="main-top-bar-txt" href="{$STORE_URL}/index.php?_a=vieworder&cart_lookup">Track Your Order</a></div> and it sends you here: In the browser it reads: https://www.claudiasbargains.com/index.php?_a=vieworder&cart_lookup Anyway, every once in awhile I get this error in my log. Any idea what if anything I should do? I don't know where the } is coming from. [01-Mar-2018 13:55:16 UTC] PHP Warning: Security Warning: Illegal array key "cart_lookup}" was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 113 Thanks in advance, Me Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 1, 2018 Share Posted March 1, 2018 Please confirm the code is correct. href="{$STORE_URL}/index.php?_a=vieworder&cart_lookup" There should be two key/value pairs: key: _a value: vieworder key: cart_lookup value: {$cart_order_id} <= MISSING Maybe you are wanting: href="{$STORE_URL}/index.php?_a=vieworder&cart_lookup={$cart_order_id}" However, you may be wanting to use the cart_lookup as the actual template variable to hold the value. Since this value changes from order to order, one cannot know what to ask for in $_POST. So, that's a bad idea. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted March 1, 2018 Author Share Posted March 1, 2018 (edited) I want to leave the order number blank, empty, so the customer can put in the order number they want to look up - not like it is in their accounts or linked in the order complete menu where the order number is already there. href="{$STORE_URL}/index.php?_a=vieworder&cart_lookup={$cart_order_id} Is this what I should use? Edited March 1, 2018 by Claudia M Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 1, 2018 Share Posted March 1, 2018 (edited) I would use simply: href="{$STORE_URL}/index.php?_a=vieworder" That is, unless you need different content than the standard "Lookup Order" page. Edited March 2, 2018 by bsmither Quote Link to comment Share on other sites More sharing options...
Claudia M Posted March 1, 2018 Author Share Posted March 1, 2018 That worked. Thanks Brian! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.