Author Topic: Checkout's last step brings back to index.php...  (Read 5196 times)

deeptii

  • Beginner
  • *
  • Posts: 8
Checkout's last step brings back to index.php...
« on: April 27, 2008, 06:42:48 am »
I have just installed a fresh Joomla 1.5.3 and Virtuemart 1.1.

Using the sample data that came with Virtuemart, in the checkout process's last step, after pressing the last checkout, it brings the user back to the index page and nothing happens!...

Can anyone tell me what's going on here?

test URL: http://www.ceintimates.com/

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27478
  • Always on vacation
    • Jenkin Hill Internet
Re: Checkout's last step brings back to index.php...
« Reply #1 on: April 27, 2008, 11:07:17 am »
Is a valid SECUREURL set in VM's configuration? Is a single payment method set up or more than one?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

deeptii

  • Beginner
  • *
  • Posts: 8
Re: Checkout's last step brings back to index.php...
« Reply #2 on: April 27, 2008, 15:16:18 pm »
Hi,

I don't currently have HTTPS so I set the SECUREURL the same as normal: HTTP.

Currently I have enabled 4 payment methods.

deeptii

  • Beginner
  • *
  • Posts: 8
Re: Checkout's last step brings back to index.php...
« Reply #3 on: April 27, 2008, 15:25:35 pm »
OK i found out why, in checkout.index.php, the form was built:

$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['PHP_SELF']) .'" method="post" name="adminForm">

However, $_SERVER['PHP_SELF'] doesn't seem to return the full URL on my server, it returns only http://www.ceintimates.com/index.php.

After i pasted the whole thing (i.e. http://www.ceintimates.com/index.php?page=checkout.index&option=com_virtuemart&Itemid=1&redirected=1&Itemid=1) as form action everything works... is this a bug?

deeptii

  • Beginner
  • *
  • Posts: 8
Re: Checkout's last step brings back to index.php...
« Reply #4 on: April 27, 2008, 15:32:54 pm »
After I changed the code to

$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['REQUEST_URI']) .'" method="post" name="adminForm">

Things work now.

My platform was Apache 2, PHP 5