-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use "reference_id" colum (item table) to keep an array data #43
Comments
The item table is not a product table, that is why it doesn't hold more This gives you freedom to create your own custom product tables with the
|
Yes, I understand. But with "class" and "reference_id" columns you can only I wonder how to get a good way to obtain a general method to store two o In my local fork (not yet uploaded) I did modification to achieve this, so This gives you freedom to create your own custom product tables with the
— |
That approach sounds good.
|
I've seen some ways: class = "Array" class = "Array" class = "Class1, Class2, ..." I need to this because I am selling products with two involved classes.
|
Hello
I am dealing with you great package, I want to propose to keep more data in the item table when you don't use a class. At this moment you can keep the sku, price and a id key of a certain class. But if you need to keep an array of ids for example (in my case, array of ids of two classes) you need to modifiy the table, I would to reuse the reference_id column that is null when you create a item without associated class, like this:
The idea is to retrieve this array when you read the items in the future:
I can prepare a PR in this way if the owner wants.
The text was updated successfully, but these errors were encountered: