Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Simple Order Status input box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-21-2008, 01:00 PM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Simple Order Status input box

I want to make a very simple order status box on my main page.

Basically I want to have one little input box where anyone can put in their order number and click submit. In this I want the submit button to open a url like this:

http://www.rjroffroad.com/order.php?status&orderid=#####

And I want it to use the data input into the box to complete the link.

I haven't the first clue how to do that. Any simple html methods to do that?
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #2  
Old 02-21-2008, 01:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Simple Order Status input box

The problem with this is, what's stopping people from putting others order numbers in? Major security risk here IMHO and I don't recommend it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-21-2008, 01:16 PM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Re: Simple Order Status input box

Quote:
Originally Posted by balinor
The problem with this is, what's stopping people from putting others order numbers in? Major security risk here IMHO and I don't recommend it.

First thing it does it take you to a login screen. If you don't have their login and password, you can't view it.

I thought that too, but created an order with a login I use alot, and then logged in with a test account, and it gives me an access denied screen. So you can't have just the order #, you have to have the login too.
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #4  
Old 02-22-2008, 04:34 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Simple Order Status input box

Insert this into any tpl you want.

Code:
{if $login} <form method="GET" action="order.php?"> <input type="text" name="orderid"> <input type="submit" value="View my order"> </form> {/if}

or create new /skin1/order.tpl with code

Code:
{if $login} {capture name=menu} <form method="GET" action="order.php?"> <input type="text" name="orderid"> <input type="submit" value="View my order"> </form> {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"} {/if}

and insert into home.tpl (or another) to left column this include

Code:
{include file="order.tpl"}

Comfortable thing! Enjoy!
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:26 AM.

   

 
X-Cart forums © 2001-2020