Okay
  Public Ticket #1514176
Frontend Coupon Codes
Closed

Comments

  • 2dogrc started the conversation

    I am getting an error when using coupon codes on the checkout page.  They work when placing an order via the admin section.

    Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at JSON.parse (<anonymous>)
        at Object.process (error-processor.min.js:1)
        at Object.<anonymous> (set-coupon-code.min.js:1)
        at fire (jquery.min.js:212)
        at Object.fireWith [as rejectWith] (jquery.min.js:218)
        at done (jquery.min.js:628)
        at XMLHttpRequest.callback (jquery.min.js:655)


    Could you please take a look?

    you can use the code arrow

    it should take $1 off

  • 2dogrc replied

    The codes work when entered in the cart, but not if entered on the final checkout page.

  • [deleted] replied

    Hi

    I think that it relate to permission of this link

    https://2dogrc.com/rest/default/V1/guest-carts/d3907d6b75e3930b1de6a7dbf4fc5e5c/coupons

    I get 403 permission, I also get this problem when change to Luma theme


  • 2dogrc replied

    Thank you!

     It seems my hosting company added more rules in the .htaccess. We found it was the 6G firewall settings.  Not all are compatible with Magento.