PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | inc/modules/checkout/admin/options.php +56 -53 1.62.3.2 View file →
@@ -1,53 +1,56 @@
1 -<?php
2 -
3 -/**
4 - * Checkout Options.
5 - *
6 - * @package Merchant
7 - */
8 -
9 -if ( ! defined( 'ABSPATH' ) ) {
10 - exit; // Exit if accessed directly
11 -}
12 -
13 -$before_fields = array();
14 -if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() ) {
15 - $before_fields = array(
16 - 'type' => 'warning',
17 - 'content' => sprintf(
18 - /* Translators: 1. docs link */
19 - __( 'Your checkout page is being rendered through the new WooCommerce checkout block. You must edit the checkout page to use the classic checkout shortcode instead. Check <a href="%1$s" target="_blank">this documentation</a> to learn more.', 'merchant' ),
20 - 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
21 - ),
22 - );
23 -}
24 -
25 -// Settings
26 -Merchant_Admin_Options::create( array(
27 - 'title' => esc_html__( 'Settings', 'merchant' ),
28 - 'module' => 'checkout',
29 - 'fields' => array(
30 -
31 - $before_fields,
32 -
33 - array(
34 - 'id' => 'layout',
35 - 'type' => 'radio',
36 - 'title' => esc_html__( 'Layout', 'merchant' ),
37 - 'options' => array(
38 - 'layout-shopify' => esc_html__( 'Shopify multi step', 'merchant' ),
39 - 'layout-one-step' => esc_html__( 'One step', 'merchant' ),
40 - 'layout-multi-step' => esc_html__( 'Multi step', 'merchant' )
41 - ),
42 - 'default' => 'layout-shopify',
43 - ),
44 -
45 - array(
46 - 'id' => 'sticky_totals_box',
47 - 'type' => 'switcher',
48 - 'title' => esc_html__( 'Sticky Totals Box', 'merchant' ),
49 - 'condition' => array( 'layout', 'any', 'layout-shopify|layout-one-step' ),
50 - ),
51 -
52 - )
53 -) );
1 +<?php
2 +
3 +/**
4 + * Checkout Options.
5 + *
6 + * @package Merchant
7 + */
8 +
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit; // Exit if accessed directly
11 +}
12 +
13 +$before_fields = array();
14 +if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() ) {
15 + $before_fields = array(
16 + 'type' => 'warning',
17 + 'content' => sprintf(
18 + /* Translators: 1. docs link */
19 + __( 'Your checkout page is being rendered through the new WooCommerce checkout block. You must edit the checkout page to use the classic checkout shortcode instead. Check <a href="%1$s" target="_blank">this documentation</a> to learn more.', 'merchant' ),
20 + 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
21 + ),
22 + );
23 +}
24 +
25 +// Settings
26 +
27 +return array(
28 + array(
29 + 'title' => esc_html__( 'Settings', 'merchant' ),
30 + 'module' => 'checkout',
31 + 'fields' => array(
32 +
33 + $before_fields,
34 +
35 + array(
36 + 'id' => 'layout',
37 + 'type' => 'radio',
38 + 'title' => esc_html__( 'Layout', 'merchant' ),
39 + 'options' => array(
40 + 'layout-shopify' => esc_html__( 'Shopify multi step', 'merchant' ),
41 + 'layout-one-step' => esc_html__( 'One step', 'merchant' ),
42 + 'layout-multi-step' => esc_html__( 'Multi step', 'merchant' ),
43 + ),
44 + 'default' => 'layout-shopify',
45 + ),
46 +
47 + array(
48 + 'id' => 'sticky_totals_box',
49 + 'type' => 'switcher',
50 + 'title' => esc_html__( 'Sticky Totals Box', 'merchant' ),
51 + 'condition' => array( 'layout', 'any', 'layout-shopify|layout-one-step' ),
52 + ),
53 +
54 + ),
55 +),
56 +);