Skip to content

Commit 6f70987

Browse files
Merge pull request #613 from contactashish13/issue-525
rectify upsell
2 parents 6498dca + 3eebc68 commit 6f70987

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ public function addSplChartSchedules( $feature, $chart_id, $plan ) {
9191
}
9292

9393
$license = __( 'PRO', 'visualizer' );
94-
switch ( $plan ) {
95-
case 2:
96-
$license = __( 'Developer', 'visualizer' );
97-
break;
94+
if ( Visualizer_Module::is_pro() ) {
95+
switch ( $plan ) {
96+
case 1:
97+
$license = __( 'Developer', 'visualizer' );
98+
break;
99+
}
98100
}
99101

100102
$hours = array(
@@ -116,7 +118,10 @@ public function addSplChartSchedules( $feature, $chart_id, $plan ) {
116118
// fall-through.
117119
case 'db':
118120
// fall-through.
121+
break;
119122
case 'csv':
123+
// no support for live.
124+
unset( $hours['0'] );
120125
break;
121126
default:
122127
return;

classes/Visualizer/Render/Page/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class="dashicons dashicons-lock"></span></h2>
318318
<option value="<?php echo $num; ?>" <?php echo $extra; ?>><?php echo $name; ?></option>
319319
<?php
320320
}
321-
do_action( 'visualizer_chart_schedules_spl', 'wp', $this->chart->ID, 2 );
321+
do_action( 'visualizer_chart_schedules_spl', 'wp', $this->chart->ID, 1 );
322322
?>
323323
</select>
324324

@@ -367,7 +367,7 @@ class="dashicons dashicons-lock"></span></h2>
367367
<option value="<?php echo $num; ?>" <?php echo $extra; ?>><?php echo $name; ?></option>
368368
<?php
369369
}
370-
do_action( 'visualizer_chart_schedules_spl', 'db', $this->chart->ID, 2 );
370+
do_action( 'visualizer_chart_schedules_spl', 'db', $this->chart->ID, 1 );
371371
?>
372372
</select>
373373
<input type="hidden" name="params" id="viz-db-wizard-params">

0 commit comments

Comments
 (0)