Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Master Products Addon Integration Rate Topic   - - - - -

  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12072 posts

Posted 22 February 2021 - 07:03 PM #1

Has anyone integrated their addon with the relatively new master_products addon in MVE?

I would like to include selected custom fields from an addon (have been added to ?:products) in the vendor available fields and also to have the Addons tab show with the data related to those custom fields.


I'm guessing that I need to add product fields via schemas/master_products/product_data.synch.post.php in my addon.  I.e. something like:


$existing_fields = Type::create(PRODUCT_TYPE_VENDOR_PRODUCT_OFFER)->getFields();

$schema = [
    'products'                      => MainTable::create('products', 'my_field_name', $existing_fields)];
return $schema;



Will this in fact create a vendor-specific instance of 'my_field_name' that is unique per vendor?


Or given the master_products seems to be built upon product_variations are symbiotic can it just be done for both product_variations and master_products by using the schemas/product_variations/product_types.post.php schema instead?  I.e. kill both birds with one stone?

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.