You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.
Hi. We have Woocommerce variable product and bundle product, and want to add these products to cart with 'subscribe all the thing'`s subscription option like '2_weeks' or '3_weeks' in our custom page but I cannot find how to do that.
Is there a proper way?
I tried to do following methods.
$cart_item_key = WC()->cart->add_to_cart(11121, 1, 11151);
=> Item is inserted in cart. (is there way to set subscription option in this add to cart step?)
Hi. We have Woocommerce variable product and bundle product, and want to add these products to cart with 'subscribe all the thing'`s subscription option like '2_weeks' or '3_weeks' in our custom page but I cannot find how to do that.
Is there a proper way?
I tried to do following methods.
$cart_item_key = WC()->cart->add_to_cart(11121, 1, 11151);
=> Item is inserted in cart. (is there way to set subscription option in this add to cart step?)
WC()->cart->cart_contents[ $cart_item_key ][ 'wcsatt_data' ][ 'active_subscription_scheme' ] = '5_week';
=> item's subscription option in cart not changed.
Thanks.
The text was updated successfully, but these errors were encountered: