Skip to content

Instantly share code, notes, and snippets.

@creitve
Last active January 13, 2016 15:01
Show Gist options
  • Save creitve/97768e3654d8aba54f1e to your computer and use it in GitHub Desktop.
Save creitve/97768e3654d8aba54f1e to your computer and use it in GitHub Desktop.
diff --git a/app/functions/fn.catalog.php b/app/functions/fn.catalog.php
* @param int $from_product_id Identifier of product from that options are copied
* @param int $to_product_id Identifier of product to that options are copied
* @param int/boolean $from_global_option_id Identifier of the global option or false (if options are copied from product)
- * @param array $v Product option data
+ * @param array $option_data Product option data
+ * @param array $change_options Links old options to the new ones via ids
+ * @param array $change_variant Links old variants to the new ones via ids
*/
- fn_set_hook('clone_product_option_post', $from_product_id, $to_product_id, $from_global_option_id, $v);
+ fn_set_hook('clone_product_option_post', $from_product_id, $to_product_id, $from_global_option_id, $option_data, $change_options, $change_variants);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment