When a user accesses the payment site he is immediately redirected to the frontpage without beeing able to choose his payment methode or buying anything.
There are no php errors or entries in the EXCEPTION_LOG. Do you have any ideas what is wrong our can you atleast give me some hints.
If you have any modules active turn them off, also switch to the standard theme. If the error remains check your shop with oxchkversion.
Thanks for your reply. While trying everything you wrote I realized that the bug is located somewhere else. The user is redirected to the front page because his basket is empty. I did some more research and I think the problem is that we aren’t generating correct “tobasket” urls. I found this php code here:
$link = "warenkorb/?fnc=tobasket&aid=' . $artikelid . '&am=1"
I think this isn’t the best, or even a good way of doing this. How should we do this instead?
I am sorry that I wasn’t able to provide these informations when I started the thread but I’m currently finding my way into this project and they guy who wrote the code in the first place did a great job at hiding what is going on…
Well the code you supplied is very basic but should work in general, additionally the user should not be able to even proceed to payment with an empty basket. You can see how it should work here: http://demoshop.oxid-esales.com/community-edition/
If you are using a custom template and it doesn’t work, you should check the differences to the supplied azure theme. For example you can see how to create a tobasket link in the product templates in tpl/widget/product.