Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    POS error completing payment

    Bug Report
    2
    2
    235
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andrewc last edited by

      When adding multiple custom products to the checkout and trying to complete the transaction the system dies.

      This is the error:

      exception: "Illuminate\Database\QueryException"
      file: "/var/www/vhosts/xxxx/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
      line: 664
      message: "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'custom-2019-10-01-19:34:37' for key 'products_sku_unique' (SQL: insert into products (type, attribute_family_id, sku, updated_at, created_at) values (simple, 1, custom-2019-10-01-19:34:37, 2019-10-01 19:34:37, 2019-10-01 19:34:37))"
      trace:

      1 Reply Last reply Reply Quote 0
      • L
        lwilliams-heli last edited by

        The 'sku' field needs to be unique, so you'll need to add something to the end of your string to make it more unique, i.e 'custom-2019-10-01-19:34:27-1234' where the 1234 is a random number or an incremental string.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post