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
If you have a subscription and other products in the cart, get_cart_total() only returns the subscription price while get_cart_subtotal() returns the expected '$100 now then $5 / month'.
get_cart_contents_count() behaves similarly (always returns 1 when a subscription is in the cart, regardless of how many items there actually are).
Wasn't sure if the issue was in subscriptions or core so go ahead and move if so.
The text was updated successfully, but these errors were encountered:
Subscriptions doesn't use the 'woocommerce_cart_contents_total' filter to customise the display of get_cart_total(). I think that's just an oversight on my part and probably just because get_cart_total() isn't used in WooCommerce core anywhere. A silly omission on my part as I added the filter! SHA: a08ed36
I've hooked to it with woothemes/woocommerce-subscriptions@44e7583 to display the full formatted cart total. That will go public with 1.5.10 in a couple of weeks.
get_cart_contents_count() behaves similarly (always returns 1 when a subscription is in the cart
That's a bug in Subscriptions. I've fixed it up with woothemes/woocommerce-subscriptions@4945e3ed6e979c.
If you have a subscription and other products in the cart,
get_cart_total()
only returns the subscription price whileget_cart_subtotal()
returns the expected '$100 now then $5 / month'.get_cart_contents_count()
behaves similarly (always returns 1 when a subscription is in the cart, regardless of how many items there actually are).Wasn't sure if the issue was in subscriptions or core so go ahead and move if so.
The text was updated successfully, but these errors were encountered: