urgent opencart help needed

Discussion in 'Programming' started by RDarby, May 30, 2014.

  1. #1
    Hi, it appears that the "add to cart" button on my site has suddenly stopped working, I don't know how to fix this but it is obviously a vital issue to fix.

    Any help would be much appreciated my store is at www.leluxeboutique.co.uk

    Thank you!
     
    RDarby, May 30, 2014 IP
  2. 2WDH.com

    2WDH.com Active Member

    Messages:
    143
    Likes Received:
    3
    Best Answers:
    5
    Trophy Points:
    68
    #2
    Hi.
    Did you make any changes to your opencart recently (upgrade or template changes for example)?
     
    2WDH.com, May 30, 2014 IP
  3. ironcladservers

    ironcladservers Well-Known Member

    Messages:
    389
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    115
    #3
    And if you didn't make any changes ^^, has your host? You can contact them too, could be something specific to them also if nothing's changed on your site. Can you confirm the issue happens after clearing temp files/cookies, and on other browsers too?
     
    ironcladservers, May 30, 2014 IP
  4. RDarby

    RDarby Well-Known Member

    Messages:
    79
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    118
    Digital Goods:
    1
    #4
    hello!

    I installed a module before i noticed the error, I have since removed it but the error remains. I cannot work this one out, may have to reinstall my template.

    Same error in different browsers and after clearing cache
     
    RDarby, Jun 2, 2014 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    The error is due to cross-site scripting - here's the complete error-message when clicking on "add to cart":
    "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://leluxeboutique.co.uk/index.php?route=checkout/cart/add. This can be fixed by moving the resource to the same domain or enabling CORS."
     
    PoPSiCLe, Jun 2, 2014 IP
  6. RDarby

    RDarby Well-Known Member

    Messages:
    79
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    118
    Digital Goods:
    1
    #6
    Hi, Thank you for the response.

    What exactly do you mean by moving the resource? what in my case, would be the resource. and as for your other suggestion, I am not familiar with CORS...

    Thanks
     
    RDarby, Jun 2, 2014 IP
  7. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #7
    I'm not meaning anything - I'm pasting the content of the error-message from FireBug. I would look up the specific error-message, perhaps look at what CORS means, or look at redirection, .htaccess, maybe also look at how domains are assigned - I'm assuming the error is in the route=checkout/cart/add bit - it should probably be a full domain link, or something else is afoot.
     
    PoPSiCLe, Jun 3, 2014 IP