Skip to content

Commit 7ffc0b9

Browse files
Buy Now is not displayed properly
#587
1 parent 8fbb857 commit 7ffc0b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

classes/Visualizer/Module/Sources.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,14 @@ public function filterChartData( $data, $chart_id ) {
130130
* @return string The new html code.
131131
*/
132132
public function addProUpsell( $old, $feature = null ) {
133+
$pro_features = Visualizer_Module::get_features_for_license( 1 );
133134
$biz_features = Visualizer_Module::get_features_for_license( 2 );
134135
$return = '';
135136
$feature = strval( $feature );
136-
if ( empty( $feature ) || ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) ) {
137+
if ( empty( $feature ) ||
138+
( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) ||
139+
( in_array( $feature, $pro_features, true ) && ! Visualizer_Module::is_pro() )
140+
) {
137141
$msg = sprintf( __( 'Upgrade to %s to activate this feature!', 'visualizer' ), 'PRO' );
138142
if ( Visualizer_Module::is_pro() && in_array( $feature, $biz_features, true ) ) {
139143
$msg = sprintf( __( 'Upgrade your license to at least the %s version to activate this feature!', 'visualizer' ), 'DEVELOPER' );

0 commit comments

Comments
 (0)