HunkBeny Posted August 12 Share Posted August 12 Hi all! I am in the process of creating a module for our e-commerce stores. Because we need some functionality relating to HS-codes, I added a field for this in the products tab via a custom module. I store HS-codes in the database, every product can have at most one HS-code. Our product managers create products via our ERP system, which adds these products to Prestashop via the webservice. Now my question: Is it possible to add my HS-code field to the schema of `Product`? I know that I can extend the webservice like this, but I rather just send my custom field via an existing endpoint rather than creating a new endpoint. Thanks in advance! Link to comment Share on other sites More sharing options...
Krystian Podemski Posted August 12 Share Posted August 12 Hello! You can use overrides to achieve the result. In the override file, you have to alter the definition of the given ObjectModel. Link to comment Share on other sites More sharing options...
HunkBeny Posted August 12 Author Share Posted August 12 I was afraid of this, I rather not use overrides. But if this is the correct way, then I will do so. Thanks Krystian! Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 12 Share Posted August 12 Please can you specify PS version Link to comment Share on other sites More sharing options...
HunkBeny Posted August 12 Author Share Posted August 12 PS 8.2 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 13 Share Posted August 13 No needs to override. You have hooks to add additional data. Just create a module. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted August 13 Share Posted August 13 @Prestashop Addict to add a custom endpoint or to extend an existing one? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now