Skip to content

Commit db9a121

Browse files
authored
Additional payment gateway notices (#2982)
* Additional notice re gateways during setup wizard. * Moving payment gateways to the top, with a description and link to the gateways article.
1 parent 9174e54 commit db9a121

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
significance: patch
2+
type: changed
3+
entry: Additional payment gateway information notices.

includes/admin/settings/class.llms.settings.checkout.php

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,28 @@ private function get_settings_default() {
170170

171171
return array(
172172

173+
array(
174+
'type' => 'sectionstart',
175+
'id' => 'checkout_settings_gateways_list_start',
176+
),
177+
178+
array(
179+
'title' => __( 'Payment Gateways', 'lifterlms' ),
180+
'desc' => sprintf( __( 'Gateways allow you to accept payments on your site. %1$1sLearn More%2$2s', 'lifterlms' ), '<a href="https://lifterlms.com/docs/what-payment-gateways-can-i-use-with-lifterlms/?utm_source=LifterLMS%20Plugin&utm_medium=Resource%20Screen&utm_campaign=Backend%20Help%20Page">', '</a>' ),
181+
'type' => 'title',
182+
'id' => 'checkout_settings_gateways_list_title',
183+
),
184+
185+
array(
186+
'value' => $this->get_gateway_table_html(),
187+
'type' => 'custom-html',
188+
),
189+
190+
array(
191+
'type' => 'sectionend',
192+
'id' => 'checkout_settings_gateways_list_end',
193+
),
194+
173195
array(
174196
'class' => 'top',
175197
'id' => 'course_archive_options',
@@ -316,27 +338,6 @@ private function get_settings_default() {
316338
'id' => 'general_options',
317339
),
318340

319-
array(
320-
'type' => 'sectionstart',
321-
'id' => 'checkout_settings_gateways_list_start',
322-
),
323-
324-
array(
325-
'title' => __( 'Payment Gateways', 'lifterlms' ),
326-
'type' => 'title',
327-
'id' => 'checkout_settings_gateways_list_title',
328-
),
329-
330-
array(
331-
'value' => $this->get_gateway_table_html(),
332-
'type' => 'custom-html',
333-
),
334-
335-
array(
336-
'type' => 'sectionend',
337-
'id' => 'checkout_settings_gateways_list_end',
338-
),
339-
340341
);
341342
}
342343

includes/admin/views/setup-wizard/step-payments.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<td colspan="2">
5454
<p><?php printf( esc_html__( 'With LifterLMS you can accept both online and offline payments. Be sure to install a %1$spayment gateway%2$s to accept online payments.', 'lifterlms' ), '<a href="https://lifterlms.com/product-category/plugins/payment-gateways/?utm_source=LifterLMS%20Plugin&utm_campaign=Plugin%20to%20Sale&utm_medium=Wizard&utm_content=LifterLMS%20Payment%20Add-ons" target="_blank">', '</a>' ); ?></p>
5555
<p><label for="llms_manual"><input id="llms_manual" name="manual_payments" type="checkbox" value="yes"<?php checked( 'yes', $payments ); ?>> <?php esc_html_e( 'Enable Offline Payments', 'lifterlms' ); ?></label></p>
56+
<p><?php echo esc_html__( 'Payment gateways may be configured under Settings in the "Checkout" tab.', 'lifterlms' ); ?></p>
5657
</td>
5758
</tr>
5859
</table>

0 commit comments

Comments
 (0)