| 1 |
<?php |
| 2 |
/** |
| 3 |
* View offer settings |
| 4 |
* |
| 5 |
* @package |
| 6 |
*/ |
| 7 |
|
| 8 |
$offer_settings = \WPFunnels\Wpfnl_functions::get_offer_settings(); |
| 9 |
?> |
| 10 |
|
| 11 |
<h4 class="settings-title"><?php echo __('Order Management For Upsell/Downsell Offers', 'wpfnl'); ?></h4> |
| 12 |
<div class="wpfnl-box"> |
| 13 |
<div class="wpfnl-field-wrapper"> |
| 14 |
<label class="has-tooltip"> |
| 15 |
<?php echo __('Create a new child order for every accepted Upsell/Downsell offer', 'wpfnl'); ?> |
| 16 |
<span class="wpfnl-tooltip"> |
| 17 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 18 |
<p><?php echo __('Enabling this will create separate orders for every post-purchase offers you make.', 'wpfnl'); ?></p> |
| 19 |
</span> |
| 20 |
</label> |
| 21 |
<div class="wpfnl-fields"> |
| 22 |
<div class="wpfnl-radiobtn no-title"> |
| 23 |
<input type="radio" name="offer-orders" id="wpfunnels-offer-child-order" value="child-order" <?php checked( $offer_settings['offer_orders'], 'child-order' ) ?>/> |
| 24 |
<label for="wpfunnels-offer-child-order"></label> |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
<!-- /field-wrapper --> |
| 29 |
|
| 30 |
<div class="wpfnl-field-wrapper"> |
| 31 |
<label class="has-tooltip"> |
| 32 |
<?php echo __('Add all accepted offers (Upsell/Downsell) to the main order', 'wpfnl'); ?> |
| 33 |
<span class="wpfnl-tooltip"> |
| 34 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 35 |
<p><?php echo __('All purchases including main product, order bump, upsell(s), and downsell(s), will be included as part of a single order in WooCommerce.', 'wpfnl'); ?></p> |
| 36 |
</span> |
| 37 |
</label> |
| 38 |
<div class="wpfnl-fields"> |
| 39 |
<div class="wpfnl-radiobtn no-title"> |
| 40 |
<input type="radio" name="offer-orders" id="wpfunnels-offer-main-order" value="main-order" <?php checked( $offer_settings['offer_orders'], 'main-order' ) ?>/> |
| 41 |
<label for="wpfunnels-offer-main-order"></label> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
<!-- /field-wrapper --> |
| 46 |
</div> |
| 47 |
|
| 48 |
<h4 class="settings-title"><?php echo __('Payment Management For Upsell/Downsell Offers', 'wpfnl'); ?></h4> |
| 49 |
<div class="wpfnl-box"> |
| 50 |
<div class="wpfnl-field-wrapper"> |
| 51 |
<label class="has-tooltip"> |
| 52 |
<?php echo __('Only show supported payment gateways during funnel checkout', 'wpfnl'); ?> |
| 53 |
<span class="wpfnl-tooltip"> |
| 54 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 55 |
<p><?php echo __('You may have several payment gateways in your site. But since we have limited supported payment gateways for post purchase offers, you can use this option to only view supported payment gateways during the funnel checkout page. This means, you do not have to disable other payment gateways for the funnel.', 'wpfnl'); ?></p> |
| 56 |
</span> |
| 57 |
</label> |
| 58 |
<div class="wpfnl-fields"> |
| 59 |
<span class="wpfnl-checkbox no-title"> |
| 60 |
<input type="checkbox" name="wpfnl-show-supported-payment-gateway" id="wpfnl-show-supported-payment-gateway" <?php if($this->offer_settings['show_supported_payment_gateway'] == 'on'){echo 'checked'; } ?>/> |
| 61 |
<label for="wpfnl-show-supported-payment-gateway"></label> |
| 62 |
</span> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
<!-- /field-wrapper --> |
| 66 |
|
| 67 |
<div class="wpfnl-field-wrapper"> |
| 68 |
<label class="has-tooltip"> |
| 69 |
<?php echo __('Skip upsell/downsell for unsupported payment gateways', 'wpfnl'); ?> |
| 70 |
<span class="wpfnl-tooltip"> |
| 71 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 72 |
<p><?php echo __('Use this option so that if a buyer chooses to use a payment option that is not supported by WPFunnels, they will not get the post-purchase offers. This means, all payment options will be shown at the checkout page.', 'wpfnl'); ?></p> |
| 73 |
</span> |
| 74 |
</label> |
| 75 |
<div class="wpfnl-fields"> |
| 76 |
<span class="wpfnl-checkbox no-title"> |
| 77 |
<input type="checkbox" name="wpfnl-skip-offer-step" id="wpfnl-skip-offer-step" <?php if($this->offer_settings['skip_offer_step'] == 'on'){echo 'checked'; } ?>/> |
| 78 |
<label for="wpfnl-skip-offer-step"></label> |
| 79 |
</span> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
|
| 83 |
|
| 84 |
<div class="wpfnl-field-wrapper"> |
| 85 |
<label class="has-tooltip"> |
| 86 |
<?php echo __('Skip upsell/downsell for free products', 'wpfnl'); ?> |
| 87 |
<span class="wpfnl-tooltip"> |
| 88 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 89 |
<p><?php echo __("Enable this option in case you want to use a $0 product as the main funnel product. In this case, Upsell and downsell steps will be skipped since they won't work without a successful payment during checkout.", 'wpfnl'); ?></p> |
| 90 |
</span> |
| 91 |
</label> |
| 92 |
<div class="wpfnl-fields"> |
| 93 |
<span class="wpfnl-checkbox no-title"> |
| 94 |
<input type="checkbox" name="wpfnl-skip-offer-step-for-free" id="wpfnl-skip-offer-step-for-free" <?php if($this->offer_settings['skip_offer_step_for_free'] == 'on'){echo 'checked'; } ?>/> |
| 95 |
<label for="wpfnl-skip-offer-step-for-free"></label> |
| 96 |
</span> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
<!-- /field-wrapper --> |
| 100 |
|
| 101 |
</div> |
| 102 |
<!-- /settings-box --> |
| 103 |
|