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:
commit
317bbc1b8d
|
@ -116,7 +116,8 @@
|
||||||
|
|
||||||
if ( all_attributes_chosen ) {
|
if ( all_attributes_chosen ) {
|
||||||
// Get a matchihng variation via ajax
|
// 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( {
|
$form.block( {
|
||||||
message: null,
|
message: null,
|
||||||
|
|
Loading…
Reference in New Issue