Bagisto Forum

    Bagisto

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

    Custom Cart-Item

    General Discussion
    2
    2
    437
    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.
    • P
      PieterM last edited by

      Hey

      On my product page the customer can add a personalised text that can be printed on the product.
      Now I have added this inputfield on the overridden view with a custom name.

      The problem I have is that this data is send in the request but it isn't saved on the cart-items tableobject. The table is already updated with this new field. I sah in code that I need to override the packages/Webkul/Checkout/src/Cart.php class because here the array with data is given to the createItem method.

      My question is how can I override this class?

      If there is a better method to achieve this please inform me.

      Kind Regards

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @PieterM

        Please read below one -

        https://forums.bagisto.com/topic/437/override-core-model/2

        https://devdocs.bagisto.com/override-core-model.html

        Thanks

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