I am on my checkout page at index.php/en/cart

When i want to update the quantity of a product i change the number and hit the refresh button but it leads me to
this page: index.php/en/checkout/cart/edit

And it is blank only saying {"location":"module"}

Can anyone suggest me where to search for this (what seems to me) JSON object and how i can solve it?
Tuesday, May 16 2017, 04:54 PM
Share this post:
Responses (5)
  • Accepted Answer

    Tuesday, October 10 2017, 06:17 PM - #Permalink
    Hi, I had the same issue, and your posts were very helpful. The issue is related to the using of SEO urls.

    The solution that worked for me was to change de SEO route for the cart.

    This is what I did:
    System > URL manager > cart

    Edit from:
    route=cart

    to:
    route=checkout/cart

    Hope it works for you.

    Carlos Pinto wrote:

    [FOUND THE PROBLEM]
    The problem is that the controller cart.php is searching either one of these paths:
    $checkCart = strpos($_SERVER['HTTP_REFERER'], 'checkout/cart');
    $checkCheckout = strpos($_SERVER['HTTP_REFERER'], 'checkout/checkout');


    But when i click on my cart, the path is simply just 'cart' without the checkout before.

    So my question is, what the difference is between
    index.php/checkout/cart
    AND
    index.php/cart

    Thanks in advance for your time and help!
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 16 2017, 10:14 PM - #Permalink
    Did you resolve this issue
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 17 2017, 02:07 AM - #Permalink
    [FOUND THE PROBLEM]
    The problem is that the controller cart.php is searching either one of these paths:
    $checkCart = strpos($_SERVER['HTTP_REFERER'], 'checkout/cart');
    $checkCheckout = strpos($_SERVER['HTTP_REFERER'], 'checkout/checkout');


    But when i click on my cart, the path is simply just 'cart' without the checkout before.

    So my question is, what the difference is between
    index.php/checkout/cart
    AND
    index.php/cart

    Thanks in advance for your time and help!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 17 2017, 12:41 AM - #Permalink
    I am getting closer to a solution.
    I found out that the controller cart.php on line 418 has a condidion of the cart.
    Either it will be redirected or it will be "module"

    I am absolutely new to Arastta so i do not know what this means :)

    I think that i have to activate a module or so, but i am not sure.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 16 2017, 08:35 PM - #Permalink
    [UPDATE]
    Now the console pops up with this information:
    Resource interpreted as Document but transferred with MIME type application/json

    I will google that and see if i cand find the problem.
    The reply is currently minimized Show
Your Reply