Skip to content

Commit

Permalink
Merge pull request #963 from rtCamp/fix/info-global-price-section-v3
Browse files Browse the repository at this point in the history
Update info message for Pay Later and Pay Now tooltip
  • Loading branch information
PatelUtkarsh authored Sep 11, 2018
2 parents dcd322a + 41c9a88 commit ceb506e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions laterpay/application/Controller/Admin/Pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public function load_assets() {
'confirmDeleteSubscription' => __( 'Do you really want to discontinue this subscription? If you delete it, it will continue to renew for users who have an active subscription until the user cancels it. Existing subscribers will still have access to the content in their subscription. New users won\'t be able to buy the subscription anymore. Do you want to delete this subscription?', 'laterpay' ),
'voucherText' => __( 'reduces the price to', 'laterpay' ),
'timesRedeemed' => __( 'times redeemed.', 'laterpay' ),
'payLaterToolTip' => esc_html__( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€, it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ),
'payNowToolTip' => esc_html__( 'Pay Now requires users pay for purchased content immediately, available for posts with pricing above $1.99 or 1.49€', 'laterpay' ),
'payLaterToolTip' => esc_html__( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€; it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ),
'payNowToolTip' => esc_html__( 'Pay Now requires users pay for purchased content immediately; available for posts with pricing above $1.99 or 1.49€', 'laterpay' ),
);

// pass localized strings and variables to script
Expand Down
4 changes: 2 additions & 2 deletions laterpay/views/backend/partials/post-pricing-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class="lp_plugin-mode-indicator"
<?php else : ?>
<?php if ( $laterpay['post_revenue_model'] !== 'ppu' || $laterpay['price'] > $laterpay['currency']['ppu_max'] ) { echo 'lp_is-disabled'; } ?>
<?php endif; ?>"
data-tooltip="<?php echo esc_attr( __( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€, it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ) ); ?>">
data-tooltip="<?php echo esc_attr( __( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€; it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ) ); ?>">
<input type="radio"
name="post_revenue_model"
value="ppu"
Expand All @@ -59,7 +59,7 @@ class="lp_plugin-mode-indicator"
<?php else : ?>
<?php if ( $laterpay['post_revenue_model'] !== 'sis' ) { echo 'lp_is-disabled'; } ?>
<?php endif; ?>"
data-tooltip="<?php echo esc_attr( __( 'Pay Now requires users pay for purchased content immediately, available for posts with pricing above $1.99 or 1.49€', 'laterpay' ) ); ?>">
data-tooltip="<?php echo esc_attr( __( 'Pay Now requires users pay for purchased content immediately; available for posts with pricing above $1.99 or 1.49€', 'laterpay' ) ); ?>">
<input type="radio"
name="post_revenue_model"
value="sis"
Expand Down
6 changes: 3 additions & 3 deletions laterpay/views/backend/pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ class="lp_js_priceInput lp_input lp_number-input"
<div class="lp_js_revenueModel lp_button-group">
<label class="lp_js_revenueModelLabel lp_button-group__button lp_1/2
<?php if ( $laterpay['global_default_price_revenue_model'] === 'ppu' || ! $laterpay['global_default_price_revenue_model'] ) { echo 'lp_is-selected'; } ?>
<?php if ( $laterpay['global_default_price'] > $laterpay['currency']['ppu_max'] ) { echo 'lp_is-disabled lp_tooltip'; } ?>" <?php if ( $laterpay['global_default_price'] > $laterpay['currency']['ppu_max'] ) { printf( '%1$s="%2$s"', 'data-tooltip', esc_html__( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€, it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ) ); } ?>>
<input type="radio" name="laterpay_global_price_revenue_model" class="lp_js_revenueModelInput" value="ppu" <?php if ( $laterpay['global_default_price_revenue_model'] === 'ppu' || ( ! $laterpay['global_default_price_revenue_model'] && $laterpay['global_default_price'] < $laterpay['currency']['ppu_max'] ) ) { echo ' checked'; } ?>><?php esc_html_e( 'Pay&nbsp;Later', 'laterpay' ); ?>
<?php if ( $laterpay['global_default_price'] > $laterpay['currency']['ppu_max'] ) { echo 'lp_is-disabled lp_tooltip'; } ?>" <?php if ( $laterpay['global_default_price'] > $laterpay['currency']['ppu_max'] ) { printf( '%1$s="%2$s"', 'data-tooltip', esc_html__( 'Pay Later allows users to gain access now by committing to pay once their invoice reaches $5 or 5€; it is available for posts with pricing between 0.05 and 5.00', 'laterpay' ) ); } ?>>
<input type="radio" name="laterpay_global_price_revenue_model" class="lp_js_revenueModelInput" value="ppu" <?php if ( $laterpay['global_default_price_revenue_model'] === 'ppu' || ( ! $laterpay['global_default_price_revenue_model'] && $laterpay['global_default_price'] < $laterpay['currency']['ppu_max'] ) ) { echo ' checked'; } ?>><?php esc_html_e( 'Pay Later', 'laterpay' ); ?>
</label><!--
--><label class="lp_js_revenueModelLabel lp_button-group__button lp_1/2
<?php if ( $laterpay['global_default_price_revenue_model'] === 'sis' ) { echo 'lp_is-selected'; } ?>
<?php if ( $laterpay['global_default_price'] < $laterpay['currency']['sis_min'] ) { echo 'lp_is-disabled lp_tooltip'; } ?>" <?php if ( $laterpay['global_default_price'] < $laterpay['currency']['sis_min'] ) { printf( '%1$s="%2$s"', 'data-tooltip', esc_html__( 'Pay Now requires users pay for purchased content immediately, available for posts with pricing above $1.99 or 1.49€', 'laterpay' ) ); } ?>>
<?php if ( $laterpay['global_default_price'] < $laterpay['currency']['sis_min'] ) { echo 'lp_is-disabled lp_tooltip'; } ?>" <?php if ( $laterpay['global_default_price'] < $laterpay['currency']['sis_min'] ) { printf( '%1$s="%2$s"', 'data-tooltip', esc_html__( 'Pay Now requires users pay for purchased content immediately; available for posts with pricing above $1.99 or 1.49€', 'laterpay' ) ); } ?>>
<input type="radio" name="laterpay_global_price_revenue_model" class="lp_js_revenueModelInput" value="sis" <?php if ( $laterpay['global_default_price_revenue_model'] === 'sis' ) { echo ' checked'; } ?>><?php esc_html_e( 'Pay Now', 'laterpay' ); ?>
</label>
</div>
Expand Down

0 comments on commit ceb506e

Please sign in to comment.