X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modify Payment Details error (https://forum.x-cart.com/showthread.php?t=31681)

TheCorp 06-05-2007 08:10 PM

Modify Payment Details error
 
I took over for another developer for transitioning an x-cart installation from one server to another. I also upgraded to 4.0.17 in the process. One thing I noticed though and I am not sure if this happened on the old server but I assume it was happening because it was part of the uneditted code:

When a user adds something to the cart and then starts the checkout process and they try to modify their payment details after selecting a payment method I seem to run into problems. From this page...

http://www.rjmodelships.com/store/register.php?mode=update&action=cart&paymentid=18

The user can change their payment details but once they hit submit on this page it seems to go to

http://www.rjmodelships.com/store/search.php?mode=search

I have looked all over register.php, include/register.php and the register.tpl and I can't seem to figure out where this is coming from. I even echo'd the

{$register_script_name}?{$smarty.server.QUERY_STRI NG}

which is in the register.tpl and it outputs the correct string which is

register.php?mode=update&action=cart&paymentid=18

Obviously somewhere in the register.php (the include) it sends it to the search.php and I just can not figure out why or where that is. Any help with this would be greatly appreciated. Thanks!

TheCorp 06-06-2007 07:23 AM

Re: Modify Payment Details error
 
Anyone have any ideas?

balinor 06-06-2007 08:11 AM

Re: Modify Payment Details error
 
I'd open a ticket with X-Cart on this one.

TheCorp 06-06-2007 10:19 AM

Re: Modify Payment Details error
 
Id rather not open a ticket yet, I wont be beat by this bug! Hehe. Anyways in the register.php (main folder, not the include register.php) there is this chunk of code...

if ($REQUEST_METHOD == "POST" && $action == "cart") {

if (empty($reg_error))
func_header_location("cart.php?mode=checkout&payme ntid=$paymentid");

}

Its apparently the root of my problem. For whatever reason the Request method and action do not equal what they should so it never gets inside this if statement to send things onto the cart. Any ideas why this might be? I checked the FORM in the register.tpl and all the right things seem to be there.


All times are GMT -8. The time now is 02:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.