PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.3.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.3.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Admin/PlanPresenter.php +2 -0 2.2.0 → 2.3.0 View file →
@@ -10,8 +10,9 @@
10 10 */
11 11
12 12 namespace SpringDevs\Subscription\Admin;
13 13
14 +use SpringDevs\Subscription\Illuminate\Helper;
14 15 use SpringDevs\Subscription\Illuminate\Plans\PlanRepository;
15 16
16 17 /**
17 18 * Plan presenter.
@@ -150,8 +151,9 @@
150 151 'base_price' => ( $product && ! $is_variable ) ? self::money( (float) $product->get_price() ) : '',
151 152 'one_time_on' => $product ? ( 'yes' === $product->get_meta( '_subscrpt_one_time_enabled' ) ) : false,
152 153 'ot_regular' => ( $product && ! $is_variable ) ? self::one_time_price( $product ) : '',
153 154 'ot_offer' => ( $product && ! $is_variable ) ? (string) $product->get_sale_price() : '',
155 + 'user_cancel' => $product ? Helper::can_user_cancel( $product->get_meta( '_subscrpt_user_cancel' ) ) : true,
154 156 'edit_url' => get_edit_post_link( $oid, 'raw' ),
155 157 'view_url' => get_permalink( $oid ),
156 158 'rows' => array(),
157 159 'variations' => array(),