Author Topic: checkout process blocked at step=1 when SEF on  (Read 3236 times)

miredo

  • Beginner
  • *
  • Posts: 2
checkout process blocked at step=1 when SEF on
« on: September 03, 2012, 11:56:34 am »
Hello,
I have Joomla 1.5.26
Virtuemart 1.1.9
My problem is that during the checkout process, when I click on "Next" to go from step 1 (Shipping adress) to step 2 (ship methods), I remain on the step 1 page and I can't go further.
This happens only when SEF is on.
I followed the advice of FORREST in the topic "Troubleshooting SEF: 404, 500, incorrect redirects, and other page errors": I have only one virtuemart menu item (named vmshop) with no parameters in it.
Cookie check in is disabled.
I installed "virtuemart sef", hoping that this could solve the problem, but the problem remains the same.

The "show cart" is at the following url:
http://www.instants-presents.lu/en/vmshop/cart/?sef=h
after clicking on "checkout" the url is:
http://www.instants-presents.lu/index.php?page=checkout.index&option=com_virtuemart&Itemid=76&redirected=1&Itemid=76
then after clicking on "next":
http://www.instants-presents.lu/en/vmshop/checkout/?checkout_last_step=1&sef=h
I am still on the same page (step 1 of checkout)
If I change manually the checkout_last_step=1 to checkout_last_step=2 in the url, then I see correctly the step 2 page, but I can not go to this page by clicking on "next".
Why doesn't it redirect me to step 2 ?

Does anyone have an idea what to do to solve this problem ?
My shop is at this adress:
http://www.instants-presents.lu/en/vmshop/
and you can use
login: test2
and password: test
to try the checkout.

Thank you very much in advance for your help,
Mireille
 

miredo

  • Beginner
  • *
  • Posts: 2
Re: checkout process blocked at step=1 when SEF on
« Reply #1 on: September 26, 2012, 17:38:45 pm »
After hours and hours of hard work (I even did a complete fresh install of my whole site  :o), I finally found de solution to my problem.
In my .htaccess I had the following lines:
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.instants-presents.lu/$1/ [R=301,L]
This adds a trailing slash at the end of the path.
I just removed these two lines and my checout process works perfectly.
In fact I noticed that my adress was
http://www.instants-presents.lu/fr/vmboutique/?page=checkout.index&checkout_last_step=1
instead of
http://www.instants-presents.lu/fr/vmboutique?page=checkout.index&checkout_last_step=1
There was a slash after vmboutique (vmboutique is my main virtuemart menu item)
So now it works fine.
I am now asking myself if I should write a condition un .htaccess to remove all the trailing slashs (to avoid duplicate content), or is this not necessary ?
(but this should maybe asked elsewhere)
Hopefully this answer will ne helpfull for someone.
Best regards, Mireille