Merge pull request #11378 from franticpsyx/variations-script-ajax-post-custom-data

[2.6] Post custom data when fetching a variation via ajax
This commit is contained in:
Mike Jolley 2016-07-19 13:41:27 +02:00 committed by GitHub
commit 317bbc1b8d
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@
if ( all_attributes_chosen ) {
// Get a matchihng variation via ajax
data.product_id = $product_id;
data.product_id = $product_id;
data.custom_data = $form.data( 'custom_data' );
$form.block( {
message: null,