is_required()
is_required()
This class handles caching for the product tables.
add_to_cart_multi(\Barn2\Plugin\WC_Product_Table\type  $products): array
                Add multiple products to the cart in a single step.
| \Barn2\Plugin\WC_Product_Table\type | $products | 
 | 
An array of product IDs => quantity added
fix_cart_data_product_ids(array  $cart_data): array
                Posted cart_data uses indexes of the form 'p1234' where '1234' is the product ID.
This is because of a limitation of the JS serializeObject function. We run this function to remove the 'p' prefix from each index in the array.
| array | $cart_data | The cart data to be sanitized | 
The same array with keys replaced with the corresponding product ID