Custom product types
-
Hello,
We have a plugin for Gift Cards that is based upon the Variable product type. Your plugin causes it to break since it only looks for the “variable” product type.
I have two proposed solutions, whichever you see fit:
Solution idea 1 – Change ./assets/js/woo-add-gtin.js file so that line 21 reads:
if( variation.variation_id && window.wooGtinVars.variation_gtins ) {Solution idea 2 – change “$product->is_type( ‘variable’ )” to be “is_a( $product, ‘WP_Product_Variable’ )” instead so that it matches any inherited classes.
- The topic ‘Custom product types’ is closed to new replies.