I can not figure out how he does it. Conducted the following experiment:
- Took a snapshot of the db
- Added some images to product card
- Compare the state of the database before and after.
Only 1 table has changed - #__virtuemart_medias. It is logical to assume that it contains all the information necessary to determine whether images belong to a particular product. However, I do not see in it a single field suitable for this purpose, that is, nothing that could identify a product. Here are her fields:
virtuemart_media_id int(11) virtuemart_vendor_id smallint(11) file_title char(126) file_description char(254) file_meta char(254) file_mimetype char(64) file_type char(32) file_url varchar(1800) file_url_thumb char(254) file_is_product_image tinyint(1) file_is_downloadable tinyint(1) file_is_forSale tinyint(1) file_params varchar(19000) shared tinyint(1) published tinyint(1) created_on datetime created_by int(11) modified_on datetime modified_by int(11) locked_on datetime locked_by int(11)
Does anyone know - HOW?