Add way to add custom attributes to variable products
-
Right now, if you have a variable product with one of the attributes as ‘any’ you are unable to add this item using a cart link campaign, because the attributes need to be specified when it is added to the cart.
Inside AddProductsAction, the 4th variable is empty.
$this->cart->add_to_cart( $product_id, $product->get_quantity(), $variation_id, [], $cart_item_data );
ideally inside the admin panel, when adding a product to a cart link campaign, there would be a checkbox where you can check, and then add a list of custom attributes, and their values, which would then be passed in to this function, so the correct item can be added to the cart.
as of now, if you have a variation product with an ‘any’ attribute, you simply cannot use this plug-in for that product.
Any help is greatly appreciated!
- The topic ‘Add way to add custom attributes to variable products’ is closed to new replies.