PluginProbe
Tiered Pricing Table for WooCommerce / 8.1.0
Tiered Pricing Table for WooCommerce v8.1.0
8.1.0 8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 All 92 releases
← All changes | freemius/includes/customizer/class-fs-customizer-upsell-control.php +7 -4 2.3.2 → 8.1.0 View file →
@@ -57,10 +57,14 @@
57 57 $this->json['button_url'] = $this->fs->is_in_trial_promotion() ?
58 58 $this->fs->get_trial_url() :
59 59 $this->fs->get_upgrade_url();
60 60
61 + $api = FS_Plugin::is_valid_id( $this->fs->get_bundle_id() ) ?
62 + $this->fs->get_api_bundle_scope() :
63 + $this->fs->get_api_plugin_scope();
64 +
61 65 // Load features.
62 - $pricing = $this->fs->get_api_plugin_scope()->get( $this->fs->add_show_pending( "pricing.json" ) );
66 + $pricing = $api->get( $this->fs->add_show_pending( "pricing.json" ) );
63 67
64 68 if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65 69 // Add support features.
66 70 if ( is_array( $pricing->plans ) && 0 < count( $pricing->plans ) ) {
@@ -68,9 +72,8 @@
68 72 'kb' => 'Help Center',
69 73 'forum' => 'Support Forum',
70 74 'email' => 'Priority Email Support',
71 75 'phone' => 'Phone Support',
72 - 'skype' => 'Skype Support',
73 76 'is_success_manager' => 'Personal Success Manager',
74 77 );
75 78
76 79 for ( $i = 0, $len = count( $pricing->plans ); $i < $len; $i ++ ) {
@@ -96,12 +99,12 @@
96 99 $pricing->plans[ $i ]->features[] = $support_feature;
97 100 }
98 101 }
99 102 }
103 +
104 + $this->json['plans'] = $pricing->plans;
100 105 }
101 106 }
102 -
103 - $this->json['plans'] = $pricing->plans;
104 107
105 108 $this->json['strings'] = array(
106 109 'plan' => $this->fs->get_text_x_inline( 'Plan', 'as product pricing plan', 'plan' ),
107 110 );