Post by pedro1993 » Wed Jan 29, 2014 7:54 am

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

For OpenCart & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support


Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by rempong » Wed Jan 29, 2014 12:19 pm

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


Active Member

Posts

Joined
Fri Sep 14, 2012 2:38 pm
Location - Indonesia

Post by MarketInSG » Wed Jan 29, 2014 10:59 pm

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.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 4 guests