Modification to the function buttonCallback in order to redirect the script to another function that is compatible with WooCommerce version 2.0 and above. The new function uses another function for extracting the product details. This new function is made for compatibility with WooCommerce 2.0 and above.