mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
syntax fixed.
This commit is contained in:
committed by
Geoff Taylor
parent
60dde15f90
commit
45f14ca7df
@@ -21,7 +21,7 @@ class CartHelper extends WCG_Helper {
|
||||
! empty( $product['quantity'] ) ? $product['quantity'] : 1,
|
||||
! empty( $product['variation_id'] ) ? $product['variation_id'] : 0,
|
||||
! empty( $product['variation'] ) ? $product['variation'] : array(),
|
||||
! empty( $product['cart_item_data'] ) ? $product['cart_item_data'] : array(),
|
||||
! empty( $product['cart_item_data'] ) ? $product['cart_item_data'] : array()
|
||||
);
|
||||
} else {
|
||||
WC()->cart->add_to_cart( $product, 1 );
|
||||
|
||||
Reference in New Issue
Block a user