Hi everyone,
I was thinking, I have made a few extensions that all my customers to add extra fields or data to a particular product. Each one of those extensions require some database changes. For example, my Product Video Suite:
Users must run the install script to create an extra table called oc_product_video
When saving that product the VQMod file adds a little code which adds the video URLs to that table.
I think it would be good if there was an extra field in the product table called "product_data" which contains serialized data, in the same way module settings, and store settings are stored.
It would be cleaner that way because the database structure doesn't need to be be tampered with and it can also keep code to a minimum when saving product data.
What do you all think?
Peter
I was thinking, I have made a few extensions that all my customers to add extra fields or data to a particular product. Each one of those extensions require some database changes. For example, my Product Video Suite:
Users must run the install script to create an extra table called oc_product_video
When saving that product the VQMod file adds a little code which adds the video URLs to that table.
I think it would be good if there was an extra field in the product table called "product_data" which contains serialized data, in the same way module settings, and store settings are stored.
It would be cleaner that way because the database structure doesn't need to be be tampered with and it can also keep code to a minimum when saving product data.
What do you all think?
Peter
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Nice idea, but serialized data hard to do find / search operation, maybe consider to using some EAV table, like magento does
OPENCART MODULE :
Opencart Compare Link Link your compared product to forum/email
Frontend Link From Admin Dashboard Get link to product , category, manufacturer, information from admin backend.
Copy and DIRECTLY Edit Product the easy way.
Custom Product Sort Full control to product sorting options
Already Sold Product Module, shows total product sold
the problem if you have a data column is that all extensions would be using it. And before they update to it, they will have to fetch the correct data and serialize it, along with their data. It's going to be a mess, with even more extension conflicts.
Who is online
Users browsing this forum: No registered users and 4 guests